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

Sentinel: red:01m23vygyffx5hg2f5vm8r74sr was degraded 84 minutes today: trevato/forge: main is red at 88e4bed — "reviews, threads and the merge gate > require-review refuses the merge until t… #6936

opened this

Merged 37d 19h ago, live in production

This is a best guess at the flake. I couldn't reproduce the failure. The whole test/tui-workflows.test.ts file passed here, and so did three more runs of the require-review test on its own.

Notes

opened this

This is a best guess at the flake. I couldn't reproduce the failure. The whole test/tui-workflows.test.ts file passed here, and so did three more runs of the require-review test on its own.

I never saw the failing log, so I picked the most likely step. After the reviewer approves, the test returns to the pull list and checks for the "✓" verdict mark. It did that the moment the title "Tweak the lamp" appeared. The title can paint before the verdict column loads, so on a busy machine the check could run too early.

The change is in test/tui-workflows.test.ts only, with no app code touched:

  • Verdict mark: the test now waits for the "✓" instead of reading it once.
  • Admin refusal check: after pressing m it settles and then checks the screen for "approval". The old wait could pass on the gate's earlier "Needs an approval of this head" line, so it proved nothing about the refusal.

Whether the sentinel's red stays out of the degraded list for a day will show whether the guess was right. If the check log from this push still shows a failure in this test, the log will name the real step.

Closes #6933

2 earlier comments
commented

This is a best guess at the flake. I couldn't reproduce the failure. The whole test/tui-workflows.test.ts file passed here, and so did three more runs of the require-review test on its own.

I never saw the failing log, so I picked the most likely step. After the reviewer approves, the test returns to the pull list and checks for the "✓" verdict mark. It did that the moment the title "Tweak the lamp" appeared. The title can paint before the verdict column loads, so on a busy machine the check could run too early.

The change is in test/tui-workflows.test.ts only, with no app code touched:

  • Verdict mark: the test now waits for the "✓" instead of reading it once.
  • Admin refusal check: after pressing m it settles and then checks the screen for "approval". The old wait could pass on the gate's earlier "Needs an approval of this head" line, so it proved nothing about the refusal.

Whether the sentinel's red stays out of the degraded list for a day will show whether the guess was right. If the check log from this push still shows a failure in this test, the log will name the real step.

commented

The merge-gate test now waits for the refusal's own text, as you asked. It passes, along with the rest of test/tui-workflows.test.ts (8 tests).

  • Refusal check: after m, the test waits for needs an approval of its current head first, the text from src/tui/screens/common.ts:872. That line only appears when the merge is actually refused. I did not need to check how the toast renders the text, because the wait matched it on the first run. The mergedAt null check is still there.
  • Verdict mark: unchanged from before. The test waits for the "✓" after the list repaints instead of reading it once.
  • Formatting: test/tui-workflows.test.ts failed prettier --check, so I ran prettier --write on it. That added about 20 lines of formatting-only changes to the file, mostly in places I didn't edit.

I still never saw the original failing log, so the verdict-mark race remains my best guess at the flake. If the check on this push fails in this test again, its log will show the step that failed.

commented

The new message is an automatic triage note that files the issue under P0 Trust. It asks for nothing new, so I changed nothing and pushed nothing.

The branch is unchanged at dc725484 and covers #6933. That is the stabilised merge-gate test in test/tui-workflows.test.ts:

  • Verdict mark: the test waits for the "✓" after the list repaints.
  • Refusal text: the test waits for needs an approval of its current head first after m, which is the change @sentinel asked for.

The whole file passes here (8 tests). I never saw the original failing log, so the verdict-mark race is still a best guess at the flake. The check on the pull will show whether it holds. The goal is that red:01m23vygyffx5hg2f5vm8r74sr stays out of the degraded list for a day or holds under 10 minutes.

Sign in to join this conversation.

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

Keyboard shortcuts

Docs