refactor(scheduler-allocator-runner): describe the framework runner, not the removed my_alloc() (task 5.1)
Comments in scheduler sources and tests that presented the deleted my_alloc()/parjob claim helpers as current code now name sched_allocator_run() and its runner helpers; test helpers and tests named after my_alloc are renamed. No logic or expectation changes. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
65679285ba
commit
d006de3853
12 changed files with 104 additions and 103 deletions
|
|
@ -624,8 +624,8 @@ static void test_init_rejects_missing_ctx(void)
|
|||
* scheduler-sim-live-allocation spec, task 2.1 (Core-Safe Allocation
|
||||
* Chain): sched_try_alloc_on_host_() (resource.c) -- the per-host
|
||||
* allocation-attempt leaf that both host_iter.c's own capacity checks
|
||||
* ultimately mirror and that parjob_allocator.c's/seqjob_allocator.c's
|
||||
* my_alloc() call once per candidate -- is now core-typed. This drives it
|
||||
* ultimately mirror and that the framework routine sched_allocator_run()
|
||||
* calls once per candidate -- is now core-typed. This drives it
|
||||
* end to end (real sched_ctx_get_uncomit_host()/sched_check_host_satisfy(),
|
||||
* schedobj.c+resource.c, this file's own plugin_prepare_allocation() no-op
|
||||
* stub above) against BOTH a normal-mode-shaped (xce_scheduler_t) and a
|
||||
|
|
@ -659,10 +659,10 @@ static int try_alloc_once(xce_sched_core_t* core, xce_sched_worker_t* w,
|
|||
|
||||
/* sched_try_alloc_on_host_()'s resource-unmet branch assumes
|
||||
* ctx->reason already exists (unlike its select-mismatch branch, which
|
||||
* lazily creates one) -- my_alloc() always creates one before ever
|
||||
* lazily creates one) -- the runner always creates one before ever
|
||||
* reaching this leaf in production; this test calls the leaf directly,
|
||||
* bypassing that step, so it must set one up itself. Same pattern
|
||||
* test_parjob_combinatorial.c's own direct parjob_try_plan_() call
|
||||
* test_parjob_combinatorial.c's own direct sched_try_plan_() call
|
||||
* already established for the identical reason. */
|
||||
ctx.reason = make_pendreason(0);
|
||||
TEST_ASSERT_NOT_NULL(ctx.reason);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue