Repository navigation
ci: fix integration test runs - #3112
Merged
opieter-aws merged 1 commit intoJul 7, 2026
Merged
opieter-aws merged 1 commit into
opieter-aws merged 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
poshinchen
approved these changes
Jul 7, 2026
opieter-aws
enabled auto-merge (squash)
July 7, 2026 16:09
Contributor
|
Assessment: Approve Correct, minimal, security-preserving fix. I traced the Review Notes
Nice investigative work tracing this back to the #2940 regression. |
This was referenced Jul 8, 2026
This was referenced Jul 15, 2026
Merged
6 of 9 tasks
This was referenced Aug 4, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Integration tests have been silently skipping on every PR since #2940 merged. The
Run integration testsjob reportsskippingeven when the PR is authorized and non-draft, so no integration coverage actually runs — forstrands-pyorstrands-ts— in the merge gate.#2940 added a
validate-call-refjob that only runs on theworkflow_callpath (if: inputs.ref != ''). Onpull_request_targetandmerge_groupthat job is skipped, and a skippedneedspredecessor propagates transitively through the implicitsuccess()gate of every downstream job. #2940 handled this forauthorization-checkby giving itif: always() && ..., but the test job (check-access-and-checkout/run-integration-tests) has no such guard, so the skip cascaded into it — the job was killed before it ever reached the environment approval gate.This adds the same guard to the test job in both integration-test workflows:
always()detaches the job from the transitively-skippedvalidate-call-ref, while requiringauthorization-checkto have succeeded keeps the security posture unchanged: a fork/cross-repo ref failsvalidate-call-ref, which makesauthorization-checkevaluate toskipped(notsuccess), so the test job still does not run. The auth gate and the environment-based manual-approval flow for drafts/non-writers are untouched.Related Issues
Investigation traced from #2836 (where the skip surfaced). Regression introduced by #2940.
Documentation PR
Not applicable — CI-only change.
Type of Change
Bug fix
Testing
pull_request_targetruns the workflow definition from the base branch, so the fix only takes effect once merged; it cannot be exercised from the PR branch itself. Validated statically:Both workflow files parse as valid YAML.
Traced the guard against every trigger path —
pull_request_target(writer/draft/non-writer),merge_group,workflow_call(valid ref), andworkflow_call(rejected fork/cross-repo ref). Only the fork/bad-ref case keeps the job skipped, confirming the trust invariant holds.I ran
hatch run prepareChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.