Skip to content

ci: run selected example charm integration tests on PRs - #2655

Open
dwilding wants to merge 1 commit into
canonical:mainfrom
dwilding:example-charm-integration-tests
Open

ci: run selected example charm integration tests on PRs#2655
dwilding wants to merge 1 commit into
canonical:mainfrom
dwilding:example-charm-integration-tests

Conversation

@dwilding

@dwilding dwilding commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

This PR adds a workflow that runs our example charm integration tests on PRs.

It largely duplicates the existing "Example Charm Integration Tests" workflow that runs on a weekly schedule. The key difference is that the new workflow uses a "detect-changes" job to select which integration test jobs to run, based on exactly which example charms have changed. This avoids needing a separate path-filtered workflow for each charm.

I explored reducing redundancy by extracting the common parts of the scheduled workflow and the new workflow, but the result was hard to understand. I think a bit of duplication is better in this case. Our set of example charms shouldn't change much in future.

Sample run in my fork, where only the k8s-* charms have changed.

@dwilding
dwilding force-pushed the example-charm-integration-tests branch from e5cee02 to 75ac2d7 Compare July 21, 2026 02:47
Comment thread .github/workflows/_example-integration.yaml Fixed
@dwilding
dwilding force-pushed the example-charm-integration-tests branch 2 times, most recently from 2cada15 to 2e9701e Compare August 26, 2026 02:57
@dwilding
dwilding marked this pull request as ready for review August 28, 2026 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants