Repository navigation
AZP/TESTS: Build once per GPU test row and share the tree with the workers - #11896
Conversation
|
🤖 Starting review — findings will be posted here when done. |
|
With prebuild set, run_mpi_tests and run_configure_tests now run only in the build job, not on each worker. Can you confirm this is intended and that losing the per-worker repetition is fine? Portability assumption: the build tree holds absolute paths and relies on the container workspace path being identical on every agent (rpaths, --prefix=${WORKSPACE}/install, ucx_inst references). This is documented, which is good, but it is load-bearing — if agents ever differ in workspace mount path this silently breaks. Consider a note in the PR description or a guard that fails early if the extracted install prefix does not match the current WORKSPACE. Residual coverage gap: there is no dry-run/CI evidence in the diff that the prebuilt artifact is byte-consistent with a fresh build on a different agent. The PR should show a green run of the affected lanes (GPU tests and centos8 ASAN) to demonstrate the prebuild path actually reuses the tree without triggering a rebuild. |
BUILD_ONLY_TARBALL runs the mpi and configure tests plus the devel build (or the ASAN build), packs build-test and install into the named tarball and exits. PREBUILT_TARBALL extracts that tarball over a fresh checkout with tar -m, so make sees the objects as newer than the sources and the worker skips its own build. Everything else in the flow is unchanged. This is the same script change as openucx#11896, carried here so the DL cluster job can build once per allocation without waiting on merge order. Whichever lands second rebases to an empty diff on this file. Signed-off-by: Alexey Rivkin <arivkin@nvidia.com>
39e0166 to
6f7c188
Compare
|
🤖 Starting review — findings will be posted here when done. |
|
Residual coverage gap worth noting: nothing here validates that a worker actually reuses the extracted tree without rebuilding. |
Yes, intended. MPI tests do not run on the GPU rows ( |
Added a guard: the build job records its workspace path, and workers fail early if theirs differs. |
…rkers Every worker of a test row rebuilds UCX from scratch before running its share of the tests, so the GPU rows build the same tree four times per build (five with the ASAN row). On the GPU pool, which is 100% booked and the longest queue in the pipeline, that build is 15-40% of each job. Add an optional prebuild job to tests.yml: it builds once, tars build-test and install into a pipeline artifact, and the four workers download it and skip the build. The workers give the extracted tree a single timestamp, newer than the fresh checkout, so make does not rebuild or relink any of it. Only container rows can use this, since the build tree holds absolute paths and the container workspace path is the same on every agent; the workers fail early if the tree was built at a different path. Enable it for the two GPU rows. Signed-off-by: Alexey Rivkin <arivkin@nvidia.com>
6f7c188 to
3346162
Compare
Good catch, reproduced it. Now the whole tree gets one timestamp after extraction, so nothing is rebuilt. |
|
🤖 Starting review — findings will be posted here when done. |
|
minor: can we compress the build-only artifact, e.g. |
Azure artifacts already compress it: the 1438 MB tar went over the wire as 377 MB, upload 1.1 min, download 0.7 min. Also no zstd in the Ubuntu image. Leaving as is. |
Confirmed on run 138786: a worker on gpu-01 used the tree built on gpu-02, compiled nothing, and started tests 23 s into the step. |
What?
Build UCX once per GPU test row and share the tree with its 4 workers.
Why?
Each worker rebuilds the same tree, and that build is 15-40% of every GPU job. The GPU pool is the pipeline's bottleneck.
How?
tests.yml: newprebuildoption adds a build job that publishesbuild-test+installas an artifact; workers download it and skip the build. Enabled forTests/gpuandAddressSanitizer/gpu.test_jenkins.sh: workers stamp the extracted tree with one timestamp somakerebuilds nothing, and fail early if the tree was built at a different workspace path.