feat(runtime): reuse digest-pinned containers across SRT steps - #344
Open
anish-shanbhag wants to merge 4 commits into
Open
feat(runtime): reuse digest-pinned containers across SRT steps#344anish-shanbhag wants to merge 4 commits into
anish-shanbhag wants to merge 4 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #344 +/- ##
=======================================
Coverage ? 74.20%
=======================================
Files ? 102
Lines ? 14345
Branches ? 0
=======================================
Hits ? 10644
Misses ? 3701
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
anish-shanbhag
force-pushed
the
codex/shared-container-cache
branch
2 times, most recently
from
August 28, 2026 19:05
4706b23 to
d22cbba
Compare
Signed-off-by: Anish Shanbhag <[email protected]>
Signed-off-by: Anish Shanbhag <[email protected]>
Signed-off-by: Anish Shanbhag <[email protected]>
Signed-off-by: Anish Shanbhag <[email protected]>
anish-shanbhag
force-pushed
the
codex/shared-container-cache
branch
from
September 8, 2026 18:45
b99ce28 to
e42b07d
Compare
anish-shanbhag
marked this pull request as ready for review
September 8, 2026 19:20
anish-shanbhag
requested review from
alec-flowers,
csahithi,
ishandhanani and
nlevin-ui
as code owners
September 8, 2026 19:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
An SRT job can launch multiple Slurm steps with the same container image. When each step materializes the same digest-pinned image independently, startup time and registry work are repeated unnecessarily.
Summary
auto,required, andnativepolicies; preservecontainer_cache_pathas a backward-compatible explicit-path shorthand.Configuration
With no cache configuration,
autouses<output-dir>/.srtctl/container-cache/<uid>. Mutable tags continue through native Pyxis handling.requiredfails instead of falling back, andnativedisables reusable materialization.Safety
automode when safe reuse is unavailable; never silently weakenrequiredmode.Validation
End-to-end cache reuse
The full SRT-Slurm lifecycle was run twice on the same compute node and Slurm allocation with the same configuration and a digest-pinned 30.06 GB image containing 104 registry layers. The first run started with an empty explicit cache; the second reused the populated cache.
Reusing the populated cache reduced end-to-end elapsed time by 2m53s (52.1%), a 2.09x speedup for this large-image case. This is a cold-to-warm reusable-cache comparison, not a parent-to-PR percentage.
The exact parent revision was also tested twice with the same image. Both attempts exceeded the existing fixed 300-second infrastructure-readiness window during the first native registry-reference import, so there is no finite parent completion time from which to calculate a percentage. This result is treated as a startup-reliability signal rather than folded into the speedup above.
Automated validation