fix(review): ignore suppressed check-run writes - #2419
Conversation
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-01 21:06:53 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 5 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2419 +/- ##
=======================================
Coverage 95.80% 95.80%
=======================================
Files 224 224
Lines 24970 24971 +1
Branches 9075 9077 +2
=======================================
+ Hits 23922 23923 +1
Misses 428 428
Partials 620 620
🚀 New features to boost your workflow:
|
Motivation
publishedoutcomes, seeding local Gate publication state and hiding missing real GitHub writes.Description
dryRunSuppressed?: booleanfield to theCheckRunResponsetype and makepublishedOutcomereturnnullwhen that flag is present so suppressed writes are not treated aspublishedoutcomes.null(changedpostNewCheckRun/finishsignatures) and only finalize legacy pending Gate checks when a real published outcome exists.createOrUpdateGateCheckRunindry_runmode and asserts the write was suppressed (no network POST to/check-runs), an audit event was written, and nopublishedoutcome was returned.Testing
npx vitest run test/unit/github-app.test.ts test/unit/github-client.test.tsand all tests passed (108 tests total).npm run typecheckand it passed.npm run test:ciandnpm audit --audit-level=moderatebut those were blocked in this environment due to network/actionlint/npm registry access issues, so full CI was not completed here.Codex Task