-
Notifications
You must be signed in to change notification settings - Fork 281
ci: Reduce unnecessary builds and compiler-cache pressure #6086
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
andiwand
merged 4 commits into
acts-project:main
from
paulgessinger:ci/reduce-build-overhead
Sep 18, 2026
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
90690a5
ci: Gate unrelated builds, retain compiler caches, and speed up checks
paulgessinger 64ffd2d
ci: Simplify tooling regression tests with pytest
paulgessinger b65c6f7
ci: Lock self-test dependencies and disable source builds
paulgessinger 5383248
ci: Align Detray and Traccc triggers with required checks
paulgessinger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # Merge-group filters: include shared build inputs as well as the package. | ||
| # Keep these conservative when the standalone builds gain new dependencies. | ||
| detray: | ||
| - 'Detray/**' | ||
| # Standalone Detray uses ACTS' header compilation and codegen modules. | ||
| - 'cmake/**' | ||
| - 'codegen/**' | ||
| - 'thirdparty/**' | ||
| - 'CMakeLists.txt' | ||
| - 'CMakePresets.json' | ||
| - 'CI/**' | ||
| - '.github/actions/**' | ||
| - '.github/workflows/detray.yml' | ||
| - '.github/detray-traccc-filters.yml' | ||
|
|
||
| traccc: | ||
| - 'Traccc/**' | ||
| - 'Detray/**' | ||
| # Traccc/extern/acts builds the colocated ACTS tree, including Core and | ||
| # plugins. Keep the source roots conservative as its presets evolve. | ||
| - 'Core/**' | ||
| - 'Plugins/**' | ||
| - 'Fatras/**' | ||
| - 'Alignment/**' | ||
| - 'Examples/**' | ||
| - 'Tests/**' | ||
| - 'Python/**' | ||
| - 'cmake/**' | ||
| - 'codegen/**' | ||
| - 'thirdparty/**' | ||
| - 'CMakeLists.txt' | ||
| - 'CMakePresets.json' | ||
| - 'version_number' | ||
| - 'CI/**' | ||
| - '.github/actions/**' | ||
| - '.github/workflows/traccc.yml' | ||
| - '.github/detray-traccc-filters.yml' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| name: Compiler cache retention | ||
|
|
||
| on: | ||
| # Only trusted main runs can trigger deletion; no PR artifacts or source | ||
| # are consumed. Checkout below always uses main, not the triggering SHA. | ||
| workflow_run: # zizmor: ignore[dangerous-triggers] | ||
| workflows: [Builds, Analysis, Detray, PyPI] | ||
| branches: [main] | ||
| types: [completed] | ||
| workflow_dispatch: | ||
| inputs: | ||
| apply: | ||
| description: Delete superseded main compiler-cache archives | ||
| type: boolean | ||
| default: false | ||
|
|
||
| permissions: {} | ||
|
|
||
| concurrency: | ||
| group: ccache-retention | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| prune: | ||
| if: >- | ||
| github.repository == 'acts-project/acts' && | ||
| ((github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main') || | ||
| (github.event.workflow_run.head_repository.full_name == github.repository && | ||
| (github.event.workflow_run.event == 'push' || github.event.workflow_run.event == 'schedule'))) | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| actions: write | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| ref: main | ||
| persist-credentials: false | ||
| - name: Retain newest compiler caches | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| APPLY: ${{ github.event_name == 'workflow_run' || inputs.apply }} | ||
| run: | | ||
| args=() | ||
| if [[ "$APPLY" == "true" ]]; then | ||
| args+=(--apply) | ||
| fi | ||
| python3 CI/prune_ccache.py "${args[@]}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.