Skip to content

test(ci): queue age feeds the auto tier wait, plan shows tier and wait (P7-AUTO-05) - #546

Merged
acamarata merged 1 commit into
land/p7f-pluginsfrom
gaps/p7-auto-05
Oct 30, 2026
Merged

acamarata merged 1 commit into
land/p7f-pluginsfrom
gaps/p7-auto-05

Conversation

@acamarata

Copy link
Copy Markdown
Contributor

Adds the two tests P7-AUTO-05's verify lines name but #543 does not carry. Stacked on #543 (base land/p7f-plugins). Test-only.

  • internal/dispatch/queued_ms_test.go
    • TestDispatchFillsQueuedMs: place derives QueuedMs from EnqueuedAt at the tick clock. It is read back through the tier.waiting detail ("N ms left of step_sec"). A job never enqueued, or a clock that went back, reads as no wait. A job past step_sec runs on the lower tier.
    • TestDispatchPlanFillsQueuedMsFromItsClock: Dispatcher.Plan uses the configured clock.
  • internal/planview/tier_wait_test.go
    • TestPlanShowsTierAndWait: under auto, a held job's cell names tier.waiting, the held runner and the wait left. After the wait, the chosen line shows tier <t> bias <n>. balanced prints no tier text.

Verification (local, scoped)

CGO_ENABLED=0 go test -mod=vendor -count=1 -run 'TestDispatchFillsQueuedMs|TestDispatchPlanFillsQueuedMsFromItsClock|TestPlanShowsTierAndWait|TestTierRank' ./internal/dispatch/ ./internal/planview/ gives ok, ok. gofmt is clean.

Ticket: P7-AUTO-05

…t (P7-AUTO-05)

TestDispatchFillsQueuedMs: place derives QueuedMs from EnqueuedAt at the
tick clock; a job never enqueued or a clock that went back reads as no
wait. TestPlanShowsTierAndWait: under auto the held job's cell carries
tier.waiting with the wait left, the chosen line shows tier and bias,
and other presets print no tier text.
@acamarata
acamarata merged commit 1f36261 into land/p7f-plugins Oct 30, 2026
17 of 20 checks passed
@acamarata

Copy link
Copy Markdown
Contributor Author

Folded into #543 (land/p7f-plugins) to land in one CI run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant