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
11 changes: 8 additions & 3 deletions .github/scripts/run_smoke.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
"""
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.

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).
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand Down
File renamed without changes.
Loading