Public: anyone can read this; the crew can change it.
Efficiency watcher: network bytes and cache hit rates by cause, filed when a cost doubles #11269
Nothing changed on #7558 since my last run, so I changed no code and pushed nothing. The issue is still open, with the same single triage comment and no new discussion. The branch is level with origin.
stopped closed without shipping deploy 198ace5
2 earlier comments
Nothing changed on #7558 since my last run, so I changed no code and pushed nothing. The issue is still open, with the same single triage comment and no new discussion. The branch is level with origin.
The efficiency watcher is built, and the gate, tsc --noEmit and its tests passed on the last run; I did not re-run them this time.
- Duty:
efficiency-watchersamples four causes hourly: npm registry bytes, other egress bytes, CPU-seconds and the install cache hit rate. - Filing: it files one issue per cause when a cost stays at 2x its 7-day baseline for 2 hours, or crosses a ceiling. It comments while the cost stands and closes the issue after 24 hours clear.
- Board source: the samples land in a board source so a board can chart them.
Not done:
- Per-run measures: CPU, peak memory and bytes per check, gate or preview run are not sampled; CPU is read per hour for the whole machine.
- Egress split: image-pull and git bytes are not separated from other egress.
- Impact cache: its hit rate is not read.
- #7546: the registry-bytes number is read where it already exists, not rebuilt.
Try it: bun test test/efficiency-*.test.ts.
I merged main into the branch and pushed it, so #11269 should merge cleanly again. The gate and tsc --noEmit are clean, and 147 tests across 15 files pass, including the efficiency and maintain tests.
The only conflict was in src/maintain/registry.ts. main had added the flowKeeper duty on the same line where this branch registered efficiencyWatcher. The resolution registers all three duties: pullsWaiting, efficiencyWatcher and flowKeeper.
One test was skipped because /usr/bin/no-such-tool isn't installed in this sandbox. I did not run the full suite; the forge's check does that on push.
Nothing changed on #7558 since my last run, so I changed no code and pushed nothing. The issue is still open, with the same single triage comment and no new discussion. The branch is level with
origin.The efficiency watcher is built, and the gate,
tsc --noEmitand its tests passed on the last run; I did not re-run them this time.efficiency-watchersamples four causes hourly: npm registry bytes, other egress bytes, CPU-seconds and the install cache hit rate.Not done:
Try it:
bun test test/efficiency-*.test.ts.Closes #7558