Skip to content
Merged
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: 4 additions & 4 deletions .github/scripts/run_smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
appropriate environment. Continues through failures and exits non-zero
if any script failed.

The env resolution itself is NOT implemented here: it is PyAutoBuild's
The env resolution itself is NOT implemented here: it is PyAutoHands's
`autobuild/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
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 PyAutoBuild docs/env_profile_redesign.md §5 (#161 step 2).
environment is. See PyAutoHands docs/env_profile_redesign.md §5 (#161 step 2).

Mirrors the logic of the `/smoke-test` skill so CI and local runs stay
in sync.
Expand All @@ -31,13 +31,13 @@
ENV_VARS_FILE = WORKSPACE / "config" / "build" / "env_vars.yaml"
SCRIPTS_DIR = WORKSPACE / "scripts"

# CI puts PyAutoBuild/autobuild on PYTHONPATH (PyAutoHeart's reusable
# CI puts PyAutoHands/autobuild on PYTHONPATH (PyAutoHeart's reusable
# smoke-tests.yml clones it alongside the dependency chain); for local runs,
# fall back to the sibling checkout.
try:
from env_config import build_env_for_script, load_env_config
except ImportError: # pragma: no cover - local-run fallback
sys.path.insert(0, str(WORKSPACE.parent / "PyAutoBuild" / "autobuild"))
sys.path.insert(0, str(WORKSPACE.parent / "PyAutoHands" / "autobuild"))
from env_config import build_env_for_script, load_env_config


Expand Down
Loading