Skip to content

e2e: use the gcloud credential helper for gcr pulls - #13866

Open
alexh-tigera wants to merge 1 commit into
projectcalico:masterfrom
alexh-tigera:e2e-gcr-cred-helper
Open

e2e: use the gcloud credential helper for gcr pulls#13866
alexh-tigera wants to merge 1 commit into
projectcalico:masterfrom
alexh-tigera:e2e-gcr-cred-helper

Conversation

@alexh-tigera

Copy link
Copy Markdown
Contributor

The e2e prologue copies a static docker_cfg.json to ~/.docker/config.json. The gcr credentials in it are short-lived, so once a job exceeds that time, nothing can pull from gcr any more. This means that lens-report:stable can't upload results to Lens.

Configure the credential helper after the copy, as .semaphore/release/hashrelease_enterprise.yml already does.

Release note:

TBD

AI assistance: None

Copilot AI lite review requested due to automatic review settings September 10, 2026 18:26
@alexh-tigera
alexh-tigera requested a review from a team as a code owner September 10, 2026 18:26
@marvin-tigera marvin-tigera added this to the Calico v3.34.0 milestone Sep 10, 2026
@marvin-tigera marvin-tigera added release-note-required Change has user-facing impact (no matter how small) docs-pr-required Change is not yet documented labels Sep 10, 2026
@alexh-tigera alexh-tigera added docs-not-required Docs not required for this change release-note-not-required Change has no user-facing impact and removed release-note-required Change has user-facing impact (no matter how small) docs-pr-required Change is not yet documented labels Sep 10, 2026

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.

🟡 Changes recommended

The PR description still has the release note set to TBD, which should be replaced with a one-line note or None before merging.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates the Semaphore e2e global prologue to configure Docker to use the gcloud credential helper for Google Container Registry pulls, avoiding failures caused by short-lived static GCR credentials in the copied Docker config during long-running jobs.

Changes:

  • After copying ~/secrets/docker_cfg.json into ~/.docker/config.json, run gcloud auth configure-docker --quiet so GCR pulls use freshly minted tokens.
  • Add inline documentation explaining why the helper is needed for long-running jobs.
File summaries
File Description
.semaphore/end-to-end/scripts/global_prologue.sh Configures Docker to use gcloud credential helper after copying the static Docker config, preventing GCR pull failures later in the job.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .semaphore/end-to-end/scripts/global_prologue.sh Outdated
The e2e prologue copies a static docker_cfg.json to
~/.docker/config.json. The gcr credentials in it are short-lived, so
once a job exceeds that time, nothing can pull from gcr any more. This
means that lens-report:stable can't upload results to Lens.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-not-required Docs not required for this change release-note-not-required Change has no user-facing impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants