Open
ci: broaden Singularity job rules, refactor user_spack_environment script, tighten .sif artifact retention#361
Conversation
Copilot
AI
changed the title
[WIP] Update GitLab CI configuration for Singularity jobs and refactor user_spack_environment
ci: broaden Singularity job rules, refactor user_spack_environment script, tighten .sif artifact retention
Jul 18, 2026
wdconinc
marked this pull request as ready for review
July 18, 2026 16:19
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the GitLab CI configuration to run Singularity image jobs more broadly (stable branches, version tags, and merge request pipelines) while still excluding external-repository trigger pipelines, refactors the user_spack_environment job script into a reusable hidden template, and reduces .sif artifact retention to mitigate disk pressure from the increased run frequency.
Changes:
- Broaden
.singularityjobrules:to include stable branches, version tags, and MR pipelines, with an exclusion-first guard for external trigger pipelines. - Extract the
user_spack_environmentscript into a reusable.user_spack_environmenttemplate and have the concrete jobextendsit. - Tighten default
.sifartifact retention to2 hours, with a nightly override to1 daysfor downstream consumption.
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.
Singularity jobs previously only ran on
master(non-trigger). This widens coverage to stable branches, release tags, and MR pipelines, while keeping external-repository triggers (e.g. EICrecon) excluded. Also extracts theuser_spack_environmentscript into a reusable base template, and reduces.sifartifact retention to limit disk pressure from the increased run frequency..singularityrules — broadenedReplaces the single
master && not triggerguard with an explicit exclusion-first rule set that now also fires on stable branches, version tags, and MR events:This also aligns the implementation with the existing plan comments (stable branches/tags were listed but never matched).
user_spack_environment— script extracted to base templateScript steps moved into
.user_spack_environment; the concrete job nowextendsit. No behavioral change..sifartifact retention — tightened for disk space.siffiles are several GB each. Running on every MR would accumulate significant storage without this change:expire_in.singularitytemplate2 hourseic_xl:singularity:nightly1 dayseic-shell/install.py