myxce/src/scheduler/testsuite
Rongsong Shen 6400f96d9d
fix(scheduler): mirror plugin_begin_session/plugin_end_session into sim-mode driver (bug-1681)
sim_loop.c never called plugin_begin_session()/plugin_end_session() at
its round boundary, unlike driver.c's normal-mode round -- a driver-
equivalence gap found by an /xce-audit-invariants scheduler pass.
Currently inert (sim mode's only reachable picker, builtin_fcfs, leaves
both hooks NULL) but structurally identical to bug-1613's class of bug.

Relocated plugin_begin_session()/plugin_end_session() from an implicit
xce_scheduler_t* to xce_sched_core_t* directly (mirroring
sched_account_jobs()'s prior relocation) -- their bodies never touched
anything beyond core->plugins, so driver.c's comment claiming they
"needed the full xce_scheduler_t*" was itself stale. sim_loop.c now
calls both, same relative position as driver.c. A full-tree grep (done
after the first build attempt failed on an untouched file) turned up a
third live call site in scheduler.c's legacy sched_begin_session()/
sched_end_session(), plus four testsuite files with their own stub
definitions of the same functions -- all updated to match the new
signature.

Extended test_sim_session_ordering.c's existing bug-1613 regression
tests with new plugin_begin_session()/plugin_end_session() spies
(call-count + session_active-window proof, same technique as the
existing sched_account_jobs spy). RED/GREEN independently verified:
temporarily disabled the two new call sites, confirmed both new
assertions fail (Expected 2 Was 0 / Expected 1 Was 0), restored,
reconfirmed green. Full scheduler suite: 51/52 green, the one failure
is the pre-existing unrelated bug-1560 sandbox flake.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AgYRU3zDTqNGV5Jk8aiKLg
2026-08-25 06:40:14 +00:00
..
meson.build feat(scheduler-dispatch-commit): scheduler transitions job to RUN at dispatch commit (task 2.1) 2026-08-23 08:25:35 +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 fix(scheduler): mirror plugin_begin_session/plugin_end_session into sim-mode driver (bug-1681) 2026-08-25 06:40:14 +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 fix(scheduler): extend core-isolation nm-audit to core_events.c/core_session.c/core_clock.c (Req 5 AC 1/2) 2026-08-19 11:00:41 +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): mirror plugin_begin_session/plugin_end_session into sim-mode driver (bug-1681) 2026-08-25 06:40:14 +00:00
test_driver_session_ordering.c feat(scheduler-sim-decision-parity): relocate resource accounting to core-level (task 1.1) 2026-08-22 06:04:03 +00:00
test_driver_translate.c fix(scheduler): mirror plugin_begin_session/plugin_end_session into sim-mode driver (bug-1681) 2026-08-25 06:40:14 +00:00
test_handlers.c feat(scheduler-dispatch-commit): scheduler processes dispatch-fail notify, returns job to PEND (task 2.2) 2026-08-23 09:25:38 +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_no_bare_printf.c fix(scheduler): sim_print_decision() bypassed tlog, producing inconsistent PEND/DISPATCH/PREEMPT output 2026-08-20 03:02:48 +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-sim-decision-parity): relocate resource accounting to core-level (task 1.1) 2026-08-22 06:04:03 +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-sim-decision-parity): give sim mode driver.c's round-boundary split (task 2.1) 2026-08-22 07:25:12 +00:00
test_repl_equivalence.c fix(scheduler-sim-decision-parity): give sim mode driver.c's round-boundary split (task 2.1) 2026-08-22 07:25:12 +00:00
test_repl_execution_control.c fix(scheduler-sim-decision-parity): give sim mode driver.c's round-boundary split (task 2.1) 2026-08-22 07:25:12 +00:00
test_repl_snapshot_params.c fix(scheduler-sim-decision-parity): give sim mode driver.c's round-boundary split (task 2.1) 2026-08-22 07:25:12 +00:00
test_resource_accounting.c feat(scheduler-sim-decision-parity): relocate resource accounting to core-level (task 1.1) 2026-08-22 06:04:03 +00:00
test_resval_ownership.c fix(scheduler): mirror plugin_begin_session/plugin_end_session into sim-mode driver (bug-1681) 2026-08-25 06:40:14 +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_scheduler_dispatch_commit.c test(scheduler-dispatch-commit): bug-1624 multi-round regression coverage (task 5.1) 2026-08-23 18:40:53 +00:00
test_sim_alt_events.c fix(scheduler-sim-decision-parity): give sim mode driver.c's round-boundary split (task 2.1) 2026-08-22 07:25:12 +00:00
test_sim_contention_parity.c test(scheduler-sim-decision-parity): prove capacity-aware parity under contention (task 4.1) 2026-08-22 10:53:08 +00:00
test_sim_e2e_original_motivation.c test(scheduler-sim-decision-parity): live-verify against a real 24-round recording (task 4.3, final) 2026-08-22 13:07:33 +00:00
test_sim_equivalence.c feat(scheduler-sim-decision-parity): relocate resource accounting to core-level (task 1.1) 2026-08-22 06:04:03 +00:00
test_sim_event_loop.c fix(scheduler-sim-decision-parity): give sim mode driver.c's round-boundary split (task 2.1) 2026-08-22 07:25:12 +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_reconcile_unaccounted.c feat(scheduler-sim-decision-parity): report reconciled decisions through the existing channel (task 2.4) 2026-08-22 09:07:24 +00:00
test_sim_record_output.c fix(scheduler-sim-decision-parity): give sim mode driver.c's round-boundary split (task 2.1) 2026-08-22 07:25:12 +00:00
test_sim_resource_contention.c test(scheduler-sim-decision-parity): add resource-contention replay fixture (task 1.2) 2026-08-22 06:37:04 +00:00
test_sim_round_boundary_reconciliation.c feat(scheduler-sim-decision-parity): wire reconciliation into the round boundary (task 3) 2026-08-22 10:00:06 +00:00
test_sim_session_ordering.c fix(scheduler): mirror plugin_begin_session/plugin_end_session into sim-mode driver (bug-1681) 2026-08-25 06:40:14 +00:00
test_sim_snapshot_reconcile_gap.c test(scheduler-sim-decision-parity): regression suite for existing guarantees (task 4.2) 2026-08-22 11:40:14 +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 test(scheduler-sim-decision-parity): regression suite for existing guarantees (task 4.2) 2026-08-22 11:40:14 +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