Merge pull request #52585 from vvoland/fix-flaky-integration

gha: Fix test-integration-flaky
This commit is contained in:
Paweł Gronowski
2026-05-11 13:52:59 +02:00
committed by GitHub
2 changed files with 7 additions and 2 deletions

View File

@@ -93,6 +93,9 @@ jobs:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
# Full history needed to diff against target branch and detect new tests (test-integration-flaky).
fetch-depth: 0
-
name: Set up runner
uses: ./.github/actions/setup-runner

View File

@@ -4,9 +4,11 @@ set -e -o pipefail
source hack/validate/.validate
run_integration_flaky() {
diff=$(
validate_diff --diff-filter=ACMR --unified=0 -- 'integration/*_test.go'
)
new_tests=$(
validate_diff --diff-filter=ACMR --unified=0 -- 'integration/*_test.go' \
| grep -E '^(\+func Test)(.*)(\*testing\.T\))' || true
printf '%s\n' "$diff" | grep -E '^(\+func Test)(.*)(\*testing\.T\))' || true
)
if [ -z "$new_tests" ]; then