Repository navigation
CodeQL: PR scans see results; new errors and warnings fail; scan main daily (Part of #7153) - #7154
Conversation
A PR's analysis held no results (#6719: 0, main 405), so the check read 'No new alerts' whatever the PR did. Diff-informed analysis goes off, and a report-only step compares the PR's results with main's latest analysis in the files it changed. main is scanned daily. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No description provided. |
|
PR #7154 @ e5fb418: 1 failed check(s) == full-suite part 1/2 (failure) -- real |
|
No description provided. |
) Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
CI shepherd: the head of this PR (fbbc28c) is not the one a maintainer labelled |
|
No description provided. |
|
PR #7154 @ fbbc28c: 13 failed check(s) == db2 (cancelled) -- infra == db2 ${{ matrix.shard }} (cancelled) -- infra == det (failure) -- real == durations key (cancelled) -- infra == full-suite (failure) -- real == full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra == ground-truth part ${{ matrix.shard }} (cancelled) -- infra == ground-truth-warm (cancelled) -- infra == plan the suite parts (cancelled) -- infra == shard ${{ matrix.group }}/${{ needs.plan.outputs.splits }} (cancelled) -- infra == shard ${{ matrix.shard }} (cancelled) -- infra == store the suite's durations (cancelled) -- infra == suite time budget (#5166) (cancelled) -- infra |
|
No description provided. |
Owner 2026-10-30: enforce errors and warnings only. Notes and the rules proven false here are still reported. A result is new only if the file gained that rule, and code moved from elsewhere on main doesn't count, so a shifted hash can't fail a PR. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…7153) Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
CI shepherd: the head of this PR (5f219b8) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
Part of #7153
Problem
Open code-scanning alerts on
mainwent from 34 to 459 in five weeks, while every PR's CodeQL check read "No new alerts". PR analyses held no results at all: #6719 added alerts and its SARIF has 0, whilemain's has 405. So the check couldn't stop anything.What this does
CODEQL_ACTION_DIFF_INFORMED_QUERIES: "false"). Tested on this PR: its analysis went from 0 results to 425.tests/tools/codeql_new_alerts.py, which compares a PR's results withmain's latest analysis. A result is new only when all of these hold: it's in a file the PR changed, its rule and line hash aren't onmain, the same rule and hash aren't elsewhere onmain(moved code), and the file has more of that rule thanmaindoes (a hash also changes when a neighbouring line does).Analyze, andci-gateholds the PR. Notes are reported, never blocking.py/regex/unmatchable-*andpy/ineffectual-statementare report-only, because they're proven false on this code: 134 of them were dismissed with written reasons on CodeQL: PR scans see nothing and open alerts grew from 34 to 459 #7153.maindaily instead of weekly.gate_controls.pyand lowers the unproven count to 20.Evidence
Replayed on this PR's real results against
mainacross all files: 21 new, 7 blocking. Those 7 include threepy/redundant-comparisonwarnings ingitgalaxy/core/detector.pyand one newpy/unsafe-cyclic-import. Limited to a PR's changed files, the count on any one PR will be far smaller.Before the count check, the same data gave 25 new, about 9 of them likely hash churn.
Cost (
.claude/rules/ci-workflows.md)docs/ci.md. One run, not a sample.main: 6 more scans a week.Risks
main's analysis can't be read, the step passes without checking.Checks
-k 'workflow or classifier or codeql or critical_path or gate_controls'): 257 passed. Not the full suite locally.main, keeping thecodeql-actionv4.39.1 bump from build(deps): bump the codeql-action group across 1 directory with 3 updates #7116 alongside this change.🤖 Generated with Claude Code