Repository navigation
fix(#1312): GitHubProvider.postComment ignores gh's exit status, so a failed QA verdict post is silent - #1319
Merged
admarble merged 2 commits intoOct 5, 2026
Conversation
…gh failure Entire-Checkpoint: 8435c8808f6b
Entire-Checkpoint: f935a53d33e8
4 tasks
admarble
deleted the
feature/1312-bug-run-githubprovider-postcomment-ignores-gh-s-ex
branch
October 5, 2026 14:17
7 tasks
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
GitHubProvider.postComment,addLabelandremoveLabelnow throw whenghfails, so a failed QA verdict post reaches the "Failed to post QA verdict comment" warning. The fullnpm testrun did not finish, so I can't confirm the whole suite. It hit the 590 s limit with no output, and CI will have to cover it.What ran:
npm run buildandnpm run lintpassed.src/lib/workflow/platforms/,batch-executor.test.tsandsrc/commandstests (831 tests).runGhOrThrowinsrc/lib/workflow/platforms/github.ts. It throws on a spawn error, a signal, or a non-zero status, and the message includesgh's stderr.AC verification
runGhOrThrowinsrc/lib/workflow/platforms/github.ts.github-gh-failure.test.tscovers all three methods for exit 1, a timeout (SIGTERM,ETIMEDOUT) and a spawn failure (ENOENT). It also checks stderr is in the error and that exit 0 resolves.github-gh-failure.test.tscallspostQaVerdictCommentwith no injectedpostComment, so the realGitHubProviderruns against a stubbed failingspawnSync. It asserts the warning is logged withHTTP 502: bad gatewayin it.I added a CHANGELOG entry under
[Unreleased]→ Fixed. Scope is as the issue comment set it:postPRCommentand the ready gate's empty catch are left for #1315.Mutation result: Replacing the failure check with
result.status === 999made 13 of 16 tests in the new file fail. The 3 that passed are the exit-0 cases, as expected. The first mutation attempt,if (false), broke thetscbuild in global setup, so no test ran; I discarded that and restored the file.Pre-PR Confidence Check
ready.tsand the ready gate'spostComment. Both sit inside existing try/catch blocks, and fix(platforms): PlatformProvider has no error contract — postPRComment is still unchecked and the ready gate's report-post catch is empty (#1312 follow-up) #1315 covers their error handling.github.tsandbatch-executor.tsboth have tests.Next steps:
/qashould check the full-suite result in CI.Runner note
This body was written by the runner from exec's final
## Summary(runbb39b1ac). The run's own body was the placeholder, because of the #1311 cause recorded on that issue. The body has nosequant runtrailer, so the post-QA update leaves it alone. Follow-up for the rest of the class: #1315.Fixes #1312
🤖 Generated with Claude Code