Speed up CI with concurrency groups and targeted CodeQL builds#240
Merged
Conversation
Build the project before CodeQL init so swift-syntax and other third-party dependencies are cached. Then touch only our source files and rebuild, so CodeQL only traces compilation of SafeDI code. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #240 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 41 41
Lines 5772 5772
=========================================
Hits 5772 5772 🚀 New features to boost your workflow:
|
4 tasks
Cancel in-progress PR runs when new commits are pushed to the same branch. Main branch and scheduled runs are never cancelled since each gets a unique concurrency group via github.run_id. Also cleans up redundant xcode-select and stale comments in the CodeQL workflow. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use debug mode (SPM default) instead of release — CodeQL doesn't need optimized binaries. Build only the two product targets instead of everything, skipping test targets. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
github.run_idSafeDIandSafeDITooltargets in debug mode for CodeQL instead of a full release build of everythingxcode-selectcall and stale comments in CodeQL workflowContext
Investigated pre-building dependencies before CodeQL init to avoid tracing swift-syntax compilation. This doesn't work for Swift — CodeQL replaces the Swift compiler with a tracing wrapper, which invalidates SPM's entire build cache.
Instead, we reduce CodeQL build time by:
SafeDIandSafeDITool, skipping test targetsTest plan
🤖 Generated with Claude Code