Skip to content

Mock provider - #47

Merged
vsoch merged 4 commits into
mainfrom
mock-provider
Dec 2, 2026
Merged

vsoch merged 4 commits into
mainfrom
mock-provider

Conversation

@vsoch

@vsoch vsoch commented Dec 2, 2026

Copy link
Copy Markdown
Member

No description provided.

vsoch added 3 commits October 21, 2026 10:21
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
The real vendors' queues are the uncontrolled variable that made the
coscheduling-vs-default comparison noise: no two trials meet the same
queue. The mock IS the queue: wait = base_overhead + depth * service_time,
with the depth set per pod, so an experiment can draw depths from the
measured 42-day distributions (flux-quantum-experiments/queues) and replay
the same draw through both arms. Mirrors the Flux side's mock backend down
to the parameter names, so both resource managers replay the same
committed plans.

Registers ahead of qrmi, which claims any non-braket qrmi_type. The
ungate threshold is lead time in task-units: 1 ungates one service-time
early, 0 exactly at the end of the wait. FLUENCE_MOCK_FAIL exercises the
workers-stay-gated path.

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
The sidecar and staging init container pulled Always, so on a kind
cluster the registry's :latest silently replaced a locally built sidecar
image of the same tag - an experiment then runs a sidecar without the
provider it was built to test. FLUENCE_SIDECAR_PULL_POLICY=IfNotPresent
(or Never) on the webhook deployment keeps the loaded build; the default
stays Always.

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
has_env piped a kubectl jsonpath through tr into grep -q under
pipefail. grep -q exits at the first match, the producer takes a
SIGPIPE writing the rest, and pipefail reports the pipeline as the
producer's 141, so the check returned missing exactly when the env
was found (the tr broken-pipe warnings in the failing run are the
tell: they only appear on a match). Rewritten with no pipeline. The
two other kubectl-fed grep -q conditions read to EOF now for the
same reason; the echo-fed ones cannot race and stay.

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
@vsoch
vsoch merged commit f0116fd into main Dec 2, 2026
9 checks passed
@vsoch
vsoch deleted the mock-provider branch December 2, 2026 23:26
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