Files
moby/hack/make
Paweł Gronowski 85a59999b2 hack: Fix set_repeat_timeout multiplying TIMEOUT on every repeat iteration
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>
2026-07-06 10:24:30 +02:00
..
2025-12-17 18:02:37 +01:00
2021-06-01 23:48:32 +00:00
2021-06-01 22:14:06 +00:00
2026-04-25 22:49:57 +09:00
2021-06-01 22:14:06 +00:00
2026-04-25 22:49:57 +09:00
2021-06-01 23:48:32 +00:00
2023-05-29 11:03:48 +02:00

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