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

While "flow only" is on, a crew pull for a non-flow issue gets no feedback run; it is held with one line saying it waits for the switch #7393

opened this

Merged 38d 16h ago, live in production

While flow only is on, a crew pull with changes requested no longer gets a feedback run if every issue it closes is non-flow work. It gets one comment instead: "Waits for flow only to be turned off". tsc is clean and test/requested.test.ts, test/requested-pulls.test.ts and test/flow-only.test.ts pass.

Notes

opened this

While flow only is on, a crew pull with changes requested no longer gets a feedback run if every issue it closes is non-flow work. It gets one comment instead: "Waits for flow only to be turned off". tsc is clean and test/requested.test.ts, test/requested-pulls.test.ts and test/flow-only*.test.ts pass. I did not run the full suite.

  • Rule used: src/crew/requested.ts finds the issues the pull's body closes (Closes #N) and applies the same flowOnlyHolds check that #6393 uses for builders. A pull is held when it closes at least one issue and none of them is flow work.
  • Comment: it is posted under the reviewer's name, with the same disclaimer the handover note carries. It is said once per verdict, found by prefix. The tick log and the tally count the pull as "held".
  • Switch off: the hold is evaluated every tick, so the next tick handles the pull as before. The existing follow-up and handover rules apply unchanged.
  • Tests: one new case in test/requested.test.ts. A feature pull gets no run and exactly one comment, and it stays at one across a second tick. A flow-labelled pull gets a run. After the switch goes off, the feature pull gets a run.
  • Order of checks: the flow hold is checked before the builder-slot check, so a held pull is never reported as waiting for a slot.

Left out:

  • A pull that closes no issue is not held, since there is no issue to judge.
  • The "reviewer asked again after a new push" path is not held, because it is a review, not a build, and the switch only covers builds.

Closes #6446

commented

While flow only is on, a crew pull with changes requested no longer gets a feedback run if every issue it closes is non-flow work. It gets one comment instead: "Waits for flow only to be turned off". tsc is clean and test/requested.test.ts, test/requested-pulls.test.ts and test/flow-only*.test.ts pass. I did not run the full suite.

  • Rule used: src/crew/requested.ts finds the issues the pull's body closes (Closes #N) and applies the same flowOnlyHolds check that #6393 uses for builders. A pull is held when it closes at least one issue and none of them is flow work.
  • Comment: it is posted under the reviewer's name, with the same disclaimer the handover note carries. It is said once per verdict, found by prefix. The tick log and the tally count the pull as "held".
  • Switch off: the hold is evaluated every tick, so the next tick handles the pull as before. The existing follow-up and handover rules apply unchanged.
  • Tests: one new case in test/requested.test.ts. A feature pull gets no run and exactly one comment, and it stays at one across a second tick. A flow-labelled pull gets a run. After the switch goes off, the feature pull gets a run.
  • Order of checks: the flow hold is checked before the builder-slot check, so a held pull is never reported as waiting for a slot.

Left out:

  • A pull that closes no issue is not held, since there is no issue to judge.
  • The "reviewer asked again after a new push" path is not held, because it is a review, not a build, and the switch only covers builds.
commented

I made the changes you asked for in one round and pushed them. tsc is clean, and test/requested.test.ts and test/requested-pulls.test.ts pass (13 tests). I did not run the full suite.

  • Words: WAITS_FOR_FLOW_ONLY now lives in src/crew/words.ts beside WAITS_FOR_BUILDER_SLOT. The comment and the notMoved reason both use it, so the string appears once.
  • Tally: the hold has its own tally word, "waits for flow only", so the tick line reads … 1 waits for flow only. It is separate from "held".
  • Test: the flow-only test now checks the exact why and that the tally counts the hold under the new word.
  • Layout: the nested ternary in moveRequested is now an if chain. The comment text is a note const, so the addComment line is short.

One thing differs slightly from your wording: the reason is now the capitalised comment text "Waits for flow only to be turned off". Before, it was a separate lowercase string beginning "held, …". Using one constant for both is what you asked for, and reasonOf matches it exactly.

Sign in to join this conversation.

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

Keyboard shortcuts

Docs