myxce/src/scheduler/testsuite
Rongsong Shen b450a6806b
fix(scheduler): activate virtual-clock logging for sim/REPL sessions (Req 5 AC 3)
sched_sim_driver_start() now registers the core's tlog format function and
marks its core active for logging right after the virtual clock is seeded
(xce_core_register_tlog_format()/xce_core_set_active_for_logging()) --
every log line for the rest of the run shows frozen/scaled replay time
instead of real wall-clock time, matching what an operator debugging
against a replay's own timeline needs. sched_sim_driver_run() deactivates
on all 7 of its return paths, since there's no sim-driver teardown
function and g_active_core_for_logging would otherwise dangle past the
caller's stack frame.

Also fixes a genuine pre-existing ASAN stack-use-after-return (bug-1598)
the new deactivation test exposed: sim_picker_thread_fn is spawned but, by
design, never joined/cancelled, so a stack-local `xce_sched_sim_driver_t
sim` in test_sim_event_loop.c was always a latent UAF once its owning test
function returned -- just not previously triggered by any prior test
ordering. Switched the three affected fixtures in that file to `static`
storage (safe: sched_sim_driver_start() memsets the whole struct on entry,
and none of the three call sites are re-entrant).
2026-08-19 11:00:33 +00:00
..
meson.build fix(scheduler): clock/resval/jobid-format fixes plus REPL live-operator gaps (task 12.5) 2026-08-19 09:48:46 +00:00
test.c feat(scheduler-core): extract xce_sched_core_t from monolithic scheduler struct (task 4.1) 2026-08-03 10:55:58 +00:00
test_admin_request.c test(scheduler-core): recording lifecycle integration tests (task 9.5) 2026-08-05 14:35:52 +00:00
test_clock.c fix(scheduler): clock/resval/jobid-format fixes plus REPL live-operator gaps (task 12.5) 2026-08-19 09:48:46 +00:00
test_core_events.c fix(scheduler): clock/resval/jobid-format fixes plus REPL live-operator gaps (task 12.5) 2026-08-19 09:48:46 +00:00
test_core_full_cycle.c fix(scheduler): clock/resval/jobid-format fixes plus REPL live-operator gaps (task 12.5) 2026-08-19 09:48:46 +00:00
test_core_isolation.c feat(scheduler-core): extract xce_sched_core_t from monolithic scheduler struct (task 4.1) 2026-08-03 10:55:58 +00:00
test_core_jbuf_capacity_pin.c feat(scheduler-core): pin jbuf capacity + record kvmgr determinism audit (task 4.2) 2026-08-03 14:09:42 +00:00
test_core_session.c feat(scheduler-core): implement clock virtualization and session timing (task 4.5) 2026-08-04 03:38:58 +00:00
test_driver_decision_cb.c fix(scheduler): clock/resval/jobid-format fixes plus REPL live-operator gaps (task 12.5) 2026-08-19 09:48:46 +00:00
test_driver_session_ordering.c fix(scheduler): clock/resval/jobid-format fixes plus REPL live-operator gaps (task 12.5) 2026-08-19 09:48:46 +00:00
test_driver_translate.c fix(scheduler): clock/resval/jobid-format fixes plus REPL live-operator gaps (task 12.5) 2026-08-19 09:48:46 +00:00
test_handlers.c feat(scheduler-core): implement scheduler-side admin request handler (task 9.4) 2026-08-05 14:11:43 +00:00
test_job_array_expand.c feat(scheduler-core): implement scheduler-side admin request handler (task 9.4) 2026-08-05 14:11:43 +00:00
test_job_array_wire_e2e.c feat(scheduler-core): implement scheduler-side admin request handler (task 9.4) 2026-08-05 14:11:43 +00:00
test_job_update.c feat(scheduler-core): extract xce_sched_core_t from monolithic scheduler struct (task 4.1) 2026-08-03 10:55:58 +00:00
test_picker_config_fields.c feat(scheduler-core): extract xce_sched_core_t from monolithic scheduler struct (task 4.1) 2026-08-03 10:55:58 +00:00
test_picker_core_loop_boundary.c test(scheduler-core): guard core scheduling loop against ordering-logic regressions (task 2.5) 2026-08-03 09:11:55 +00:00
test_picker_fcfs.c feat(scheduler-core): wire builtin_fcfs as registered default picker (task 2.4) 2026-08-03 08:51:45 +00:00
test_picker_fcfs_session.c feat(scheduler-core): wire builtin_fcfs as registered default picker (task 2.4) 2026-08-03 08:51:45 +00:00
test_picker_iface.c feat(scheduler-core): define job picker plugin contract (task 1.1) 2026-08-03 04:49:55 +00:00
test_picker_pendreason_factory_audit.c feat(scheduler-core): implement session-start signal + decision callback (task 4.4) 2026-08-04 03:08:18 +00:00
test_picker_wiring.c feat(scheduler-core): implement core event batch push interface (task 4.3) 2026-08-03 16:05:33 +00:00
test_plugin_picker_registration.c feat(scheduler-core): extract xce_sched_core_t from monolithic scheduler struct (task 4.1) 2026-08-03 10:55:58 +00:00
test_record_lifecycle.c feat(scheduler-core): implement scheduler-side admin request handler (task 9.4) 2026-08-05 14:11:43 +00:00
test_recording_path_validation.c feat(scheduler-core): implement record start/stop lifecycle (task 9.2) 2026-08-05 09:07:51 +00:00
test_repl_breakpoints_inspection.c fix(scheduler): clock/resval/jobid-format fixes plus REPL live-operator gaps (task 12.5) 2026-08-19 09:48:46 +00:00
test_repl_equivalence.c fix(scheduler): clock/resval/jobid-format fixes plus REPL live-operator gaps (task 12.5) 2026-08-19 09:48:46 +00:00
test_repl_execution_control.c fix(scheduler): clock/resval/jobid-format fixes plus REPL live-operator gaps (task 12.5) 2026-08-19 09:48:46 +00:00
test_repl_snapshot_params.c fix(scheduler): sim mode picker never learns about the initial snapshot's own jobs/queues (bug-1567) 2026-08-17 10:21:11 +00:00
test_resval_ownership.c fix(scheduler): clock/resval/jobid-format fixes plus REPL live-operator gaps (task 12.5) 2026-08-19 09:48:46 +00:00
test_scheduler_backpressure.c feat(component-failover-adoption): validate scheduler backpressure, fix candidate-name diagnostics 2026-08-11 14:00:02 +00:00
test_scheduler_connect.c feat(component-failover-adoption): validate scheduler backpressure, fix candidate-name diagnostics 2026-08-11 14:00:02 +00:00
test_scheduler_decision_publish_retry.c feat(component-failover-adoption): add scheduler decision-publish retry-until-success-or-shutdown 2026-08-11 12:03:21 +00:00
test_scheduler_decision_redelivery.c test(component-failover-adoption): add scheduler decision-redelivery queue coverage 2026-08-11 23:50:20 +00:00
test_sim_alt_events.c fix(scheduler): clock/resval/jobid-format fixes plus REPL live-operator gaps (task 12.5) 2026-08-19 09:48:46 +00:00
test_sim_equivalence.c fix(scheduler): sim mode picker never learns about the initial snapshot's own jobs/queues (bug-1567) 2026-08-17 10:21:11 +00:00
test_sim_event_loop.c fix(scheduler): activate virtual-clock logging for sim/REPL sessions (Req 5 AC 3) 2026-08-19 11:00:33 +00:00
test_sim_isolation.c fix(scheduler): sim mode picker never learns about the initial snapshot's own jobs/queues (bug-1567) 2026-08-17 10:21:11 +00:00
test_sim_record_output.c fix(scheduler): sim mode picker never learns about the initial snapshot's own jobs/queues (bug-1567) 2026-08-17 10:21:11 +00:00
test_sim_startup.c fix(scheduler): activate virtual-clock logging for sim/REPL sessions (Req 5 AC 3) 2026-08-19 11:00:33 +00:00
test_sim_verify.c fix(scheduler): clock/resval/jobid-format fixes plus REPL live-operator gaps (task 12.5) 2026-08-19 09:48:46 +00:00
test_snapshot_save_load.c test(scheduler-core): prove snapshot -EBUSY guard against a genuine active session (task 8.2) 2026-08-05 04:18:01 +00:00