Skip to content

chore(prow-jobs): update client-go nextgen base image to go 1.25.12 - #4857

Closed
disksing wants to merge 1 commit into
PingCAP-QE:mainfrom
disksing:fix/client-go-nextgen-go1.25.12
Closed

chore(prow-jobs): update client-go nextgen base image to go 1.25.12#4857
disksing wants to merge 1 commit into
PingCAP-QE:mainfrom
disksing:fix/client-go-nextgen-go1.25.12

Conversation

@disksing

@disksing disksing commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

What

Update the base image of the pull-integration-test-nextgen job for tikv/client-go from v2026.4.12-27-g440b0c8-go1.25 (Go 1.25.10) to v2026.7.12-6-gc8582dde-go1.25 (Go 1.25.12).

Why

tikv/client-go upgraded its Go toolchain requirement to 1.25.12 (tikv/client-go#2036, merged into master). The job sets GOTOOLCHAIN=local, so it fails at bootstrap with:

go: go.mod requires go >= 1.25.12 (running go 1.25.10; GOTOOLCHAIN=local)

Related

The master branch upgraded Go to 1.25.12 (tikv/client-go#2036), so the
nextgen integration job now fails at bootstrap with 'go.mod requires
go >= 1.25.12' because the pinned base image (v2026.4.12-27-g440b0c8)
ships Go 1.25.10 and GOTOOLCHAIN is set to local.

Update the base image to v2026.7.12-6-gc8582dde-go1.25 which bundles
Go 1.25.12.

Signed-off-by: disksing <i@disksing.com>
@ti-chi-bot

ti-chi-bot Bot commented Aug 4, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign wuhuizuo for approval. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I have already done a preliminary review for you, and I hope to help you do a better job.

Summary
This PR updates the base image version used in the pull-integration-test-nextgen prow job for tikv/client-go, bumping the Go toolchain from 1.25.10 to 1.25.12 to align with the updated Go version requirement of the codebase. The change is minimal, focused, and correctly targets the relevant YAML file. The overall quality is good and the rationale is clearly documented.


Code Improvements

  • Explicitly specify image digest or tag stability

    • File: prow-jobs/tikv/client-go/latest-presubmits-nextgen.yaml line 128
    • Issue: The image tag v2026.7.12-6-gc8582dde-go1.25 appears to be a moving tag (including a commit hash), which can lead to non-reproducible builds if the image is rebuilt or overwritten.
    • Suggestion: Use an immutable image digest (SHA256) or a fully pinned tag if available to ensure build reproducibility and traceability. This is especially important in CI environments.
    • Example:
      image: ghcr.io/pingcap-qe/ci/base@sha256:<digest>
      or ensure the tag is a static release.
  • Update related documentation or tooling if applicable

    • If there exist any documentation files or scripts referencing the previous base image version or Go version, consider updating them alongside this change to keep all references consistent.

Best Practices

  • Add a comment in the YAML file explaining the image update

    • File: prow-jobs/tikv/client-go/latest-presubmits-nextgen.yaml line ~125
    • Issue: While the PR description is clear, the YAML file itself lacks inline comments explaining why this particular image version is pinned. This may help future maintainers.
    • Suggestion: Add a brief comment above the image line:
      # Updated base image to Go 1.25.12 to satisfy tikv/client-go's minimum toolchain version requirement
      image: ghcr.io/pingcap-qe/ci/base:v2026.7.12-6-gc8582dde-go1.25
  • Testing and validation

    • Confirm that the updated prow job runs successfully with the new image and Go version. If not already done, add or update job run logs or test results in the PR to prove the fix.

No critical issues found, as this is a straightforward version bump. The PR is well targeted and justified. Addressing the above points will improve build reproducibility and maintainability.

@pingcap-cla-assistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@disksing

disksing commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Closing as duplicate: #4858 (merged) applies the exact same base image bump (v2026.7.12-6-gc8582dde-go1.25, Go 1.25.12) to this job.

@disksing disksing closed this Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

1 participant