Skip to content

Monthly from-scratch build of main; SCREAM_MACHINE, and no OpenCode/uv in -dev - #118

Merged
mahf708 merged 3 commits into
mahf708/metis-parmetisfrom
mahf708/weekly-build-dev-tidy
Oct 19, 2026
Merged

mahf708 merged 3 commits into
mahf708/metis-parmetisfrom
mahf708/weekly-build-dev-tidy

Conversation

@mahf708

@mahf708 mahf708 commented Oct 17, 2026 •

Copy link
Copy Markdown
Collaborator

Second PR in a stack on top of #117 (gh stack, stack #119). The image builds on main are currently broken by EPEL's Lmod 9.4.2 (and the Intel modules by the Lmod 9.4 compiler-family swap that comes with it), and #117 carries those fixes, so this PR's CI only passes on top of it. Merge #117 first.

Monthly build and smoke test of main (ghci.yaml, build-multiarch.yaml)

The Lmod breakage started some time after main's last build on Oct 9, and nothing noticed until #117 happened to rebuild. ghci.yaml only ran on PRs, pushes, the merge queue and dispatches. Now:

  • Schedule: the 1st of each month at 05:17 UTC (monthly rather than weekly, given what a cacheless build of all five images costs). Like a dispatch, it builds every variant and runs smoke, smoke-dev and Apptainer.
  • No cache: no_cache is a new build-multiarch.yaml input, so every layer is rebuilt. A cached RPM layer is exactly what would hide a break like Lmod's. The run writes to a -scheduled cache scope of its own and never touches the shared cache.
  • Publishes nothing: images are staged as -rc-<run_id> (removed by the existing GHCR cleanup), there's no promote, and so no spack-cache push. Republishing on a schedule would change the tags people pull with nothing to review. That can follow once Make release builds reproducible and inspectable (pinned base, recorded inventories) #85 pins the base image and records each image's contents.
  • Who hears about it: GitHub emails a scheduled workflow's failures to whoever last changed the cron line.

#115

  • SCREAM_MACHINE=e3sm-container: enable.sh exports it next to CIME_MACHINE, under the same rule: only if it isn't set already and ~/.cime has the machine. So test-all-eamxx needs no -m in the -dev images, or after opting in. EAMxx's CMake prefers this env var over CIME's MACH. That makes no difference in a CIME case on e3sm-container. With an explicit --machine ghci, a CIME build only uses it for a log line and a cori-knl workaround.
  • OpenCode and uv removed from the -dev images: the installers, ~/.opencode/bin on PATH, the pre-created ~/.local/share/opencode, the volume and bind lines in devcontainer.json.example, the README mentions, and the smoke-dev checks. smoke-dev now also checks SCREAM_MACHINE.

Closes #115.

Checks: actionlint 1.7.12, check-dockerfiles.py, bash -n/sh -n and the script unit tests pass locally. I didn't build an image locally; this PR's CI covers that. Because it touches ghci/env/cime/, it also runs e3sm-case and omega-case.

🤖 Generated with Claude Code

@mahf708 mahf708 changed the title Weekly from-scratch build of main; SCREAM_MACHINE, and no OpenCode/uv in -dev Monthly from-scratch build of main; SCREAM_MACHINE, and no OpenCode/uv in -dev Oct 17, 2026
@mahf708
mahf708 force-pushed the mahf708/weekly-build-dev-tidy branch from 159f271 to 09dbea1 Compare October 17, 2026 04:09
@mahf708
mahf708 added this pull request to stack #119 October 17, 2026 04:11
Copilot AI balanced review requested due to automatic review settings October 17, 2026 04:32
@mahf708
mahf708 force-pushed the mahf708/weekly-build-dev-tidy branch from 09dbea1 to 4287a12 Compare October 17, 2026 04:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No blocking issues were identified; merging remains dependent on #117.

No open issues 🎉

What changed in this PR

Adds monthly rebuild checks for upstream breakage and implements the developer
image changes requested in #115. Merge prerequisite #117 first.

Changes:

  • Runs monthly cacheless builds and smoke tests without release promotion.
  • Exports SCREAM_MACHINE when the container machine is available.
  • Removes OpenCode and uv, updating documentation and smoke checks.
File Description
ghci/​tests/​smoke-dev.sh Checks the machine default and remaining tools.
ghci/​README.md Documents machine selection and updated tooling.
ghci/​env/​cime/​enable.sh Defaults SCREAM_MACHINE without overriding users.
ghci/​dev/​Dockerfile Removes OpenCode and uv installation and setup.
ghci/​dev/​devcontainer.json.example Removes OpenCode mounts and updates comments.
.github/​workflows/​ghci.yaml Adds isolated monthly rebuilds without promotion.
.github/​workflows/​build-multiarch.yaml Adds the reusable no_cache input.

Review effort: Balanced

@mahf708
mahf708 force-pushed the mahf708/weekly-build-dev-tidy branch from 4287a12 to b0ced26 Compare October 17, 2026 04:54
@mahf708
mahf708 force-pushed the mahf708/weekly-build-dev-tidy branch from b0ced26 to 4b2b3cc Compare October 17, 2026 12:42
@mahf708
mahf708 requested a review from bartgol October 17, 2026 21:38

@bartgol bartgol left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May I ask what prompted you to remove opencode from the dev images?

Comment thread ghci/dev/devcontainer.json.example Resolved
@mahf708

mahf708 commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator Author

May I ask what prompted you to remove opencode from the dev images?

it keeps failing download sometimes --- something is finnicky in its link

@mahf708

mahf708 commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator Author

are you using it? we can readd it later, maybe through a package manager instead of the curl link path

@mahf708
mahf708 added this pull request to the merge queue Oct 19, 2026
Merged via the queue into main with commit d23ae25 Oct 19, 2026
56 of 67 checks passed
@mahf708
mahf708 deleted the mahf708/weekly-build-dev-tidy branch October 19, 2026 17:17
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.

Dev image: export SCREAM_MACHINE, remove OpenCode and uv

3 participants