Improve dry-run wait-line output readability #59
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-50-dry-run-output-readability"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
t=X -> t=Y) and total waited duration.Scheduler wait points: Nsummary line is unchanged and still reflects the true total tick count, so no scheduler information is lost.Why
A
--seed 42dry-run currently prints 17 consecutive identical wait lines between events 5 and 6, then another 3 between events 12 and 13. The actual scheduler events get visually buried by repetitive noise. With this change, the same run produces two readable summary lines instead of 20 near-duplicates.Before / after
Same run with
--seed 42.Before
After
A short wait run (e.g. 3 ticks) renders the same way for consistency:
Implementation
Inside
_print_dry_run_scheduler_previewinsrc/rgb_aura/dry_run.py:wait_run_start_timeandwait_run_ticksaccumulators.None, accumulate (don't print) and capture the start time on the first tick of the run._emit_wait_summaryhelper.wait_counttotal is unchanged, so theScheduler wait points: Nline at the bottom of the preview still reports the true tick count.Verification
python -m rgb_aura.main --dry-run --seed 42— preview now shows two collapsed wait lines instead of 20 individual ones. All 14 events still print in order.Scheduler wait points: 20summary preserved.python -m rgb_aura.main --dry-run --dry-run-events 14— random-seed run also collapses cleanly.Scheduler wait points: Nsummary still printed.python -m pytest tests/— 1 passed (existingtest_run_combined_runtime_returns_mapping_error_when_validation_fails).ruff format src tests scripts— 29 files left unchanged.ruff check src tests scripts— all checks passed.Hardware verification
Not required. Pure stdout-format change. Runtime scheduling logic untouched (
runtime._run_semi_random_scheduleris in a different module entirely). Theruntimemodule's--seedreproducibility is unaffected.Linked issue
Closes #50.
Branch workflow
developfix/issue-50-dry-run-output-readabilitydevelopmain.Notes for reviewer
--seed 42verification is the natural check.->chosen for the time-range separator to match the rest of the preview output (no non-ASCII characters elsewhere).