← Back to issue list

ci: make workflows conditional on affected files

View original Github issue

Metadata

Project
charmcraft
Number
#2688
Type
pull request
State
merged
Author
medubelko
Labels
Created
Updated
Closed

Current evaluation

Merged changes optimizing CI workflows to run conditionally on affected files. Test, policy, experimental, and spread jobs now trigger only on relevant source or documentation changes, streamlining builds.

Suggested action:

No scores available.

Issue body

Make workflows and jobs conditional: - `QA / Test` runs if source files change. - `Check policy` workflow runs if source files change. - `Experimental workflows` workflow runs if source files change. - `Tests` workflow is conditional on deeper MD files. - `Spread` workflow is conditional on deeper MD files, renamed to `Spread tests for source`. - `Spread tests for docs` triggers on additional doc files. --- - [x] I've followed the [contribution guidelines](https://github.com/canonical/charmcraft/blob/main/CONTRIBUTING.md). - [x] I've signed the [CLA](http://www.ubuntu.com/legal/contributors/). - [x] I've successfully run `make lint && make test`. - [ ] I've added or updated any relevant documentation. - [ ] In documents I changed, I [added a meta description](https://canonical-starflow.readthedocs-hosted.com/how-to/add-a-page-meta-description/) if one was missing. - [ ] I've updated the relevant release notes.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged changes optimizing CI workflows to run conditionally on affected files. Test, policy, experimental, and spread jobs now trigger only on relevant source or documentation changes, streamlining builds.
qwen3.6-35b-a3b-mtp-q6 Merged. Configured CI workflows to run conditionally based on changed files, routing source changes to test and policy jobs while separating documentation triggers. Type checking warnings were informational and did not block the merge.
qwen3.6-35b-a3b-mtp-q6 Merged updates to condition CI workflows on affected files. Source changes trigger QA, policy, and experimental jobs, while documentation changes trigger spread tests. Non-blocking type checking notifications did not prevent the merge.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1206 ci: make workflows conditional, add docs-only spread tests rockcraft merged Merged after approval. Updates CI workflows to run conditionally on changed files, splitting source and documentation spread tests into separate runners. Predictable initial failures were acknowledged, and the changes were merged.
84%
#6245 ci: make workflows conditional, add docs-only spread tests snapcraft merged Merged. Configured CI workflows to run conditionally based on changed files, separating source and documentation pipelines. Added a docs-only spread test workflow. Approved and merged.
81%