From e3b43e1744684f6168d21aabfe3a2c74579716e0 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Thu, 23 Jul 2026 17:30:25 +0100 Subject: [PATCH] chore: rename env profiles to profile_smoke/profile_release (#161 step 6) config/build/env_vars.yaml -> profile_smoke.yaml and env_vars_release.yaml -> profile_release.yaml (pure renames; header self-references updated). Vendored run_smoke.py prefers the canonical name with a legacy fallback until the stage-3 cleanup. Repo-local references updated. Tooling accepts both names since PyAutoHands#183 / PyAutoHeart#101. Co-Authored-By: Claude Fable 5 --- .github/scripts/run_smoke.py | 8 ++++++-- AGENTS.md | 4 ++-- README.md | 2 +- .../build/{env_vars_release.yaml => profile_release.yaml} | 2 +- config/build/{env_vars.yaml => profile_smoke.yaml} | 0 5 files changed, 10 insertions(+), 6 deletions(-) rename config/build/{env_vars_release.yaml => profile_release.yaml} (98%) rename config/build/{env_vars.yaml => profile_smoke.yaml} (100%) diff --git a/.github/scripts/run_smoke.py b/.github/scripts/run_smoke.py index 8806bcf4f..cada95aaf 100644 --- a/.github/scripts/run_smoke.py +++ b/.github/scripts/run_smoke.py @@ -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. @@ -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" diff --git a/AGENTS.md b/AGENTS.md index 91bafafcf..bbd46de0d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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 diff --git a/README.md b/README.md index de93bf49e..7e9047675 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/config/build/env_vars_release.yaml b/config/build/profile_release.yaml similarity index 98% rename from config/build/env_vars_release.yaml rename to config/build/profile_release.yaml index b65b00f41..5cd3d25a0 100644 --- a/config/build/env_vars_release.yaml +++ b/config/build/profile_release.yaml @@ -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 diff --git a/config/build/env_vars.yaml b/config/build/profile_smoke.yaml similarity index 100% rename from config/build/env_vars.yaml rename to config/build/profile_smoke.yaml