mirror of
https://github.com/moby/moby.git
synced 2026-06-24 08:48:23 +00:00
Merge pull request #52585 from vvoland/fix-flaky-integration
gha: Fix test-integration-flaky
This commit is contained in:
3
.github/workflows/.test.yml
vendored
3
.github/workflows/.test.yml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user