From accad2c49738ff4d4ffdde07d9f351f9b3ac60fc Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Thu, 23 Jul 2026 17:30:01 +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 | 7 +++++-- AGENTS.md | 2 +- README.md | 2 +- .../build/{env_vars_release.yaml => profile_release.yaml} | 2 +- config/build/{env_vars.yaml => profile_smoke.yaml} | 0 5 files changed, 8 insertions(+), 5 deletions(-) rename config/build/{env_vars_release.yaml => profile_release.yaml} (96%) 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 8806bcf4..9413dbad 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,10 @@ 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" +ENV_VARS_FILE = WORKSPACE / "config" / "build" / "profile_smoke.yaml" +# Legacy fallback for the rename transition; dies at the stage-3 cleanup. +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 3a2ec4ec..e78ae68a 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -66,7 +66,7 @@ python .github/scripts/run_smoke.py ``` 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`. It prints a `[PASS]` / +root, with per-entry environment from `config/build/profile_smoke.yaml`. It prints a `[PASS]` / `[FAIL (exit N)]` line per entry, ends with a `=== Smoke test summary: P/T passed ===` line, and exits non-zero if any entry failed. diff --git a/README.md b/README.md index a6bdd3bf..aa695ef7 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,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 96% rename from config/build/env_vars_release.yaml rename to config/build/profile_release.yaml index f19d48e2..c8c23af4 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