Remove push-to-main trigger from Full CI#4
Merged
Conversation
Full CI (UI tests, integration tests, docker bridge) now runs on: - Nightly cron at 03:00 UTC - Manual workflow_dispatch - PRs labeled run-ui-tests Every merge used to kick off a 20-25 min Full run that could leave main with a red check for transient UI flakes. The signal isn't worth the noise for solo-maintained development — nightly catches the same regressions by the next morning, and workflow_dispatch gives on-demand coverage before tagging a release.
Each cold run re-cloned sentry-cocoa from GitHub, adding ~3:45 to 'Resolve Swift packages'. Add actions/cache keyed on Package.resolved so subsequent runs restore DerivedData/SourcePackages and the SwiftPM global cache. On cache hit, the step should drop to seconds. Cache invalidates automatically when Package.resolved changes (deps added, updated, or pinned differently).
84e7bfc to
74951b4
Compare
Caching DerivedData/SourcePackages wholesale included the artifacts directory, which stores prebuilt xcframeworks (Sentry.xcframework et al). xcodebuild re-validates those artifacts against the current environment on every run, taking ~2 min and negating the cache win. Caching only checkouts + SwiftPM global cache avoids the validation stall and keeps the win (no git clone of sentry-cocoa).
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.
Summary
main— only nightly, manual dispatch, or PR label.main(unchanged).Why
Every merge was triggering a 20–25 min Full run. For solo-maintained development, the signal isn't worth the noise of a possibly-red check sitting on
main. Nightly coverage + on-demand trigger before releases is enough.Scope
.github/workflows/ci-full.ymlonly.Release notes
n/a — infra.