Skip to content

fix(deps): bump toolchain and vulnerable dependencies for patch release - #4996

Draft
alleaditya wants to merge 3 commits into
GoogleCloudPlatform:v2.5.3_releasefrom
alleaditya:v2.5.4_release
Draft

fix(deps): bump toolchain and vulnerable dependencies for patch release#4996
alleaditya wants to merge 3 commits into
GoogleCloudPlatform:v2.5.3_releasefrom
alleaditya:v2.5.4_release

Conversation

@alleaditya

Copy link
Copy Markdown
Contributor

Description

Bumps following for patch release bug:

  • Go version to 1.26.2
  • golang.org/x/crypto to v0.52.0
  • google.golang.org/grpc to v1.79.3

Link to the issue in case of a bug fix.

b/543561636

Testing details

  1. Manual - NA
  2. Unit tests - Passed make build and go test ./... except for some parallel test flakiness in internal/fs.
  3. Integration tests - DevEnv sanity mounting check passed.

Bumps:
- Go to 1.26.2
- golang.org/x/crypto to v0.52.0
- google.golang.org/grpc to v1.79.3

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request updates the Go version from 1.26.1 to 1.26.2 across Dockerfiles, module definitions, and setup scripts, alongside upgrading several Go dependencies. It also refactors directory operations in the integration tests to simplify command execution. Feedback highlights that while Go version strings were updated in print statements within build.sh and run_e2e_tests.sh, the actual download URLs in those scripts still point to the old 1.26.1 version. Additionally, it is recommended to ensure consistency with any .go-version file in the repository.

echo Installing git
sudo apt-get install git
echo Installing go-lang 1.26.1
echo Installing go-lang 1.26.2

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.

high

The Go version in the wget URL on the next line (line 44) was not updated to 1.26.2. It still downloads 1.26.1:

wget -O go_tar.tar.gz https://go.dev/dl/go1.26.1.linux-amd64.tar.gz -q

Please update it to:

wget -O go_tar.tar.gz https://go.dev/dl/go1.26.2.linux-amd64.tar.gz -q

# e.g. architecture=arm64 or amd64
architecture=$(dpkg --print-architecture)
echo "Installing go-lang 1.26.1..."
echo "Installing go-lang 1.26.2..."

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.

high

The Go version in the wget URL on the next line (line 138) was not updated to 1.26.2. It still downloads 1.26.1:

wget -O go_tar.tar.gz https://go.dev/dl/go1.26.1.linux-${architecture}.tar.gz -q

Please update it to:

wget -O go_tar.tar.gz https://go.dev/dl/go1.26.2.linux-${architecture}.tar.gz -q

Comment thread go.mod
module github.com/googlecloudplatform/gcsfuse/v2

go 1.26.1
go 1.26.2

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.

medium

When updating the Go version in go.mod, please ensure it is also updated consistently in the .go-version file (if present in the repository) to prevent build and CI pipelines from using an incorrect version.

References
  1. When updating the Go version, ensure it is updated consistently in both go.mod and the .go-version file to prevent build and CI pipelines from using an incorrect version.

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.

1 participant