Skip to content

ci: let cancel-in-progress cancel the container job - #1709

Merged
ZohebShaikh merged 2 commits into
mainfrom
cancel-container-build
Oct 21, 2026
Merged

ZohebShaikh merged 2 commits into
mainfrom
cancel-container-build

Conversation

@ZohebShaikh

@ZohebShaikh ZohebShaikh commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

container used if: always(), which keeps the job running (or starts it) after the workflow is cancelled, so cancel-in-progress never stopped the container build. !cancelled() still runs it after test failures (needed for the publish input) but respects cancellation.

One-line change to .github/workflows/ci.yml, based directly on main.

Test plan

  • Push two commits in quick succession; the first run's container job shows as cancelled

🤖 Generated with Claude Code

@ZohebShaikh
ZohebShaikh requested a review from a team as a code owner October 20, 2026 15:35
@codecov

codecov Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.41%. Comparing base (1dd8711) to head (d36a649).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1709   +/-   ##
=======================================
  Coverage   96.41%   96.41%           
=======================================
  Files          49       49           
  Lines        3711     3711           
=======================================
  Hits         3578     3578           
  Misses        133      133           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ZohebShaikh
ZohebShaikh force-pushed the cancel-container-build branch from e1f6487 to da74204 Compare October 20, 2026 15:37
@ZohebShaikh ZohebShaikh changed the title Run system tests against built container and fix CI cancellation ci: let cancel-in-progress cancel the container job Oct 20, 2026
@ZohebShaikh
ZohebShaikh changed the base branch from main to remove-timeout-check October 20, 2026 15:37
always() keeps the job running when the workflow is cancelled;
!cancelled() still runs it after test failures but respects cancellation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ZohebShaikh
ZohebShaikh force-pushed the cancel-container-build branch from da74204 to c3c5d54 Compare October 21, 2026 08:10
@ZohebShaikh
ZohebShaikh changed the base branch from remove-timeout-check to main October 21, 2026 08:10
@ZohebShaikh
ZohebShaikh enabled auto-merge October 21, 2026 08:41
@ZohebShaikh
ZohebShaikh added this pull request to the merge queue Oct 21, 2026
Merged via the queue into main with commit 01a0913 Oct 21, 2026
20 checks passed
@ZohebShaikh
ZohebShaikh deleted the cancel-container-build branch October 21, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants