Skip to content

fix: pass same secrets in runtime_installation_{default,custom}#320

Open
wdconinc wants to merge 2 commits into
masterfrom
wdconinc-patch-13
Open

fix: pass same secrets in runtime_installation_{default,custom}#320
wdconinc wants to merge 2 commits into
masterfrom
wdconinc-patch-13

Conversation

@wdconinc

Copy link
Copy Markdown
Contributor

Briefly, what does this PR introduce? Please link to any relevant presentations or discussions.

This PR fixes an inconsistency that appears when pushing to a new buildcache that is not public yet. In runtime_installation_default we pass secrets to allow buildcache-only installation, but in runtime_installation_custom we don't pass those secrets and require the buildcache to be publicly readable. By default, new buildcaches are not publicly readable.

Note: I'm working around this issue in #318 by setting the buildcache (now that it has been created) to public, in line with past practice. This bug only affects new buildcaches.

What is the urgency of this PR?

  • High (please describe reason below)
  • Medium
  • Low

What kind of change does this PR introduce?

Please check if any of the following apply

  • This PR introduces breaking changes. Please describe changes users need to make below.
  • This PR changes default behavior. Please describe changes below.
  • AI was used in preparing this PR. Please describe usage below.

Copilot AI review requested due to automatic review settings June 24, 2026 22:57

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.

Pull request overview

This PR addresses a build inconsistency in containers/eic/Dockerfile by ensuring the runtime installation stage for the custom environment receives the same registry credentials/secrets needed to install from a non-public buildcache, matching the behavior already used elsewhere in the build.

Changes:

  • Pass CI/GitHub registry credential secrets into runtime_installation_custom so spack install --use-buildcache only can access private/new buildcaches.
  • Align secret-mount behavior between default and custom runtime installation paths to avoid requiring newly-created buildcaches to be made public.

Comment thread containers/eic/Dockerfile Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 24, 2026 23:21
@wdconinc wdconinc enabled auto-merge (squash) June 24, 2026 23:21
@wdconinc wdconinc requested review from a team and veprbl June 24, 2026 23:21

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants