Skip to content

Cancel superseded CI runs and keep test result bundles - #40

Merged
offyotto merged 1 commit into
mainfrom
harden-ci-workflow
Aug 5, 2026
Merged

offyotto merged 1 commit into
mainfrom
harden-ci-workflow

Conversation

@offyotto

@offyotto offyotto commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Change

CI had no concurrency group, so a push to main and 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. The feature/** and release/** push triggers also duplicated the pull_request trigger for in-repo branches. On failure the run produced no retrievable diagnostics, only scrollback in the log.

This adds a concurrency group keyed on the ref with cancel-in-progress, narrows the push trigger to main so pull requests are covered once, records sw_vers and xcodebuild -version so the resolved toolchain is visible in the log, and writes an .xcresult bundle that is uploaded as an artifact on both success and failure. The test invocation itself is unchanged apart from -enableCodeCoverage YES and -resultBundlePath, and the scheme, destination, and CODE_SIGNING_ALLOWED=NO behavior are preserved.

Verification

  • Tests cover the changed behavior.
  • User-facing changes are documented.
  • Security-sensitive changes were reviewed for privilege, XPC, signing, and SMC impact.

This change is CI configuration only and touches no application, helper, XPC, signing, or SMC code. permissions remains contents: 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 Test job rather than a duplicate pair, a Record toolchain versions step naming the resolved Xcode, and a core-monitor-ci-results artifact.

I did not pin xcode-version to an exact release. Pinning to a version the macos-14 image 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.

Repository owner deleted a comment from chatgpt-codex-connector Bot Aug 5, 2026
@offyotto
offyotto force-pushed the harden-ci-workflow branch from 228be4e to ca6c7d5 Compare August 5, 2026 13:48
@offyotto
offyotto merged commit 3ec2b78 into main Aug 5, 2026
3 checks passed
@offyotto
offyotto deleted the harden-ci-workflow branch August 9, 2026 12:44
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.

1 participant