fix: a frame-time comparison gets at least two starts a side, scheduled runs can be judged again, and a PC failing alike is paused #133

Merged
HumanBean merged 1 commit from HumanBean/Beanstalk:fix/compare-starts into main 2026-11-21 18:03:08 +00:00
Owner

Summary

Farm data, last 1 to 7 days (Nov 2026):

  • Scheduled runs never passed: 16 errors, 8 fails in a week. The plan's title scenario had runs = 1 under frametime_p99_ms.max_delta_pct, and Rules.cs judges a frame-time comparison only on 2 usable starts a side or more, so it was inconclusive every time.
  • Most measured scenarios had one sample: 87 of 143 in three days had runs = 1 (the planner aimed for 20 minutes a tester, about 4 game starts).
  • One PC failed 118 tries in 27 hours (an input/output error on its disk, 49 jobs). Its jobs were rare linux+radv ones that often had no other PC, so the pause, which waits for another PC to get past the same stage, rarely fired, and then for an hour only.

Changes:

  • plan.py and Plan.cs (kept alike; the agent's checks compare them on every fixture) refuse a scenario of runs = 1 under a frame-time rule compared with main (a run metric's, every segment's when it measures, or one of its segments'). An absolute max/min is still judged from one start.
  • The planner's rules: runs = 3 for a measured scenario, two places in one scenario before two scenarios, and AIM_MIN 30 instead of 20. Measured again against the farm's own history (the 14-day run factor): a start costs about 3 min at the median and 8 at p75, so the 5 min a start estimate stays.
  • regression_plan.toml: one scenario, Hyrule Field then the Market from the Kokiri checkpoint in each of 4 starts a side: 4 samples of each place in 8 starts (54 min estimated), instead of 2 in 10 plus a title screen that was never judged. Boot time is still read from every start.
  • scheduler.setup_pauses: 3 tries at 2 jobs or more that failed alike (but for numbers and ids) at setup or prefetch count as the PC's own trouble with no other PC needed. fetch and main's build still need another PC, as before, since they fail alike on every PC when the forge or main is broken. A PC that goes on so after its pause is paused twice as long each time, up to 6 h.
  • Test fixtures build-variants.toml and matrix.toml had runs = 1 under such a rule: they get an absolute limit (two starts a side would take them over the hour). New fixture bad-compare-one-start.toml.

On screen: only the count in the existing pause message changes ("its last 6 tests failed ..."), so there are no new screenshots.

Testing

Tested on the farm's server, in containers:

  • the coordinator suite (python:3.13-alpine, Postgres 17): 618 passed, 1 skipped. New: test_a_frame_time_comparison_needs_two_starts_a_side, test_the_built_in_plans_judge_their_frame_times, test_a_pc_that_fails_alike_before_the_fetch_is_paused_with_no_other_pc, test_same_failure_is_alike_but_for_numbers_and_ids;
  • the agent (dotnet/sdk:10.0): build, then test_agent_core.py --strict: 2356 checks passed.
  • The new regression plan with the farm's estimator: runs 4 → 54 min, 8 starts; runs 5 is refused (68 min).

Still to test: the next scheduled run's reports.

🤖 Generated with Claude Code

