Files
moby/hack/make/test-integration-flaky
T
Paweł Gronowski 4037859729 gha: Make integration-flaky work on Windows
Windows pull requests did not stress-test new or modified integration
tests, so Windows-specific flakes could reach the regular test suite.

Add a standalone workflow that detects selected tests before starting
costly build work, then runs each test 10 times on Windows 2025. Start
dockerd with the containerd runtime and snapshotter backend so the check
covers the latest supported Windows configuration.

Share test detection and `/flaky-check=TestA,TestB` parsing with the
existing Linux flaky-test path so both platforms select tests with the
same rules.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-08-10 20:12:26 +02:00

32 lines
813 B
Bash

#!/usr/bin/env bash
set -e -o pipefail
source hack/validate/.validate
source hack/make/.test-integration-flaky
run_integration_flaky() {
tests=$(integration_flaky_tests)
if [ -z "$tests" ]; then
echo 'No new or modified tests found in integration.'
return
fi
echo
echo "Found new or modified integration tests:"
echo "$tests"
echo "Running stress test for them."
(
# Note: TEST_REPEAT will make the test suite run 10 times, restarting the daemon
# and each test will run 10 times in a row under the same daemon.
# This will make a total of 100 runs for each selected test.
export TEST_REPEAT=10
export TESTFLAGS="-test.count ${TEST_REPEAT} -test.run $(integration_flaky_test_filter)"
echo "Using test flags: $TESTFLAGS"
source hack/make/test-integration
)
}
run_integration_flaky