feat(scheduler): show event time/session in sim echo, total sessions on replay load
repl_print_event_summary() (interactive REPL event echo) now prefixes each echoed event with "[sim] t=<ns> (<human>) session=<N>", using the same xce_core_now()/repl_format_ts_human()/session_count sources "info session" already reports. Uses session_count+1, not the raw count: events stream in and are echoed individually before the ReplaySession/ begin_round message that increments session_count is even read (file order is event, event, ..., ReplaySession), so an echoed event always belongs to the session about to begin. Add sim_prescan_session_count() (sim.c): scans the replay file from the current position via shape-only classification (mirroring sim_loop.c's own ReplayEvent/ReplaySession/SnapshotEntry dispatch), counts ReplaySession messages, then rewinds via fseek back to the exact ftell() position -- same rewind technique sim_locate_and_load_snapshot() already uses. Wired into sched_sim_driver_start(): prints "[sim] replay file contains N sessions" once at load, non-fatal on scan failure. Add test_replay_load_reports_total_session_count; extend test_step_echoes_events_before_session_decisions with t=/session=1 assertions. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
4e3e6332c5
commit
8abab049f4
4 changed files with 221 additions and 3 deletions
|
|
@ -2520,3 +2520,39 @@
|
|||
| 21:10 | Session end: 9 writes across 4 files (test_group.c, group.c, test_apply_committed_entry.c, persist.c) | 23 reads | ~127583 tok |
|
||||
| 21:11 | Session end: 9 writes across 4 files (test_group.c, group.c, test_apply_committed_entry.c, persist.c) | 23 reads | ~127583 tok |
|
||||
| 21:12 | Fixed StartTime/FinishTime never set (raft-apply-decoupling apply-pump gap) — wal_type-keyed time(NULL) stamping in apply_committed_entry, TDD RED->GREEN, bug-1561 re-observed (6th time, unrelated overlayfs artifact, not a regression) | src/controller/persist.c, src/controller/testsuite/test_apply_committed_entry.c, .wolf/buglog.json | GREEN, 1107 Tests 2 pre-existing-unrelated Failures | ~35000 |
|
||||
| 21:25 | Session end: 9 writes across 4 files (test_group.c, group.c, test_apply_committed_entry.c, persist.c) | 23 reads | ~127583 tok |
|
||||
| 23:48 | Session end: 9 writes across 4 files (test_group.c, group.c, test_apply_committed_entry.c, persist.c) | 23 reads | ~127583 tok |
|
||||
| 06:49 | Rebuilt scheduler debug profile (src/build.dbg) via xce-build.sh to deploy bug-1600 fix (group.c makeGroup rtti free) for pc13v crash-loop; ran meson test --suite scheduler | src/build.dbg/scheduler/xce_scheduler | build OK, 42 Ok / 1 Fail (bug-1560 pre-existing, unrelated) | ~15000 |
|
||||
| 23:50 | Session end: 9 writes across 4 files (test_group.c, group.c, test_apply_committed_entry.c, persist.c) | 24 reads | ~127583 tok |
|
||||
| 23:58 | Session end: 9 writes across 4 files (test_group.c, group.c, test_apply_committed_entry.c, persist.c) | 24 reads | ~127583 tok |
|
||||
| 00:00 | Session end: 9 writes across 4 files (test_group.c, group.c, test_apply_committed_entry.c, persist.c) | 24 reads | ~127583 tok |
|
||||
| 00:02 | Created .kiro/specs/build-time-versioning/spec.json | — | ~130 |
|
||||
| 00:02 | Created .kiro/specs/build-time-versioning/requirements.md | — | ~361 |
|
||||
| 00:04 | Created .kiro/specs/build-time-versioning/requirements.md | — | ~1792 |
|
||||
| 00:04 | Edited .kiro/specs/build-time-versioning/spec.json | 8→8 lines | ~55 |
|
||||
| 00:06 | Session end: 13 writes across 6 files (test_group.c, group.c, test_apply_committed_entry.c, persist.c, spec.json) | 36 reads | ~143885 tok |
|
||||
| 00:18 | Edited src/scheduler/src/repl_info.c | added 3 condition(s) | ~839 |
|
||||
| 00:18 | Edited src/scheduler/src/repl_info.c | pool() → index() | ~311 |
|
||||
| 00:18 | Edited src/scheduler/src/repl_info.c | 15→18 lines | ~300 |
|
||||
| 00:19 | Edited src/scheduler/src/repl_info.c | added 2 condition(s) | ~800 |
|
||||
| 00:20 | Edited src/scheduler/testsuite/test_repl_breakpoints_inspection.c | 8→9 lines | ~151 |
|
||||
| 00:20 | Edited src/scheduler/testsuite/test_repl_breakpoints_inspection.c | 2→3 lines | ~46 |
|
||||
| 00:20 | Edited src/scheduler/testsuite/test_repl_breakpoints_inspection.c | 2→2 lines | ~36 |
|
||||
| 00:22 | Edited src/scheduler/testsuite/test_repl_breakpoints_inspection.c | modified requirement() | ~687 |
|
||||
| 00:22 | Edited src/scheduler/testsuite/test_repl_breakpoints_inspection.c | modified requirement() | ~719 |
|
||||
| 00:23 | Edited src/scheduler/testsuite/test_repl_breakpoints_inspection.c | 4→6 lines | ~105 |
|
||||
| 07:27 | Fixed info resource/info worker to gate value+used display on XCE_RESF_CONSUMABLE, added ordtype to resource definition | src/scheduler/src/repl_info.c, src/scheduler/testsuite/test_repl_breakpoints_inspection.c, .wolf/buglog.json | GREEN, 42/43 Ok, only pre-existing bug-1560 remains | ~90000 |
|
||||
| 00:29 | Edited src/scheduler/src/repl_break.c | modified 5() | ~460 |
|
||||
| 00:29 | Edited src/scheduler/src/repl_break.c | inline fix | ~11 |
|
||||
| 00:30 | Edited src/scheduler/testsuite/test_repl_breakpoints_inspection.c | expanded (+19 lines) | ~511 |
|
||||
| 00:33 | Session end: 26 writes across 9 files (test_group.c, group.c, test_apply_committed_entry.c, persist.c, spec.json) | 52 reads | ~204795 tok |
|
||||
| 00:36 | Edited src/scheduler/src/repl_break.c | 10→13 lines | ~230 |
|
||||
| 00:36 | Edited src/scheduler/src/repl_break.c | 3→3 lines | ~53 |
|
||||
| 00:39 | Edited src/scheduler/src/sim.c | added 7 condition(s) | ~845 |
|
||||
| 00:39 | Edited src/scheduler/src/sim.c | added 1 condition(s) | ~230 |
|
||||
| 00:42 | Edited src/scheduler/testsuite/test_repl_breakpoints_inspection.c | modified requirement() | ~458 |
|
||||
| 00:42 | Edited src/scheduler/testsuite/test_repl_breakpoints_inspection.c | 3→4 lines | ~40 |
|
||||
| 00:43 | Session end: 32 writes across 10 files (test_group.c, group.c, test_apply_committed_entry.c, persist.c, spec.json) | 55 reads | ~220167 tok |
|
||||
| 07:46 | ASAN build+full testsuite verified for repl_break.c/sim.c session-count changes | src/scheduler/src/repl_break.c, src/scheduler/src/sim.c, src/scheduler/testsuite/test_repl_breakpoints_inspection.c | 42/43 Ok, only known bug-1560 admin_request symlink failure; new+changed tests all PASS | ~55k |
|
||||
| 00:48 | Created ../../../../../../tmp/claude-1000/-home-rshen-projects-xce-worktrees-scheduler-framework/0334ebbe-8d9c-4931-871d-87c678f83a79/scratchpad/log_bug_1602.py | — | ~1054 |
|
||||
| 08:31 | Added event time/session echo (session_count+1, events precede their own BEGIN_ROUND marker) and replay-file session-count pre-scan (ftell/fseek, shape-only) | src/scheduler/src/repl_break.c, src/scheduler/src/sim.c, src/scheduler/testsuite/test_repl_breakpoints_inspection.c, .wolf/buglog.json | GREEN, 42/43 Ok, only pre-existing bug-1560 remains | ~110000 |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue