Skip to content

Guard: a gated test needing both EQUIVALENCE_E2E and CICS_CRUCIBLE_PATH gets both in one step (Part of #5954) - #7298

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/5954-20261031T1217Z
Oct 31, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/5954-20261031T1217Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5954 (slice 5).

What

cics-crucible.yml runner-tests already sets CICS_CRUCIBLE_PATH (landed in #6238), so test_det_port_bytes_4965.py is no longer skipped there: its step sets EQUIVALENCE_E2E=1 and the checkout path together and selects -m e2e, and the test carries @pytest.mark.e2e. The slice's remaining gap was the guard: it checked each variable separately, so a later edit moving one variable into another step (or dropping the e2e mark) would leave the test skipped and the guard green. No workflow change is needed, so none is made.

tests/tools/test_env_gated_tests_run_in_ci_5954.py: new _joint_runs() plus a test that every file reading both variables is named by a pytest step whose one env: block sets both, and, when that step selects -m e2e, that the file marks a test e2e. Mutation check: removing the CICS_CRUCIBLE_PATH line from the workflow in a scratch copy makes it fail ("no workflow step sets EQUIVALENCE_E2E and CICS_CRUCIBLE_PATH together").

Owner decisions

Editing .github/workflows/cics-crucible.yml is in scope (standing workflow grant 2026-10-24). This PR reads it and does not change it; shepherd-*.yml untouched.

Class / Sibling gaps

Class: a test gated on more than one environment variable is skipped unless one pytest step sets all of them. Members reading both EQUIVALENCE_E2E and the crucible path: only tests/cics_crucible/test_det_port_bytes_4965.py (handled, now pinned jointly). Files gated on one variable were already covered by the existing guard (UNCOVERED lists are empty). Sibling gaps: none: every member handled. Not run locally: the e2e test itself (two Maven builds, needs the pinned checkout and Docker); CI's runner-tests job runs it.

Gates

pytest tests/tools/test_env_gated_tests_run_in_ci_5954.py: 9 passed. ruff format --check: clean. CI cost: none (no workflow change).

🤖 Generated with Claude Code

…TH gets both in one step (Part of #5954)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 31, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 31, 2026 12:26
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 31, 2026 12:36
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit ab53a50 into main Oct 31, 2026
58 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/5954-20261031T1217Z branch October 31, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant