Summary
Add behavioural coverage for skipped-step suppression in .github/actions/upload-codescene-coverage check mode.
test_skipped_gate_suppresses_all_following_steps currently reads if: expressions from action.yml. It verifies the manifest structure but does not execute a pull-request context where the changed-line coverage gate is skipped.
Required change
Execute a skipped check-mode scenario for a pull request whose base branch is not the default branch. Verify that each subsequent coverage-related step is not executed.
Rationale
GitHub Actions evaluates composite-action if: expressions at runtime. A manifest-only assertion cannot prove that the complete skip path suppresses downstream steps.
Affected areas
.github/actions/upload-codescene-coverage/action.yml
.github/actions/upload-codescene-coverage/tests/test_check_mode.py
- Test harnesses that execute the composite action, if required
Acceptance criteria
- The test executes a non-default pull-request base-branch context in
mode: check.
- The test verifies the skip warning.
- The test proves that coverage-file selection, CLI installation, upload, cache, and check steps do not execute.
- The test remains isolated from the network.
References
Summary
Add behavioural coverage for skipped-step suppression in
.github/actions/upload-codescene-coveragecheck mode.test_skipped_gate_suppresses_all_following_stepscurrently readsif:expressions fromaction.yml. It verifies the manifest structure but does not execute a pull-request context where the changed-line coverage gate is skipped.Required change
Execute a skipped check-mode scenario for a pull request whose base branch is not the default branch. Verify that each subsequent coverage-related step is not executed.
Rationale
GitHub Actions evaluates composite-action
if:expressions at runtime. A manifest-only assertion cannot prove that the complete skip path suppresses downstream steps.Affected areas
.github/actions/upload-codescene-coverage/action.yml.github/actions/upload-codescene-coverage/tests/test_check_mode.pyAcceptance criteria
mode: check.References