Repository navigation
Cancel superseded CI runs and keep test result bundles - #40
Merged
Merged
Conversation
offyotto
force-pushed
the
harden-ci-workflow
branch
from
August 5, 2026 13:48
228be4e to
ca6c7d5
Compare
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.
Change
CI had no
concurrencygroup, so a push tomainand its pull request each started a full 30 minute macOS job and both ran to completion even when a newer commit had already superseded them. Thefeature/**andrelease/**push triggers also duplicated thepull_requesttrigger for in-repo branches. On failure the run produced no retrievable diagnostics, only scrollback in the log.This adds a
concurrencygroup keyed on the ref withcancel-in-progress, narrows the push trigger tomainso pull requests are covered once, recordssw_versandxcodebuild -versionso the resolved toolchain is visible in the log, and writes an.xcresultbundle that is uploaded as an artifact on both success and failure. The test invocation itself is unchanged apart from-enableCodeCoverage YESand-resultBundlePath, and the scheme, destination, andCODE_SIGNING_ALLOWED=NObehavior are preserved.Verification
This change is CI configuration only and touches no application, helper, XPC, signing, or SMC code.
permissionsremainscontents: read, and both actions stay pinned to the commit SHAs already trusted elsewhere in this repository.I could not run Xcode locally, so the workflow run on this pull request is the verification. It should show one
Build and Testjob rather than a duplicate pair, aRecord toolchain versionsstep naming the resolved Xcode, and acore-monitor-ci-resultsartifact.I did not pin
xcode-versionto an exact release. Pinning to a version themacos-14image does not carry would break CI outright, and the current value is what your passing runs already resolve. Once this run prints the version, pinning becomes a safe one line follow up.