mirror of
https://github.com/moby/moby.git
synced 2026-08-09 17:39:58 +00:00
set_repeat_timeout is called inside run_test_integration, which is itself invoked once per iteration by the repeat loop (TEST_REPEAT times). Each call multiplied TIMEOUT by TEST_REPEAT again, so with TEST_REPEAT=10 and TIMEOUT=10m the progression was: iter 1: 100m, iter 2: 1000m, ..., iter 8: 1000000000m Go's time.ParseDuration overflows on 1000000000m (≈ 6×10²² ns > int64 max), producing: invalid value "1000000000m" for flag -test.timeout: parse error The multiplier (TEST_REPEAT) and the scaled value (100m) are both correct; the problem is repeated application. Fix by moving the single set_repeat_timeout call out of run_test_integration and into hack/make/test-integration, directly before the repeat loop. That way TIMEOUT is scaled exactly once regardless of how many iterations the loop runs. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This directory holds scripts called by make.sh in the parent directory.
Each script is named after the bundle it creates. They should not be called directly - instead, pass it as argument to make.sh, for example:
./hack/make.sh binary ubuntu
# Or to run all default bundles:
./hack/make.sh
To add a bundle:
- Create a shell-compatible file here
- Add it to $DEFAULT_BUNDLES in make.sh