ci: implement phase 1 path-based workflow skipping#3332
ci: implement phase 1 path-based workflow skipping#3332
Conversation
Signed-off-by: Georg Heiler <georg.kf.heiler@gmail.com>
Signed-off-by: Georg Heiler <georg.kf.heiler@gmail.com>
Signed-off-by: Georg Heiler <georg.kf.heiler@gmail.com>
Signed-off-by: Georg Heiler <georg.kf.heiler@gmail.com>
|
✅ DCO Check Passed Thanks @geoHeil, all your commits are properly signed off. 🎉 |
Merge ProtectionsYour pull request matches the following merge protections and will not be merged until they are valid. 🟢 Enforce conventional commitWonderful, this rule succeeded.Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
|
Signed-off-by: Georg Heiler <georg.kf.heiler@gmail.com>
Signed-off-by: Georg Heiler <georg.kf.heiler@gmail.com>
dolfim-ibm
left a comment
There was a problem hiding this comment.
The new action is now whitelisted, this can be tried out with a new commit+push.
| needs.changes.outputs.full_matrix_override == 'true' && | ||
| '["3.10", "3.11", "3.12", "3.13", "3.14"]' | ||
| ) || | ||
| ( | ||
| github.event_name == 'pull_request' && | ||
| contains(github.event.pull_request.labels.*.name, 'tests:full') && | ||
| '["3.10", "3.11", "3.12", "3.13", "3.14"]' | ||
| ) || | ||
| '["3.10"]' |
There was a problem hiding this comment.
better keep the python versions in a variable/input, otherwise we have too many places to maintain.
There was a problem hiding this comment.
Addressed in f5d2b9d: the PR workflow now defines DEFAULT_PYTHON_VERSIONS and FULL_PYTHON_VERSIONS once and passes them through changes job outputs instead of repeating the JSON matrix in the reusable workflow call.
| enable-cache: true | ||
|
|
||
| - name: Install minimal trusted lint and typing dependencies | ||
| run: uv sync --frozen --only-group pr-fast-checks --no-install-project |
There was a problem hiding this comment.
just checking my understanding: the checkout action above is cloning the base branch (main) so it is always using the deps in main, right?
There was a problem hiding this comment.
Yes, that is the intended behavior. Addressed in f5d2b9d by documenting it inline: pull_request_target checks out the trusted base commit for dependency installation, then fetches the PR head separately as FETCH_HEAD for diff/overlay checks only.
| name: "Run PR Fast Checks" | ||
|
|
||
| on: | ||
| pull_request_target: |
There was a problem hiding this comment.
should we temporary make it a PR CI action? otherwise we cannot test it before merge.
There was a problem hiding this comment.
sounds like a good idea.
but somehow my permissions are not there to test drive the CI change on the branch
There was a problem hiding this comment.
could you either grant me other/more permissions or allow the CI change see also in the top level description what is not allowed right now)
There was a problem hiding this comment.
ah - just saw it seems t obe whitelisted now. let me try again
There was a problem hiding this comment.
As a wrote, it is done already
| pull_request_target: | ||
| types: [opened, reopened, synchronize, ready_for_review] | ||
| paths: | ||
| - ".github/workflows/pr-fast-checks.yml" |
There was a problem hiding this comment.
We might not need any filter here, we are anyway including almost all...
There was a problem hiding this comment.
Addressed in 4d767f8: removed the trigger-level paths: filter from pr-fast-checks.yml. The workflow now runs for all PR target events, while .github/scripts/run_pr_fast_checks.py still performs its own changed-file targeting and exits quickly when there are no Python/notebook targets.
Signed-off-by: Georg Heiler <georg.kf.heiler@gmail.com>
Signed-off-by: Georg Heiler <georg.kf.heiler@gmail.com>
Signed-off-by: Georg Heiler <georg.kf.heiler@gmail.com>
Signed-off-by: Georg Heiler <georg.kf.heiler@gmail.com>
Signed-off-by: Georg Heiler <georg.kf.heiler@gmail.com>
Signed-off-by: Georg Heiler <georg.kf.heiler@gmail.com>
Signed-off-by: Georg Heiler <georg.kf.heiler@gmail.com>
Signed-off-by: Georg Heiler <georg.kf.heiler@gmail.com>
Signed-off-by: Georg Heiler <georg.kf.heiler@gmail.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Signed-off-by: Georg Heiler <georg.kf.heiler@gmail.com>
|
Temporary normal |
Signed-off-by: Georg Heiler <georg.kf.heiler@gmail.com>
Summary
pyproject.toml,uv.lock, andDockerfileas CI-triggering pathsPart of #3327.
Testing
.github/workflows/ci.yml,.github/workflows/ci-docs.yml, and.github/workflows/checks.ymlgit diff --checkNotes
we will have to modify the list of allowed CI actions