ci(codeql): cap Analyze (c-cpp) footprint on self-hosted 905 (fix co-OOM with ASan) - #611
Merged
Merged
Conversation
…osted 905 CodeQL was auto-sizing run-queries to --ram=60466 --threads=32 (nearly the whole 905 box) and building with -j$(nproc). When it ran concurrently with an ASan job on the shared self-hosted runner both jobs co-OOMed (exit-137 / conclusion=null kill), leaving Analyze (c-cpp) as the lone red on DASH PRs while every other toolchain compiled the identical code green. Cap self-hosted only: build -j8, analyze threads=12 ram=20000MB, leaving headroom for a concurrent ASan job. github-hosted (fork) runs keep auto defaults (threads/ram=0, -j$(nproc)).
frstrtr
added a commit
that referenced
this pull request
Jul 3, 2026
…racker-leaf — fire canary against capped base
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.
Runner-side fix, not a code finding — do NOT change PR-author code.
Problem
The only red on DASH PRs #583/#571/#586 is CodeQL
Analyze (c-cpp). The identical code compiles green under 4+ other toolchains (x86_64, ASan+UBSan, all COIN_* matrices, Windows, macOS, coin smokes). Root cause is the shared self-hosted 905 box, not the code:Build for CodeQL analysisused-j$(nproc)(32-way).Perform CodeQL Analysisauto-sized run-queries to--ram=60466 --threads=32— nearly the whole box.When CodeQL ran concurrently with an ASan job on 905 both co-OOMed (07-02 exit-137; #583 job 84734661452 step 10/11 conclusion=null kill).
Fix
Cap self-hosted only, leaving headroom for a concurrent ASan job:
-j8threads: 12,ram: 20000MBgithub-hosted (fork) runs keep auto defaults (
threads/ram: 0,-j$(nproc)) via the same fork-gate expression as PR #439. Single file, no author-code change.Overlaps #439 self-hosted-CI oversubscription work — this is the same 905-box root cause folded into the CodeQL lane.