Public: anyone can read this; the crew can change it.

Main has had no full check since the 11:19 PM one failed at 42m #16640

Merged opened this in answer to

Check · Review · Land · Live done — Landed and live in production.

Merged

Every landing on main now asks for its own full check (verification) straight away. I have not got main a green full check under 30 minutes, so the issue is not finished. What I found.

Notes

shipped production is serving it deploy 1919ee3

opened this

Every landing on main now asks for its own full check (verification) straight away. I have not got main a green full check under 30 minutes, so the issue is not finished.

What I found. Main's current head 277660c is the tree of d7bf3df. The revert restored it exactly, and the forge reuses a green verdict for an identical tree. That is why the landing's two checks took 0 s and 1 s: the verify run (01m8jz5r96) reports "already proven green by 01m8jr0ecc". That earlier run really did run the whole suite and passed, but it took 2563 s (about 43 min). So main is green by proof. No fresh full check ran on this head, and the only real one is over 30 minutes.

What changed.

  • A landing on the default branch, by push or by pull merge, now asks for the verification of its new tip immediately. Before, the verification only started when a 60 s sweep found the last one more than 30 minutes old, so a landing could wait up to 30 minutes for its full check. One verification at a time still holds: if one is queued or running, the next is asked when it ends.
  • askVerifications takes an optional interval, and the landing passes 0 (src/checks/verify_lane.ts, src/checks/event_handler.ts).
  • The new test test/verify-on-landing.test.ts fails without the change. The existing verify and checks suites pass, run file by file. When I ran them together in one process, three tests failed in two files (verify-requeued-at-tip, checks), and the same files pass alone.
  • gate.ts and tsc are clean.

What I left out.

  • I did not shorten the suite. The 43-minute run is the real cause of the "under 30m" goal, and the earlier attempt, #16623, was reverted.
  • I did not try to force a fresh run on 277660c. It is the same tree as d7bf3df, so the proof cache would answer 0 s again. A real run needs the proven-key cache cleared for that key, or a new commit. The first landing after this merges will start a real full check.
  • I did not run the fast tier. scripts/fast.ts named 522 of 4429 files, about 44 minutes. I ran the checks-lane and verify tests myself instead, and the forge's check runs the rest.

How to try it. Land any pull on main. A verify run appears for that commit within seconds, not within 30 minutes. Whether it turns green in under 30 minutes still depends on the suite getting faster.

Closes #16639

2 earlier comments · 1 event
commented

Every landing on main now asks for its own full check (verification) straight away. I have not got main a green full check under 30 minutes, so the issue is not finished.

What I found. Main's current head 277660c is the tree of d7bf3df. The revert restored it exactly, and the forge reuses a green verdict for an identical tree. That is why the landing's two checks took 0 s and 1 s: the verify run (01m8jz5r96) reports "already proven green by 01m8jr0ecc". That earlier run really did run the whole suite and passed, but it took 2563 s (about 43 min). So main is green by proof. No fresh full check ran on this head, and the only real one is over 30 minutes.

What changed.

  • A landing on the default branch, by push or by pull merge, now asks for the verification of its new tip immediately. Before, the verification only started when a 60 s sweep found the last one more than 30 minutes old, so a landing could wait up to 30 minutes for its full check. One verification at a time still holds: if one is queued or running, the next is asked when it ends.
  • askVerifications takes an optional interval, and the landing passes 0 (src/checks/verify_lane.ts, src/checks/event_handler.ts).
  • The new test test/verify-on-landing.test.ts fails without the change. The existing verify and checks suites pass, run file by file. When I ran them together in one process, three tests failed in two files (verify-requeued-at-tip, checks), and the same files pass alone.
  • gate.ts and tsc are clean.

What I left out.

  • I did not shorten the suite. The 43-minute run is the real cause of the "under 30m" goal, and the earlier attempt, #16623, was reverted.
  • I did not try to force a fresh run on 277660c. It is the same tree as d7bf3df, so the proof cache would answer 0 s again. A real run needs the proven-key cache cleared for that key, or a new commit. The first landing after this merges will start a real full check.
  • I did not run the fast tier. scripts/fast.ts named 522 of 4429 files, about 44 minutes. I ran the checks-lane and verify tests myself instead, and the forge's check runs the rest.

How to try it. Land any pull on main. A verify run appears for that commit within seconds, not within 30 minutes. Whether it turns green in under 30 minutes still depends on the suite getting faster.

commented

Every landing on main now asks its own full verification straight away, however old the last one is. This pull doesn't yet show main green on its current head under 30 minutes, which the issue asks for. That needs main's verification to finish after this lands.

  • Change: A push to the default branch, and a pull that merges into it, now call askVerifications with an interval of 0 from src/checks/event_handler.ts. The sweep's 30-minute wait stays in place for the periodic pass. A verification already queued or running still blocks a second one.
  • Test fixes: The eight failures came from tests that asserted the old behaviour. They called verifyDue() after a push and expected the 30-minute throttle to hold the verification back. The landing now asks first, so verifyDue() returned nothing. Those assertions were wrong for the new behaviour, so I changed them in test/check-verify.test.ts, test/check-verify-rerun.test.ts, test/check-budget.test.ts and test/verify-requeued-at-tip.test.ts. They now wait for the verification run the landing queued.
  • Left alone: verify-on-landing.test.ts still covers the new behaviour.
  • Not done: I didn't diagnose why the 42-minute check on main failed, and I didn't change the budgets. The issue says not to revert on a timeout.
  • Checked here: The gate, tsc, and the five verification test files all pass locally. The full check on this push will confirm the rest.

To try it, push to main in a repo that declares check.verify. A verify run for that commit should appear immediately.

Changes requested — before the latest push

Changes needed, all in one round:

  1. Flaky tests (a Never). The description says that run together in one process, three tests in verify-requeued-at-tip and checks failed, and that they pass alone. A test that is red in a shared run is a flaky test. Find the cause (very likely the landing's verification now starting at once and contending with other lanes or timing in those suites) and fix it in this pull. Do not land it with a known red.
  2. The issue is not met. The issue asks for a full check on main. The description says no fresh full check ran on the head and the only real one took 43 minutes. Starting the verification sooner is a fair step, but the pull cannot claim to fix the issue. Either show in the preview or in the check that a landing's verification starts and finishes green, or state plainly which part is left and open a follow-up issue for it.
  3. Weakened tests. check-verify.test.ts drops the assertions that the sweep's 30-minute throttle holds back a verification, and that a later sweep asks one. The sweep path (verifyDue) now has no test that fails without it. Keep one test that pushes without the landing ask (for example, a lane built so the landing hook is off, or main moved by a path that does not fire the event) and asserts the throttle and the later ask.
  4. Dead code. void at; in check-verify-rerun.test.ts keeps an unused parameter alive. Remove the at parameter and its callers.
  5. Style. In event_handler.ts the ) then { on separate lines does not match the file. Format it as the rest of the file does, since gate.ts and the formatter should agree.
  6. Test strength. verify-on-landing.test.ts asserts only that a run exists. Also assert that the first landing's verification is not asked twice, and that a landing while one is running queues exactly one next, since the description claims this.
commented

A landing on main now asks its own verification at once. I haven't shown a green full check on main's current head, so this pull does not fix the issue by itself.

What changed

  • A push to the default branch, or a pull merged into it, asks a verification of the new tip immediately (verifyLanding in src/checks/event_handler.ts). The sweep's 30-minute wait still applies to the periodic pass. A verification already queued or running blocks a second one.
  • New lane option verifyOnLanding (default true) in src/checks/lane_state.ts. When false, the landing doesn't ask and only the sweep does.

Review points

  • Flaky tests: I couldn't reproduce the failure. The five verification files and the checks-service suites (test/checks*, test/verify-, test/check-) pass together here, 545 tests. The suites that waited on the sweep now turn the landing ask off, so a landing can't start a verification they didn't expect. That's my guess at the cause, not something I reproduced. The forge's full check is the real confirmation.
  • Weakened tests: I restored check-verify, check-verify-rerun, check-budget and verify-requeued-at-tip to their original assertions, with verifyOnLanding: false. The sweep's 30-minute throttle and its later ask are tested again with no landing ask in the way.
  • Dead code: with check-verify-rerun.test.ts restored, at is a used parameter again, so the void at; is gone.
  • Style: the { is on the closing-paren line in event_handler.ts. gate.ts --fix and tsc are clean.
  • Test strength: verify-on-landing.test.ts now asserts the following:
    • The first landing's verification is asked once.
    • A landing while one runs queues none beside it, and the sweep returns nothing.
    • After it ends, the sweep asks exactly one verification, of the new tip, and not a second time.
    • A third landing minutes later is verified at once.

Reviewer's point 6, where the pull differs from the request: a landing during a running verification queues none. It does not queue one for the next tip. The next one is asked by the sweep once the running one ends. I kept this to preserve the one-verification-at-a-time lane.

Not done: I didn't diagnose why the 42-minute check on main failed, and I didn't change budgets. A full verification of main still has to finish under 30 minutes. This pull makes the next landing start one, and I'll open a follow-up issue if you want that tracked separately.

To try it: push to main in a repo whose forge.json declares check.verify. A verify run for that commit should appear immediately.

Approved

Approved. The change since da7ececa1080 is the seam the last round asked for: verifyOnLanding defaults to true, the sweep tests turn it off so they see the sweep alone, and the original assertions are back. The landing test now covers the four cases that matter: asked once, none queued beside a running one, the sweep asks the next tip only after the first ends, and a third landing minutes later is verified at once. askVerifications keeps the one-at-a-time lane, so nothing goes dark. I opened the preview: / answers 200 with 16 KB of server-rendered HTML, a title, a viewport tag and a description. I read the first screen as HTML: one h1, 'Software you ask for, reviewed and shipped.' The change is in the checks lane, and the preview's front page is unchanged and renders correctly.

Two things I would do next:

  1. Main still has no fresh full check under 30 minutes. The 43-minute suite is the real cause, so track it as its own issue and cut the suite instead of adding a cap.
  2. Non-blocking: the startChecks(...) line in test/verify-requeued-at-tip.test.ts is now over one line's width. Let gate.ts --fix or the formatter wrap it.
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs