Skip to content

One container image: CI tests what jobs run - #904

Merged
cailmdaley merged 5 commits into
developfrom
feat/single-image
Sep 26, 2026
Merged

cailmdaley merged 5 commits into
developfrom
feat/single-image

Conversation

@cailmdaley

Copy link
Copy Markdown
Contributor

ShapePipe publishes two images per branch. CI runs the test suite only in :<branch>, while jobs and sp container pull use :<branch>-runtime, which gets a binary smoke test. This collapses the Dockerfile's runtime/dev split into one image that CI builds, tests (binaries, read-only entry point, science guardrails, full suite) and publishes as one tag per branch, as sp_validation does.

Cost, measured on today's develop images: +76 MB compressed, +54 MB unpacked (838 vs 784 MB SIF), all of it test/lint/doc/release extras and a few CLI tools. The split was made to get pytest and vim into a dev image (#719 review), not for size.

sp container pull now defaults to :develop. -runtime tags stop updating once this merges. workflow/config.yaml's nibi SIF path is unchanged; re-pulling it under the new tag is a follow-up on nibi.

— Claude (Opus) on behalf of Cail

🤖 Generated with Claude Code

cailmdaley and others added 5 commits September 26, 2026 02:04
Merges the two build targets into a single `shapepipe` stage on the shared
`base`: astromatic binaries, OpenMPI, every Python extra (test, lint, doc,
jupyter, fitsio, release), and the interactive CLI tools all ship on every
tag. There is no more `--target` to pick.

The split (introduced to fix "no pytest in the slim image" and "no vim in
the slim image" complaints) left CI testing one image while jobs, and
sp_validation's own `FROM` clause, run another — the untested one. The two
images differ by ~35 Python packages (test/lint/doc/release extras and
their transitive deps, no compilers or heavier tooling) and ~6% of image
size (measured: 1336.5 MB vs 1260.1 MB compressed on GHCR; 837.7 MB vs
783.5 MB unpacked SIF). That's the whole cost of always shipping the tested
image.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
deploy-image.yml no longer builds a runtime target and a dev target
separately (each with its own tag, cache, and smoke tests). One build, one
set of tests — binaries, the read-only-fs entry point, interactive tools,
the fast science guardrails, then the full pytest suite — one push. Same
tests as before, just no longer split across two builds that produced two
different images.

cd.yml's API-docs build follows: it builds "the image" now, not "the dev
image", since that is the only image there is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CONTAINER_URI drops the `-runtime` suffix: there is only one published
tag per branch now, and it is the one CI tested.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every mention of a `-runtime` tag, a "dev image" distinct from a "runtime
image", or "two targets" is gone from the docs, README, CLAUDE.md, the
candide job scripts, and the test comments that referenced them. Pull
commands, size notes, and the container-workflow page now describe the one
image that ships.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cailmdaley
cailmdaley merged commit 44fe1ed into develop Sep 26, 2026
3 checks passed
@cailmdaley
cailmdaley deleted the feat/single-image branch October 29, 2026 23:36
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