Repository navigation
Improve CodeQL and CI resource usage and speed - #82
Merged
Merged
Conversation
Build AsyncQueue explicitly for Swift CodeQL: autobuild only built CLI/Package.swift, so the library was never compiled under the tracer. Run the build natively instead of under Rosetta, move the actions and ruby analyses to ubuntu, and skip CodeQL on Markdown-only changes. In CI, cancel superseded runs, cache the SwiftFormat build, and add a job that tests on the latest Swift release. Add Dependabot for GitHub Actions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #82 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 13 13
Lines 1297 1313 +16
=========================================
+ Hits 1297 1313 +16 🚀 New features to boost your workflow:
|
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
Ports the CI improvements from SafeDI 2.1.0 that apply to this repo.
CodeQL: Swift analysis wasn't scanning the library
The Swift job's autobuild found
CLI/Package.swift(the SwiftFormat wrapper, which has no targets) and built only that. The log of the last run (40260495542) shows SwiftFormat being fetched and built and noCompiling AsyncQueue, so CodeQL had nothing of ours to analyze. The job took ~9 minutes to report 0 results.build-mode: manualand runsswift build --target AsyncQueue.arch -arm64with Xcode's toolchain first onPATH(SafeDI #325). CodeQL's Swift extractor is x86_64-only, so otherwise SwiftPM and the compiler inherit Rosetta from the tracer.actionsandrubyanalyses run onubuntu-latestso they don't queue for macOS runners.paths-ignore; not a required check) and cancels superseded runs.CI
concurrencycancels superseded runs on the same PR.CLI/.buildso SwiftFormat isn't compiled from source every run.swift:latest(ubuntu, no coverage upload) to catch new-toolchain breakage. Adding it as a required check is a repo-settings change.Dependabot
Adds
.github/dependabot.ymlfor GitHub Actions, monthly, grouped into one PR. Action major bumps (checkout v7, codecov-action v7, etc.) are left to it.Not ported
.buildcaching and the retry action: this package has no dependencies.after_n_buildsgating: worth doing separately if partial-upload status flips are seen.Verification
actionlintpasses; workflows parse as YAML.Build complete!).Analyze (swift)should logCompiling AsyncQueue.🤖 Generated with Claude Code