## Summary Farm data, last 1 to 7 days (Nov 2026): - **Scheduled runs never passed**: 16 errors, 8 fails in a week. The plan's `title` scenario had `runs = 1` under `frametime_p99_ms.max_delta_pct`, and `Rules.cs` judges a frame-time comparison only on 2 usable starts a side or more, so it was `inconclusive` every time. - **Most measured scenarios had one sample**: 87 of 143 in three days had `runs = 1` (the planner aimed for 20 minutes a tester, about 4 game starts). - **One PC failed 118 tries in 27 hours** (an input/output error on its disk, 49 jobs). Its jobs were rare `linux+radv` ones that often had no other PC, so the pause, which waits for another PC to get past the same stage, rarely fired, and then for an hour only. Changes: - `plan.py` and `Plan.cs` (kept alike; the agent's checks compare them on every fixture) refuse a scenario of `runs = 1` under a frame-time rule compared with main (a run metric's, every segment's when it measures, or one of its segments'). An absolute `max`/`min` is still judged from one start. - The planner's rules: `runs = 3` for a measured scenario, two places in one scenario before two scenarios, and `AIM_MIN` 30 instead of 20. Measured again against the farm's own history (the 14-day run factor): a start costs about 3 min at the median and 8 at p75, so the 5 min a start estimate stays. - `regression_plan.toml`: one scenario, Hyrule Field then the Market from the Kokiri checkpoint in each of **4 starts a side**: 4 samples of each place in 8 starts (54 min estimated), instead of 2 in 10 plus a title screen that was never judged. Boot time is still read from every start. - `scheduler.setup_pauses`: 3 tries at 2 jobs or more that failed **alike** (but for numbers and ids) at `setup` or `prefetch` count as the PC's own trouble with no other PC needed. `fetch` and main's build still need another PC, as before, since they fail alike on every PC when the forge or main is broken. A PC that goes on so after its pause is paused twice as long each time, up to 6 h. - Test fixtures `build-variants.toml` and `matrix.toml` had `runs = 1` under such a rule: they get an absolute limit (two starts a side would take them over the hour). New fixture `bad-compare-one-start.toml`. On screen: only the count in the existing pause message changes ("its last 6 tests failed ..."), so there are no new screenshots. ## Testing **Tested** on the farm's server, in containers: - the coordinator suite (python:3.13-alpine, Postgres 17): 618 passed, 1 skipped. New: `test_a_frame_time_comparison_needs_two_starts_a_side`, `test_the_built_in_plans_judge_their_frame_times`, `test_a_pc_that_fails_alike_before_the_fetch_is_paused_with_no_other_pc`, `test_same_failure_is_alike_but_for_numbers_and_ids`; - the agent (`dotnet/sdk:10.0`): build, then `test_agent_core.py --strict`: 2356 checks passed. - The new regression plan with the farm's estimator: runs 4 → 54 min, 8 starts; runs 5 is refused (68 min). **Still to test:** the next scheduled run's reports. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix: a frame-time comparison gets at least two starts a side, scheduled runs can be judged again, and a PC failing alike is paused
Some checks failed
CI / Conventional Commit title (pull_request) Successful in 13s
CI / Workflow lint (actionlint) (pull_request) Successful in 16s
CI / Agent build and checks (pull_request) Successful in 57s
CI / Coordinator tests (pull_request) Failing after 1m50s
CI / Coordinator image (pull_request) Successful in 11s
8c9bde7181
Rules.cs judges a frame-time rule compared with main on each side's median of two usable starts or more. 87 of the
143 scenarios that measured in the last three days had runs = 1, so their reports could never be judged, and the
scheduled plan's title screen (runs = 1 under frametime_p99_ms.max_delta_pct) made every scheduled run of the last
week end "could not be judged" or fail: none passed.

- plan.py and Plan.cs refuse a scenario of runs = 1 under such a rule (a run metric's, every segment's, or one of its
  segments'); an absolute limit (max, min) is still judged from one start. The planner is told so: runs = 3 for a
  measured scenario, two places in one scenario rather than two scenarios, and 30 minutes of game runs a tester to aim
  for, not 20.
- The scheduled plan is one scenario, Hyrule Field then the Market in each of 4 starts a side: 4 samples of each place
  in 8 starts (about 54 min), not 2 in 10 with a title screen that was never judged.
- A PC whose last 3 tries, at 2 jobs or more, failed alike before the fetch (setup, prefetch: its .nup, its disk) is
  paused even where no other PC got past those jobs, and a PC that goes on failing so after its pause is paused twice as
  long each time, up to 6 h. One PC hit an input/output error on its disk at 49 jobs, 118 tries in 27 hours, its rare
  linux+radv jobs having no other PC to compare with.

Assisted-by: Claude Code
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member

Possibly related, for context:

  • issue #88 The frame-time rule fails and passes PRs by chance, and the farm cannot see whether frame generation ran — Under-sampled frame-time rule and inconsistent judgments; this PR fixes the one-start comparison case.
Possibly related, for context: - issue #88 The frame-time rule fails and passes PRs by chance, and the farm cannot see whether frame generation ran — Under-sampled frame-time rule and inconsistent judgments; this PR fixes the one-start comparison case.
HumanBean changed title from WIP: fix: a frame-time comparison gets at least two starts a side, scheduled runs can be judged again, and a PC failing alike is paused to fix: a frame-time comparison gets at least two starts a side, scheduled runs can be judged again, and a PC failing alike is paused 2026-11-21 18:02:57 +00:00
HumanBean deleted branch fix/compare-starts 2026-11-21 18:03:10 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Beanstalk!133
No description provided.