Skip to content

app/: checks waiting for review reach GitHub; forge posts hold no transaction; refused posts alert (sc-8900) - #125

Merged
ndbroadbent merged 1 commit into
mainfrom
forge-check-fix
Dec 3, 2026
Merged

ndbroadbent merged 1 commit into
mainfrom
forge-check-fix

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

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.check failure was the same 422 from GitHub: For properties/conclusion, nil is not a string. A check waiting for review is in_progress with 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

  • The check-run body leaves conclusion out when there's none (report::github_check_run).
  • No GitHub call inside a transaction. forge.check and forge.pr_comment posted 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}), as builds.process does: 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.
  • Refused posts are visible. /status has forge_posts_failed (checks and comments that used up their retries in the last day) and forge_posts_retrying (on their third try or later). The metrics have visualci_forge_posts_failed_24h{kind="check"|"comment"}.

Tests

  • The tests' GitHub fake now refuses a check run the way GitHub does: a null or unknown conclusion, or a completed check without one, gets a 422. a_changed_build_gets_a_waiting_check_and_a_comment fails on main with it, and passes here; it also checks no conclusion is sent.
  • refused_checks_show_on_the_status.

After deploy

failed_jobs holds the refused checks from today. Retrying them (visualci-app queue:retry for the forge.check ones) posts the missing checks; until they're retried or cleared, forge_posts_failed stays above 0 for a day.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…eck and comment posts hold no transaction; refused posts on /status and the metrics (sc-8900)
@ndbroadbent
ndbroadbent merged commit c6e6ca3 into main Dec 3, 2026
12 checks passed
@ndbroadbent
ndbroadbent deleted the forge-check-fix branch December 3, 2026 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant