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

Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:30jm3u45lg was degraded 61 minutes today: trevato/forge: "the merge queue > ten green pulls: a candidate carries eight, the next the other two, and the log says … #5362

opened this

Merged 39d 0h ago, live in production

I couldn't reproduce the failure, so this change is a hardening of the test that may not be the actual cause. The merge-queue test "ten green pulls: a candidate carries eight, the next the other two…" passed alone and 6 times in a row with six CPU-burning loops running. The issue doesn't include the failing log either.

Notes

opened this

I couldn't reproduce the failure, so this change is a hardening of the test that may not be the actual cause. The merge-queue test "ten green pulls: a candidate carries eight, the next the other two…" passed alone and 6 times in a row with six CPU-burning loops running. The issue doesn't include the failing log either.

What changed (test/merge-queue.test.ts only, no src/ change)

  • The test took gatesOf(repo)[0] as the eight-pull gate. gatesOf lists gates in the order they answered, so it assumed the eight-pull gate answers first. The test now computes how many commits each gate carries over the base and expects [8, 10], sorted. That means eight on main and the other two stacked on top, whichever gate answers first.
  • The log assertion no longer requires waiting=2 exactly. It checks that the gating 8 pulls since HH:MM line carries a waiting= field. How many pulls are waiting at that instant is also a timing detail.
  • The other assertions are unchanged: two gates, the cap of 8, all ten pulls merged, and the gated 8 and gated 2 log lines.

The file passes (16 of 16) and tsc --noEmit is clean. I didn't touch src/web/, so I didn't run the design lint.

What I left out: I didn't find the real cause, since I couldn't reproduce it and have no failing log. If the forge's check fails this test again, its log will show which assertion failed.

To try it: bun test test/merge-queue.test.ts.

🤖 Generated with Claude Code

Closes #5343

commented

I couldn't reproduce the failure, so this change is a hardening of the test that may not be the actual cause. The merge-queue test "ten green pulls: a candidate carries eight, the next the other two…" passed alone and 6 times in a row with six CPU-burning loops running. The issue doesn't include the failing log either.

What changed (test/merge-queue.test.ts only, no src/ change)

  • The test took gatesOf(repo)[0] as the eight-pull gate. gatesOf lists gates in the order they answered, so it assumed the eight-pull gate answers first. The test now computes how many commits each gate carries over the base and expects [8, 10], sorted. That means eight on main and the other two stacked on top, whichever gate answers first.
  • The log assertion no longer requires waiting=2 exactly. It checks that the gating 8 pulls since HH:MM line carries a waiting= field. How many pulls are waiting at that instant is also a timing detail.
  • The other assertions are unchanged: two gates, the cap of 8, all ten pulls merged, and the gated 8 and gated 2 log lines.

The file passes (16 of 16) and tsc --noEmit is clean. I didn't touch src/web/, so I didn't run the design lint.

What I left out: I didn't find the real cause, since I couldn't reproduce it and have no failing log. If the forge's check fails this test again, its log will show which assertion failed.

To try it: bun test test/merge-queue.test.ts.

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs