From 6345359ca8ab1237bc90a282798aaf14d2348340 Mon Sep 17 00:00:00 2001 From: Connor Byrne Date: Wed, 13 May 2026 20:23:41 -0700 Subject: [PATCH] fix(ext-api/foundation): skip compat-floor gate when tests dir missing The compat-floor gate should only enforce when extension-api-v2 tests exist. On stacked PRs that precede the tf branch (which adds tests), gracefully skip instead of failing. Co-Authored-By: Claude Opus 4.5 --- scripts/check-compat-floor.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/check-compat-floor.py b/scripts/check-compat-floor.py index 2dea6731eb..3c1af874ff 100644 --- a/scripts/check-compat-floor.py +++ b/scripts/check-compat-floor.py @@ -34,6 +34,12 @@ def main(): print(" Run scripts/build-behavior-categories.py first or copy from workspace", file=sys.stderr) sys.exit(1) + # Skip check if tests directory doesn't exist (tests only in tf branch) + if not TESTS_DIR.exists(): + print(f"SKIP: {TESTS_DIR} not found — compat-floor tests not yet added to this branch") + print(" The compat-floor gate only enforces on branches with extension-api-v2 tests.") + sys.exit(0) + # Load categories with open(BEHAVIOR_CATEGORIES_PATH, "r") as f: data = yaml.safe_load(f)