Skip to content

ci: build ray-nrp straight into docker, uncached - #674

Merged
kondratyevd merged 1 commit into
mainfrom
ci-ray-nrp-docker-driver
Oct 28, 2026
Merged

kondratyevd merged 1 commit into
mainfrom
ci-ray-nrp-docker-driver

Conversation

@kondratyevd

@kondratyevd kondratyevd commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

A CI run that rebuilds ray-nrp takes about 40 minutes, against about 3 for other runs. It rebuilds whenever pixi/global changes. In #672, the 31-minute ray-nrp job went:

Step Time
Writing the GHA cache (one 15 GB layer) 14.1 min
Exporting the image to the docker daemon for the smoke test 11.1 min
Push 2.4 min
Freeing disk 1.6 min
pixi install 1.0 min

The cache never helps. The layer changes with every pixi/global lock, which is the only thing that rebuilds the image. The layer is also bigger than the repository's 10 GB GHA cache, so writing it evicts the other images' caches.

Change: a matrix flag uncached builds ray-nrp with buildx's docker driver, straight into the daemon that the smoke test and the push use, with no cache. The other aux images are unchanged.

What moves:

  • Nothing on a cluster.
  • Editing ci-images.yml re-keys every image, so this PR's run, and the next push to main, rebuild all images once. This PR's run will show the new ray-nrp time.

Measured on this PR's run, which rebuilt every image: the ray-nrp job took 16 minutes, down from 31. The whole run took 24 minutes, down from 40.

Step Time
pixi install 1.1 min
Docker writing the image's layers to its store 8.9 min
Push 2.5 min
Freeing disk 1.0 min

What remains is mostly the daemon compressing the single 15 GB layer.

Checks: pre-commit (actionlint) and the full unit suite (1381 passed).

🤖 Generated with Claude Code

Of the 31 minutes ray-nrp took in a run that rebuilt it (#672), 14 went
to writing its 15 GB environment layer to the GHA cache and 11 to
exporting the image to the docker daemon for the smoke test; installing
the environment took one. The layer changes with every pixi/global lock,
which is all that rebuilds the image, so the cache never served it, and
it is larger than the repository's 10 GB GHA cache, evicting the other
images' caches.

ray-nrp now builds with buildx's docker driver, into the daemon the
smoke test and push use, with no cache. The other images are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@codecov

codecov Bot commented Oct 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@kondratyevd
kondratyevd merged commit e32bf02 into main Oct 28, 2026
22 checks passed
@kondratyevd
kondratyevd deleted the ci-ray-nrp-docker-driver branch October 28, 2026 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant