Repository navigation
app/: checks waiting for review reach GitHub; forge posts hold no transaction; refused posts alert (sc-8900) - #125
Merged
Merged
Conversation
…eck and comment posts hold no transaction; refused posts on /status and the metrics (sc-8900)
ndbroadbent
force-pushed
the
forge-check-fix
branch
from
December 3, 2026 08:21
5230dfa to
b196bcc
Compare
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.
Production posted no GitHub check for any build waiting for review, so pull requests sat without a VisualCI check (blocking merges). talira infra found every
forge.checkfailure was the same 422 from GitHub:For properties/conclusion, nil is not a string. A check waiting for review isin_progresswith no conclusion, and app/ sent"conclusion": null; GitHub's schema refuses null. Builds 26 to 93 (docspring/docspring's PRs among them) were affected from 05:23 UTC on.Changes
conclusionout when there's none (report::github_check_run).forge.checkandforge.pr_commentposted inside a transaction holding a Postgres advisory lock, the pattern that broke processing (app/: processing holds no long transaction and no blob locks; ProcessBuild timeout fits big builds #118). Both now serialise with a cache lock (forge.check:{build},forge.pr_comment:{project}:{pr}), asbuilds.processdoes: they read in their own statements, post with no transaction open, then record the check's id. A job that finds the lock held is released and tries again after 10 s./statushasforge_posts_failed(checks and comments that used up their retries in the last day) andforge_posts_retrying(on their third try or later). The metrics havevisualci_forge_posts_failed_24h{kind="check"|"comment"}.Tests
a_changed_build_gets_a_waiting_check_and_a_commentfails on main with it, and passes here; it also checks noconclusionis sent.refused_checks_show_on_the_status.After deploy
failed_jobsholds the refused checks from today. Retrying them (visualci-app queue:retryfor the forge.check ones) posts the missing checks; until they're retried or cleared,forge_posts_failedstays above 0 for a day.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.