Repository navigation
Green main: clear every CI var in the telemetry test, align the CodeQL pins - #277
Conversation
… CodeQL pins Two unrelated causes, both red on main since before 0.16.0. 1. `cursor-session-end` turns telemetry ON to observe the rollup, and cleared only `CI`. `inCi` is deliberately generous and also reads GITHUB_ACTIONS plus seven more, so on GitHub Actions the gate stayed shut, nothing queued, and `summarized` came back undefined. The var list is now `CI_ENV_VARS` in gate.ts, read by both `inCi` and the test, so a var added to one reaches the other. Reproduces locally with GITHUB_ACTIONS=true. 2. codeql-action/init was bumped to 4.37.8 (#240) while analyze stayed on 4.37.7, and CodeQL refuses a version-mismatched pair: "Loaded a configuration file for version '4.37.8', but running version '4.37.7'". Both now match the 4.37.8 SHA scorecard.yml already uses, and the `# v3` comments that hid the drift name the real version.
🌱 graft blast radius1 area changed → 2 areas can be affected. 3 dependent symbols, depth 2. flowchart TB
A0(("Telemetry Notices<br/>2 symbols"))
A1(("CLI Entry Point<br/>1 symbol"))
classDef reached fill:#D9EDF3,stroke:#3AA7C9,stroke-width:1.5px,color:#0E313C;
class A0,A1 reached;
Who knows this code — 1 person across 3 areas
Ownership is git history over each area's own files, weighted towards recent work (120-day half-life). Merge commits and bots are dropped, and you are dropped from your own PR. A name with no All 3 dependent symbols, grouped by areaTelemetry Notices — 2 symbols in 1 file
CLI Entry Point — 1 symbol in 1 file
Test signal per changed area — 1 ⚠Reached = a node under a test path has a resolved edge into the changed symbol. It undercounts anything called indirectly — through a CLI, a spawned process or a dynamic import — so read a low ratio as “look here”, never as a coverage gate.
1 test suite also references this code1 symbol, kept out of the diagram and the table so they cannot crowd out the areas a reviewer has to look at.
Open the interactive graph → — click an area to see its dependent symbols at file:line. |
… CodeQL pins (trailhq#277) Two unrelated causes, both red on main since before 0.16.0. 1. cursor-session-end turns telemetry ON to observe the rollup and cleared only CI. inCi is deliberately generous and also reads GITHUB_ACTIONS plus seven more, so on GitHub Actions the gate stayed shut, nothing queued, and summarized came back undefined. The list is now CI_ENV_VARS in gate.ts, read by both inCi and the test, so a var added to one reaches the other. inCi returns identically for every input. 2. codeql-action/init was bumped to 4.37.8 (trailhq#240) while analyze stayed on 4.37.7, and CodeQL refuses a version-mismatched pair. Both now match the 4.37.8 SHA scorecard.yml already used, and the stale '# v3' comments that hid the drift name the real version.
mainhas been red since beforerelease: 0.16.0. Two unrelated causes.1.
not ok 197 — cursor-session-end force-closes THIS conversationThe test needs telemetry actually on to observe the rollup, so it clears the gates — but only
CI:inCiis deliberately generous and reads eight more:On GitHub Actions
GITHUB_ACTIONS=true, sooffReasonreturned'ci', nothing queued, andreadSession(d,'c1').summarizedwasundefinedinstead oftrue. Deterministic, both platforms, invisible on a laptop.Reproduce on
main:Fixed at the root rather than by adding one more
delete: the list is now an exportedCI_ENV_VARS, and bothinCiand the test read it. A provider added to the gate can no longer leave the test behind.CIkeeps its value check (CI=falseis a real thing people set); the rest stay presence-only.2.
analyze— CodeQL version mismatchDependabot #240 bumped
codeql-action/initto 4.37.8 and leftanalyzeon 4.37.7. CodeQL requires the pair to match. Both now use the same 4.37.8 SHA thatscorecard.ymlwas already on — all three pins in the repo are identical again.The
# v3comments were the reason this drifted unnoticed on a SHA-pinned action, so they now name the real version, matchingscorecard.yml's convention.Verification
npm testCI=true GITHUB_ACTIONS=true npm testNo production behaviour changes:
inCireturns exactly what it did for every input, and the only source edit is the extracted constant.