Releases are published with GITHUB_TOKEN, whose events do not retrigger
workflows, so build_image.yaml's `on: release` trigger never fired and
release commits never received a GHCR image. Dispatch build_image.yaml
explicitly from tag-and-release.yaml after publishing (workflow_dispatch
is exempt from the no-retrigger rule), and drop the now-dead `on: release`
trigger plus its unreachable github.event.release.* references.
* fix(trainer): don't resolve Hub envs when parsing orchestrator configs
discover_runs() builds OrchestratorConfig to read training-relevant fields, but
constructing a v1 env config eagerly resolves (imports/installs) its taskset/
harness plugins from the Environments Hub. On the trainer that 404s for private
hub envs (taskset.id = owner/name@version) — the trainer has no Hub credentials —
so get_orchestrator_config() returns None and the run is silently skipped.
Parse under verifiers' skip_plugin_install contextvar so the trainer never
touches the Hub; the env server still installs the plugin at runtime.
Depends on verifiers exposing `skip_plugin_install` — bump deps/verifiers to a
commit that includes it before this lands.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(trainer): sort imports to satisfy ruff isort (I001)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The build job in build_image.yaml opted into the ghcr-publish
environment solely for its required-reviewers protection rule, which
paused every ghcr build (release + .dev-tag dispatch on merge to main)
pending manual approval. The environment held no scoped secrets or
variables, so it provided nothing functional. The job already has
packages: write and authenticates via GITHUB_TOKEN, and ref
restrictions are enforced in the prepare job, so ghcr builds now
publish automatically.
Pulls in renderers#97 (laguna-xs-2.1 renderer variant: XS-2.1's template
drops the baked-in default system message) and renderers#94 (multimodal
payload through build_training_sample). No renderers dependency changes,
so uv.lock is untouched.
* chore(ci): drop --all-extras from CPU unit tests to fix disk exhaustion
The CPU unit-test job ran `uv sync --all-extras --locked`, pulling the
entire dependency universe (envs, flash-attn-3, disagg, quack, gpt-oss,
modelexpress) just to run `pytest tests/unit -m "not gpu"`. That ~2-3GB
of GPU kernels and env deps (spacy, rdkit, chromadb, opencv, onnxruntime,
...) overflows the runner's root disk — the last run died extracting
triton with "No space left on device (os error 28)".
No `tests/unit` test imports any of those extras: they only use base deps
(torch, transformers, vllm, verifiers.v1) plus dev (pytest). The one test
touching flash_attn skips gracefully when it's absent. Install base + dev
only.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* clean up comment
* fix(ci): install flash-attn extra for CPU unit tests
Dropping --all-extras entirely broke test collection: `ring_flash_attn`
(a base dep) hard-imports `flash_attn` at module load, and `flash_attn`
is provided only by the flash-attn extra. 12 model/train tests failed to
collect with `ModuleNotFoundError: No module named 'flash_attn'`.
Add back just the flash-attn extra (a prebuilt wheel on x86_64, no build).
The disk fix holds — we still skip envs/flash-attn-3/disagg/quack/etc.,
the ~2-3GB no unit test imports.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(ci): add envs extra for CPU unit tests config loading
test_load_configs loads every config TOML; configs referencing a v1
taskset make verifiers.v1.loaders import the taskset package by name at
runtime (scaleswe_v1, math500_v1, aime24_v1, ...), which ships via the
envs extra. Static import analysis missed this, so the prior commit's
base+flash-attn install failed 15 config-loading tests.
The run proved the disk fix and the extras audit: 454 tests passed with
only flash-attn installed, and the sole failures were envs tasksets. So
install flash-attn + envs and skip the GPU-only extras (flash-attn-3,
disagg, quack, gpt-oss, modelexpress, flash-attn-cute) no unit test uses.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* clean up comment
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(docker): pin uv project env to /app/.venv
uv's centralized/cached project environments (a preview feature as of uv
0.11.25, and a likely future default) make `uv sync` build the env in the
uv cache and leave `.venv` as a symlink into it. The runtime stage ships the
env via `COPY --from=builder /app /app`, which can't follow that symlink (the
cache store lives outside /app), so the venv goes missing and the build fails
at the `bin/python` relink.
Setting UV_PROJECT_ENVIRONMENT=/app/.venv forces uv to materialize a real
in-project venv directory regardless of that behavior, so the cross-stage copy
keeps working even if/when the feature graduates from preview to the default.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(uv): drop vestigial `preview = true`
This flag was added in #1772 solely to silence a `uv run` warning on an
older uv (~Feb 2026). That warning no longer fires on uv >= 0.11.9 (verified
with and without preview on `uv run` and `uv lock`), so the opt-in is dead
weight.
It is not harmless dead weight: `preview = true` enables uv's *entire*
experimental feature surface, including features added in future releases.
uv 0.11.25 shipped the `centralized-project-envs` preview feature, which the
global opt-in silently activated — relocating the project env into the uv
cache and leaving `.venv` as a symlink into it. The Docker image build COPYs
only `/app`, so that symlink dangled in the runtime stage and the venv went
missing (`rm /app/.venv/bin/python` failed). Dropping the flag removes the
root enabler of that class of breakage.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* use system python intepreter and remove the re-linking steps
* clean up comments
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* docker: copy cuda toolkit from builder into runtime image
* use slim bookworm for glibc 2.36
* use nvidia cuda base image at runtime to avoid glibc mismatches; include cuda 13 runtime
* bug bot fixes
* fix groupadd collision
* include python3.12-dev in runtime image
* use cuda 13 runtime libs source
* trim cuda12 toolkit to just the nvcc JIT essentials
* install: check platform and exit early on unsupported platforms
* handle stripped ansi escape prefix for color output
* Revert "handle stripped ansi escape prefix for color output"
This reverts commit b8850f73893c3189d86848fb3849986275a12963.
* fix entrypoint in dockerfile
* set uv install to dir that is accessible to non-root users in builder stage
in the final stage of the dockerfile, the user is switched to "appuser",
which won't have access to the root dir. So if we want to use a non root
user at runtime, uv should be installed in a nonroot accessible
location.
* removing duplicate header in README