Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/scripts/run_smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

Reads `smoke_tests.txt` (Python scripts) and `smoke_notebooks.txt`
(Jupyter notebooks) from the workspace root, plus
`config/build/env_vars.yaml` for per-entry env var overrides, then
`config/build/profile_smoke.yaml` for per-entry env var overrides, then
runs each listed entry with the appropriate environment. Continues
through failures and exits non-zero if any entry failed.

Expand Down Expand Up @@ -36,7 +36,11 @@
WORKSPACE = Path(__file__).resolve().parents[2]
SMOKE_FILE = WORKSPACE / "smoke_tests.txt"
NOTEBOOK_FILE = WORKSPACE / "smoke_notebooks.txt"
ENV_VARS_FILE = WORKSPACE / "config" / "build" / "env_vars.yaml"
# Prefer the canonical profile name; the legacy env_vars.yaml fallback is
# retired at the stage-3 cleanup (PyAutoHands#161).
ENV_VARS_FILE = WORKSPACE / "config" / "build" / "profile_smoke.yaml"
if not ENV_VARS_FILE.exists():
ENV_VARS_FILE = WORKSPACE / "config" / "build" / "env_vars.yaml"
SCRIPTS_DIR = WORKSPACE / "scripts"
NOTEBOOKS_DIR = WORKSPACE / "notebooks"

Expand Down
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ python .github/scripts/run_smoke.py
```

Run it from the repo root. It is driven by `smoke_tests.txt` (scripts) and `smoke_notebooks.txt`
(notebooks) in the workspace root, with per-entry environment from `config/build/env_vars.yaml`.
(notebooks) in the workspace root, with per-entry environment from `config/build/profile_smoke.yaml`.
The runner continues through failures, prints a `[PASS]` / `[FAIL (exit N)]` line per entry with
its captured stdout+stderr, ends with a `=== Smoke test summary: P/T passed ===` line listing each
failure, and exits non-zero if any entry failed. (There is no `run_all_scripts.sh` and no
`failed/` directory — those do not exist.)

`env_vars.yaml` applies fast-mode defaults to every entry, notably:
`profile_smoke.yaml` applies fast-mode defaults to every entry, notably:

- `PYAUTO_TEST_MODE=2` — skips the non-linear search's sampling, turning a run into a fast
structural / integration check that the model composes correctly and the script/pipeline runs
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,6 @@ The `config/` directory contains two files used by the automated build and test

- `config/build/no_run.yaml` — scripts to skip during automated runs. Each entry is a filename stem
or path pattern with an inline comment explaining why it is skipped.
- `config/build/env_vars.yaml` — environment variables applied to each script during automated runs.
- `config/build/profile_smoke.yaml` — environment variables applied to each script during automated runs.
Defines default values (e.g. test mode, small datasets) and per-script overrides for scripts
that need different settings.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Per-script environment variable configuration for the RELEASE-FIDELITY
# validation run (Heart's workspace-validation.yml, mode=release — the M3
# wheel-based release-fidelity path). Distinct from env_vars.yaml, which is the
# wheel-based release-fidelity path). Distinct from profile_smoke.yaml, which is the
# `smoke` profile used by the per-PR CI gate.
#
# The `release` profile trades speed for fidelity: it is run once per release
Expand Down
File renamed without changes.
Loading