-
Notifications
You must be signed in to change notification settings - Fork 18
Description
The consequence of the charmhub migration is that all charms have a charmcraft.yaml. In order to troubleshoot/head-off issues related to charmcraft builds, the CI needs to also do a charmcraft build.
Note: in the longer time, we actually want launchpad to build the charm in a branch, but that'll be dependent on syncing the git repo (more frequently), target a PR (rather than a git branch), etc. So, no really a short term solution.
But in the meantime, doing the charmcraft build in the CI (for amd64) will result in a <name>...charm file which doesn't have access to the tox.ini in the src/ directory (for reactive charms). Thus a workaround is done to put a func-target tox target in the top level reactive charm, and then use that to call the src/tox.ini func-target target.
The point of this bug report, is that we need to overhaul how and where the tox.ini is for charmcraft.yaml charms is, so that going forward we can simplify the logic in zosci-config.