426e9eeabd
Benchmark Bridge Tests / benchmark (bunx @biomejs/biome check packages/lifeops-bench/src, benchmark-lint) (push) Waiting to run
Benchmark Bridge Tests / benchmark (bunx vitest run --config packages/lifeops-bench/vitest.config.ts --root packages/lifeops-bench --passWithNoTests, benchmark-tests) (push) Waiting to run
Build Agent Image / build-and-push (push) Waiting to run
Chat shell gestures / Chat shell gesture + parity e2e (push) Waiting to run
ci / test (push) Waiting to run
ci / lint-and-format (push) Waiting to run
ci / build (push) Waiting to run
ci / dev-startup (push) Waiting to run
Cloud Gateway Discord / Test (push) Waiting to run
Cloud Gateway Webhook / Test (push) Waiting to run
Cloud Tests / lint-and-types (push) Waiting to run
Cloud Tests / unit-tests (push) Waiting to run
Cloud Tests / integration-tests (push) Waiting to run
Cloud Tests / e2e-tests (push) Blocked by required conditions
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
Deploy Apps Worker (Product 2) / Determine environment (push) Waiting to run
Deploy Apps Worker (Product 2) / Deploy apps worker to apps-control host (${{ needs.determine-env.outputs.environment }}) (push) Blocked by required conditions
Deploy Eliza Provisioning Worker / Determine environment (push) Waiting to run
Deploy Eliza Provisioning Worker / Deploy worker to Hetzner host (${{ needs.determine-env.outputs.environment }} @ ${{ needs.determine-env.outputs.deployment_sha }}) (push) Blocked by required conditions
Dev Smoke / Classify changed paths (push) Waiting to run
Dev Smoke / bun run dev onboarding chat (push) Blocked by required conditions
Dev Smoke / Vite HMR dependency-level smoke (push) Blocked by required conditions
Electrobun Submodule Guard / electrobun gitlink is fetchable (push) Waiting to run
gitleaks / gitleaks (push) Waiting to run
Markdown Links / Relative Markdown Links (push) Waiting to run
Publish @elizaos/example-code / check_npm (push) Waiting to run
Publish @elizaos/example-code / publish_npm (push) Blocked by required conditions
Publish @elizaos/plugin-elizacloud / verify_version (push) Waiting to run
Publish @elizaos/plugin-elizacloud / publish_npm (push) Blocked by required conditions
Quality (Extended) / Homepage Build (PR smoke) (push) Waiting to run
Quality (Extended) / Comment-only diff guard (push) Waiting to run
Quality (Extended) / Format + Type Safety Ratchet (push) Waiting to run
Quality (Extended) / Develop Gate (secret scan + UI determinism) (push) Waiting to run
Quality (Extended) / Develop Gate (lint) (push) Waiting to run
Sandbox Live Smoke / Sandbox live smoke (push) Waiting to run
Snap Build & Test / Build Snap (amd64) (push) Waiting to run
Snap Build & Test / Build Snap (arm64) (push) Waiting to run
supply-chain / sbom (push) Waiting to run
supply-chain / vulnerability-scan (push) Waiting to run
Build, Push & Deploy to Phala Cloud / build-and-push (push) Waiting to run
Test Packaging / Validate Packaging Configs (push) Waiting to run
Test Packaging / PyPI on Python ${{ matrix.python }} (push) Waiting to run
Test Packaging / Pack & Test JS Tarballs (push) Waiting to run
Test Packaging / elizaos CLI global-install smoke (node + bun) (push) Waiting to run
UI Fixture E2E / ui-fixture-e2e (push) Waiting to run
UI Fixture E2E / fixture-e2e (push) Waiting to run
UI Story Gate / story-gate (push) Waiting to run
vault-ci / test (macos-latest) (push) Waiting to run
vault-ci / test (ubuntu-latest) (push) Waiting to run
vault-ci / test (windows-latest) (push) Waiting to run
vault-ci / app-core wiring tests (push) Waiting to run
verify-patches / verify patches/CHECKSUMS.sha256 (push) Waiting to run
Voice Benchmark Smoke / voice-emotion fixture smoke (push) Waiting to run
Voice Benchmark Smoke / voiceagentbench fixture smoke (push) Waiting to run
Voice Benchmark Smoke / voicebench-quality unit smoke (push) Waiting to run
Voice Benchmark Smoke / voicebench TypeScript unit (no audio) (push) Waiting to run
Voice Benchmark Smoke / voice bench smoke summary (push) Blocked by required conditions
Windows CI / windows ([bun run --cwd packages/app-core test bun run --cwd packages/elizaos test bun run --cwd packages/cloud/shared test], app-and-cli) (push) Waiting to run
Windows CI / windows ([bun run --cwd packages/scenario-runner test bun run --cwd packages/vault test bun run --cwd packages/security test bun run --cwd plugins/plugin-coding-tools test], framework-packages) (push) Waiting to run
Windows CI / windows ([bun run --cwd plugins/plugin-elizacloud test bun run --cwd plugins/plugin-discord test bun run --cwd plugins/plugin-anthropic test bun run --cwd plugins/plugin-openai test bun run --cwd plugins/plugin-app-control test bun run --cwd plugins/pl… (push) Waiting to run
Windows CI / windows ([node packages/scripts/run-turbo.mjs run build --filter=@elizaos/core --filter=@elizaos/shared --filter=@elizaos/agent --concurrency=4 node packages/scripts/run-bash-linux-only.mjs scripts/verify-riscv64-buildpaths.sh node packages/scripts/run… (push) Waiting to run
Windows CI / windows ([node packages/scripts/run-turbo.mjs run typecheck --filter=@elizaos/core --filter=@elizaos/shared --filter=@elizaos/cloud-shared --concurrency=4 bun run --cwd packages/core test bun run --cwd packages/shared test], core-runtime, 75) (push) Waiting to run
Test Packaging / Build & Test PyPI Package (push) Waiting to run
Voice Workbench / headless workbench (mocked backends) (push) Has been cancelled
Voice Workbench / real acoustic lane (nightly, provisioned only) (push) Has been cancelled
213 lines
9.3 KiB
YAML
213 lines
9.3 KiB
YAML
name: Training Stack
|
|
|
|
# Reproducibility gate for the eliza-1 training + quantization stack.
|
|
#
|
|
# Two lanes:
|
|
# - cpu-smoke: GitHub-hosted ubuntu-22.04. Builds the CPU image, lints
|
|
# packages/training/scripts/, runs the model_registry
|
|
# import probe, and any pure-python tests that do not
|
|
# require CUDA. Runs on every PR that touches
|
|
# packages/training/**.
|
|
# - gpu-build: Self-hosted runner with `gpu-cuda-12.6` label. Builds
|
|
# the full GPU Dockerfile (which exercises QJL nvcc end
|
|
# to end) and runs CUDA-dependent tests. Pull requests
|
|
# opt in with the `gpu-ci` label; push/manual runs keep
|
|
# exercising the self-hosted lane.
|
|
#
|
|
# CUDA / torch alignment lives in packages/training/Dockerfile and
|
|
# packages/training/pyproject.toml — keep the runner label and the
|
|
# Dockerfile CUDA tag in lockstep when they change.
|
|
|
|
on:
|
|
push:
|
|
branches: [develop]
|
|
paths:
|
|
- "packages/training/**"
|
|
- ".github/workflows/training-stack.yml"
|
|
workflow_dispatch:
|
|
|
|
# CI fan-out fix: the PR-scoped concurrency from #14069 fell back to
|
|
# github.run_id on push, so every develop push got a unique group and
|
|
# nothing ever superseded. A 37-merge wave queued thousands of push runs
|
|
# and starved the self-hosted fleet. Fall back to github.ref (all develop
|
|
# pushes share a group) and cancel superseded runs on push too. PR behavior
|
|
# is unchanged (pull_request.number still wins the key); merge_group and
|
|
# schedule events are not in the cancel set, so the merge queue and nightly
|
|
# runs always complete.
|
|
concurrency:
|
|
group: training-stack-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.event_name == 'push' }}
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
cpu-smoke:
|
|
name: CPU smoke (lint + import)
|
|
runs-on: ${{ fromJSON(vars.HETZNER_FLEET_ONLINE == 'false' && '["ubuntu-24.04"]' || '["self-hosted","hetzner-robot"]') }}
|
|
timeout-minutes: 30
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
|
|
with:
|
|
submodules: false
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c
|
|
|
|
# The CPU training image is large; the stock github-hosted runner runs out
|
|
# of disk mid-build ("No space left on device"). Reclaim the preinstalled
|
|
# toolchains we don't need before building.
|
|
- name: Free disk space
|
|
run: |
|
|
sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/lib/android \
|
|
/opt/hostedtoolcache/CodeQL /usr/local/.ghcup || true
|
|
sudo docker image prune -af || true
|
|
df -h
|
|
|
|
- name: Build CPU image
|
|
id: build_cpu
|
|
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a
|
|
with:
|
|
context: packages/training
|
|
file: packages/training/Dockerfile.cpu
|
|
tags: eliza-training-cpu:ci
|
|
load: true
|
|
cache-from: type=gha,scope=training-cpu
|
|
cache-to: type=gha,scope=training-cpu,mode=max
|
|
|
|
- name: Install ruff (host)
|
|
# ruff lint is fast on the host and gives a clean GitHub
|
|
# Annotations surface — no need to shell into the container.
|
|
run: pipx install ruff || pip install --user ruff
|
|
|
|
- name: Lint packages/training/scripts/
|
|
run: ruff check packages/training/scripts/
|
|
|
|
- name: Import probe — model_registry
|
|
# The whole point of this lane: catch import-time errors in the
|
|
# training package before they hit a real GPU run.
|
|
# Mount live sources under /workspace/live so the image's
|
|
# /workspace/.venv and TOON node_modules remain visible at runtime.
|
|
run: |
|
|
docker run --rm \
|
|
-v "${{ github.workspace }}/packages/training:/workspace/live" \
|
|
-e PYTHONPATH=/workspace/live/scripts \
|
|
eliza-training-cpu:ci \
|
|
-c "python -c 'from training.model_registry import REGISTRY; print(list(REGISTRY))'"
|
|
|
|
- name: Run pure-python test suite
|
|
# All pytest files in scripts/ that don't need GPU. test_reward_fn
|
|
# may be a no-op in some branches; we still surface its result.
|
|
#
|
|
# Mount the whole workspace at /workspace/repo and run from
|
|
# packages/training inside it. The quant recipe gate anchors its kernel
|
|
# sources at the repo root (_kernel_manifest.py resolves parents[4];
|
|
# test_recipes_smoke.py resolves _HERE.parents[3]) to hash/compile
|
|
# plugins/plugin-local-inference/native/{reference,verify} and
|
|
# packages/native/plugins/*. A packages/training-only mount left that
|
|
# anchor at the container root, so the manifest hash checks hard-failed
|
|
# ("kernel hash source missing") and the C-reference parity tests
|
|
# silently skipped — a false green. The CPU image ships a C compiler
|
|
# (cc) so the parity tests compile-and-run for real.
|
|
run: |
|
|
docker run --rm \
|
|
-v "${{ github.workspace }}:/workspace/repo" \
|
|
-e PYTHONPATH=/workspace/repo/packages/training/scripts \
|
|
eliza-training-cpu:ci \
|
|
-c "set -e; \
|
|
cd /workspace/repo/packages/training; \
|
|
pytest -xvs \
|
|
scripts/test_default_thought_leak.py \
|
|
scripts/test_eliza_record.py \
|
|
scripts/test_cap_distribution.py \
|
|
scripts/test_reward_fn.py \
|
|
scripts/test_tier_caps.py \
|
|
scripts/quantization/test_recipes_smoke.py \
|
|
scripts/training/test_finite_guard.py \
|
|
scripts/training/test_instrumentation.py \
|
|
scripts/training/test_model_registry.py \
|
|
scripts/manifest/test_eliza1_manifest.py \
|
|
scripts/manifest/test_eliza1_manifest_schema.py \
|
|
scripts/test_prepare_eliza1_trajectory_dataset.py"
|
|
|
|
- name: Corpus-quality chain end-to-end smoke
|
|
# Synthesizer dry-runs → classifier → audit --strict-phases →
|
|
# reasoning_cot + claude_distill transforms. Catches drift in
|
|
# the runtime-phase enforcement chain (RUNTIME_PHASES.md /
|
|
# COVERAGE_AUDIT.md) on every PR.
|
|
run: |
|
|
docker run --rm \
|
|
-v "${{ github.workspace }}/packages/training:/workspace/live" \
|
|
-e PYTHONPATH=/workspace/live/scripts \
|
|
eliza-training-cpu:ci \
|
|
-c "set -e; cd /workspace/live; bash scripts/ci_smoke_e2e.sh"
|
|
|
|
- name: Upload logs on failure
|
|
if: failure()
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
|
|
with:
|
|
name: cpu-smoke-logs
|
|
path: |
|
|
packages/training/scripts/**/*.log
|
|
/tmp/*.log
|
|
if-no-files-found: ignore
|
|
retention-days: 7
|
|
|
|
gpu-build:
|
|
name: GPU build (QJL nvcc + Triton JIT)
|
|
# only run when a gpu-cuda-12.6 self-hosted runner is actually available.
|
|
# gated on an explicit opt-in (the `gpu-ci` PR label or a manual dispatch) so
|
|
# the job never auto-fires on push and hangs queued forever waiting for a
|
|
# runner label no registered runner currently has. flip on by adding the
|
|
# `gpu-ci` label to a PR, dispatching manually, or registering a gpu runner +
|
|
# relaxing this guard.
|
|
if: contains(github.event.pull_request.labels.*.name, 'gpu-ci') || github.event_name == 'workflow_dispatch'
|
|
runs-on: [self-hosted, gpu-cuda-12.6]
|
|
timeout-minutes: 60
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
|
|
with:
|
|
submodules: false
|
|
|
|
- name: Show GPU / CUDA host environment
|
|
run: |
|
|
nvidia-smi || echo "[gpu-build] nvidia-smi not available"
|
|
nvcc --version || echo "[gpu-build] nvcc not on host PATH (Docker image still has it)"
|
|
docker --version
|
|
|
|
- name: Build GPU image
|
|
# End-to-end validation of the QJL nvcc compile chain. If this
|
|
# step succeeds, every later run on this image is guaranteed
|
|
# to have working QJL .so files and a Triton-capable toolchain.
|
|
run: |
|
|
docker build \
|
|
--file packages/training/Dockerfile \
|
|
--tag eliza-training:ci \
|
|
packages/training
|
|
|
|
- name: Run QJL CUDA tests (skip cleanly if no GPU visible)
|
|
# test_qjl.py auto-skips its CUDA-dependent assertions when no
|
|
# GPU is visible inside the container. Mounting --gpus all gives
|
|
# it real CUDA devices when the runner has them.
|
|
run: |
|
|
docker run --rm --gpus all \
|
|
-v "${{ github.workspace }}/packages/training:/workspace_src:ro" \
|
|
eliza-training:ci \
|
|
-c "set -e; \
|
|
cd /workspace; \
|
|
python scripts/quantization/test_qjl.py || \
|
|
{ echo '[gpu-build] test_qjl.py exited non-zero (may be acceptable skip — see logs)'; exit 1; }"
|
|
|
|
- name: Upload logs on failure
|
|
if: failure()
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
|
|
with:
|
|
name: gpu-build-logs
|
|
path: |
|
|
packages/training/scripts/**/*.log
|
|
/tmp/*.log
|
|
if-no-files-found: ignore
|
|
retention-days: 7
|