From d6591a9bbe5e562574c8e9a53765138940409ab3 Mon Sep 17 00:00:00 2001 From: Kevin Batdorf Date: Sat, 15 Aug 2026 19:08:10 +0700 Subject: [PATCH] Walk up for blueprints when discovering suites in CI The discover step only looked in a spec's own directory, so at-rules and pattern-css never ran in CI: both inherit tests/blueprint.json. Only the release workflow ran them, which is why a broken at-rules test surfaced during a release instead of on the PR that caused it. playwright.config.ts already walks up. The two now agree. Co-Authored-By: Claude Fable 5 --- .github/workflows/playwright-nightly.yml | 10 +++++++--- .github/workflows/playwright.yml | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/playwright-nightly.yml b/.github/workflows/playwright-nightly.yml index 42fed4a..c07f5bf 100644 --- a/.github/workflows/playwright-nightly.yml +++ b/.github/workflows/playwright-nightly.yml @@ -19,9 +19,13 @@ jobs: run: | suites=$(find . -name '*.spec.ts' -not -path '*/node_modules/*' | while read spec; do dir=$(dirname "$spec") - if [ -f "$dir/blueprint.json" ]; then - basename "$spec" .spec.ts - fi + while [ "$dir" != "." ] && [ "$dir" != "/" ]; do + if [ -f "$dir/blueprint.json" ]; then + basename "$spec" .spec.ts + break + fi + dir=$(dirname "$dir") + done done | jq -R -s -c 'split("\n") | map(select(length > 0))') echo "suites=$suites" >> "$GITHUB_OUTPUT" diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 355da81..ddb6257 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -18,9 +18,13 @@ jobs: run: | suites=$(find . -name '*.spec.ts' -not -path '*/node_modules/*' | while read spec; do dir=$(dirname "$spec") - if [ -f "$dir/blueprint.json" ]; then - basename "$spec" .spec.ts - fi + while [ "$dir" != "." ] && [ "$dir" != "/" ]; do + if [ -f "$dir/blueprint.json" ]; then + basename "$spec" .spec.ts + break + fi + dir=$(dirname "$dir") + done done | jq -R -s -c 'split("\n") | map(select(length > 0))') echo "suites=$suites" >> "$GITHUB_OUTPUT"