From 6aebfbc875de826bb9f616e91201938019248422 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Thu, 23 Jul 2026 17:31:27 +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 | 11 ++++++++--- AGENTS.md | 2 +- README.md | 2 +- .../{env_vars_release.yaml => profile_release.yaml} | 6 +++--- config/build/{env_vars.yaml => profile_smoke.yaml} | 0 5 files changed, 13 insertions(+), 8 deletions(-) rename config/build/{env_vars_release.yaml => profile_release.yaml} (95%) 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 a6a4f07..b3e2218 100644 --- a/.github/scripts/run_smoke.py +++ b/.github/scripts/run_smoke.py @@ -1,7 +1,7 @@ """ Run the workspace smoke test suite. -Reads `smoke_tests.txt` from the workspace root and `config/build/env_vars.yaml` +Reads `smoke_tests.txt` from the workspace root and `config/build/profile_smoke.yaml` for per-script env var overrides, then runs each listed script with the appropriate environment. Continues through failures and exits non-zero if any script failed. @@ -9,7 +9,7 @@ The env resolution itself is NOT implemented here: it is PyAutoHands's `autohands/env_config.py`, imported below. This file used to carry a copy, and the copy had already drifted (its `load_env_config` hardcoded -`config/build/env_vars.yaml`, so the PR gate was structurally unable to read +`config/build/profile_smoke.yaml`, so the PR gate was structurally unable to read the release profile — the seed incident's failure mode 4/7). One resolver means the PR gate and the release runner cannot disagree about what a script's environment is. See PyAutoHands docs/env_profile_redesign.md §5 (#161 step 2). @@ -28,7 +28,12 @@ WORKSPACE = Path(__file__).resolve().parents[2] SMOKE_FILE = WORKSPACE / "smoke_tests.txt" -ENV_VARS_FILE = WORKSPACE / "config" / "build" / "env_vars.yaml" +# Prefer the canonical profile name; fall back to the legacy name for any +# checkout the rename (#161 step 6) hasn't reached yet. The fallback dies at +# the stage-3 cleanup. +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" # CI puts PyAutoHands/autohands on PYTHONPATH (PyAutoHeart's reusable diff --git a/AGENTS.md b/AGENTS.md index ba73765..c4bf7fb 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -41,7 +41,7 @@ python .github/scripts/run_smoke.py ``` It executes the curated entries in `smoke_tests.txt`, applying per-entry environment from -`config/build/env_vars.yaml`. That file sets `PYAUTO_TEST_MODE=2` (skip the sampler) as the default, +`config/build/profile_smoke.yaml`. That file sets `PYAUTO_TEST_MODE=2` (skip the sampler) as the default, but **search and feature tests that must validate real inference `unset` it** (or set `PYAUTO_TEST_MODE=1`, reduced iterations with a real sampler) — those are the cases where bypassing the sampler would defeat the test. So the test-mode story is per-script, not a blanket "runs for diff --git a/README.md b/README.md index 0eefa91..f70aa51 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,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 95% rename from config/build/env_vars_release.yaml rename to config/build/profile_release.yaml index e5d9a2e..337d6e0 100644 --- a/config/build/env_vars_release.yaml +++ b/config/build/profile_release.yaml @@ -1,7 +1,7 @@ # 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 -# `smoke` profile used by the per-PR CI gate. +# 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 runs REAL searches (PYAUTO_TEST_MODE="0" — no # reduced-iteration bypass) at full resolution. Spec + acceptance table: @@ -21,7 +21,7 @@ # `defaults` exists to close. In practice that leaves PYAUTO_DISABLE_JAX as # the only var any override here still needs to touch — PYAUTO_TEST_MODE="0" # already satisfies every "needs a real sampler run" case the smoke profile's -# env_vars.yaml handles with a per-script unset. +# profile_smoke.yaml handles with a per-script unset. # # Pattern convention (same as no_run.yaml): # - Patterns containing '/' do a substring match against the file path 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