Skip to content

upload-codescene-coverage: add behavioural test for skipped-step suppression #401

Description

@coderabbitai

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

Metadata

Metadata

Assignees

Labels

mediumRoadmap items to schedule within the current quarter. Clear scope, normal review cycles.testingTest coverage, test infrastructure, and verification tooling work.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions