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

Clog note: measure time to detect #16235

Closed opened this
Closed without merging

I made no changes this turn. The steward's note describes work already on this branch, so I checked it and left it as it was. What the branch already does: the clog-cleared note prints - Time to detect: … (src/flow/clognote.ts), and docs/features/clog-watch.md describes it.

Notes

stopped closed without shipping deploy a129ae0

opened this

I made no changes this turn. The steward's note describes work already on this branch, so I checked it and left it as it was.

  • What the branch already does: the clog-cleared note prints - Time to detect: … (src/flow/clog_note.ts), and docs/features/clog-watch.md describes it. The figure is declared minus started. When the clog starts at the moment it was detected, as with a landing-ratio clog, the line is left out. That avoids printing a false "0 min".
  • How it gets there: the per-minute clog tick (src/flow/clog_tick.ts) works out the real start from the oldest approved pull's wait. The note shows on the admin's home line and in the Flow dialog for 24 hours after the clog clears.
  • Tests: test/flow-clog-door.test.ts passes (6 tests). It covers "Time to detect: 60 min" and the omitted-line case. bun x tsc --noEmit is clean.
  • Not on main yet: the commits that add this (9afa0833b, 11c56ea94) are only on this branch. The pull has to be merged for the steward's note to be true on main. That is also why I did not decline as already done.
  • Left out: no change to the measurement or the wording.

To try it, run bun test test/flow-clog-door.test.ts.

Closes #6757

2 earlier comments
commented

I made no changes this turn. The steward's note describes work already on this branch, so I checked it and left it as it was.

  • What the branch already does: the clog-cleared note prints - Time to detect: … (src/flow/clog_note.ts), and docs/features/clog-watch.md describes it. The figure is declared minus started. When the clog starts at the moment it was detected, as with a landing-ratio clog, the line is left out. That avoids printing a false "0 min".
  • How it gets there: the per-minute clog tick (src/flow/clog_tick.ts) works out the real start from the oldest approved pull's wait. The note shows on the admin's home line and in the Flow dialog for 24 hours after the clog clears.
  • Tests: test/flow-clog-door.test.ts passes (6 tests). It covers "Time to detect: 60 min" and the omitted-line case. bun x tsc --noEmit is clean.
  • Not on main yet: the commits that add this (9afa0833b, 11c56ea94) are only on this branch. The pull has to be merged for the steward's note to be true on main. That is also why I did not decline as already done.
  • Left out: no change to the measurement or the wording.

To try it, run bun test test/flow-clog-door.test.ts.

commented

This pull now merges cleanly, but its tree is identical to main, so it adds nothing beyond what main already has.

main had moved on to its own version of the clog door. That is the home line, Flow dialog line, clog tick and cleared note, with clog_last. It had also added the same test/flow-clog-door.test.ts. The merge conflicted in 9 files: README, docs/features/clog-watch.md, src/core/event_audience.ts, src/flow/clog_tick.ts, src/main.ts, src/tui/screens/flow.ts, src/web/studio/home.ts, src/web/studio/kpi_row.ts and that test.

main's version already includes what this branch meant. The cleared note prints "Time to detect" and leaves the line out when detection wasn't measured. The tick derives the real start from the oldest approved wait. The clog also moved to the engine thread, and the Flow dialog shows it for the admin.

I took main's side in every conflict, and the merge changes nothing relative to main. I did not try to blend the two versions, because that would have undone main's engine-thread move.

  • bun test test/flow-clog-door.test.ts passes (6 tests).
  • bun x tsc --noEmit is clean after bun install. It had failed on a missing happy-dom before that.
  • bun scripts/gate.ts --fix changed nothing.
  • I pushed it.

The steward's "Time to detect" note is therefore already true on main, and a person can close the pull instead of merging it.

commented

Closed by the crew: superseded, its change is already on main in c7bf0186.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs