Skip to content

Fix: bump of containernetworking/plugins#1418

Merged
kmesh-bot merged 2 commits intokmesh-net:mainfrom
brushax:bump-fix
May 23, 2025
Merged

Fix: bump of containernetworking/plugins#1418
kmesh-bot merged 2 commits intokmesh-net:mainfrom
brushax:bump-fix

Conversation

@brushax
Copy link
Copy Markdown
Contributor

@brushax brushax commented May 22, 2025

What type of PR is this?

/kind enhancement

What this PR does / why we need it:

Bump of containernetworking/plugins cause the gomonkey not working in UT, use -gcflags=all=-l to disable inlining.

Which issue(s) this PR fixes:
Fixes #1396

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

Signed-off-by: Tom <yusencao@outlook.com>
Copilot AI review requested due to automatic review settings May 22, 2025 16:30
@kmesh-bot kmesh-bot added the kind/enhancement New feature or request label May 22, 2025
Copy link
Copy Markdown

Copilot AI left a comment

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 updates the containernetworking modules and adjusts test flags to disable Go inlining for compatibility with gomonkey.

  • Bumps containernetworking/cni to v1.3.0 and containernetworking/plugins to v1.7.1
  • Adds -gcflags=all=-l to the Go Test workflow to disable inlining during tests

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
go.mod Updated direct and indirect Go module versions, including CNI.
.github/workflows/main.yml Added -gcflags=all=-l to the Go Test command to disable inlining.
Comments suppressed due to low confidence (1)

.github/workflows/main.yml:62

  • [nitpick] The -gcflags=all=-l flag is added only to the main Go Test job. If your eBPF tests also use gomonkey, consider applying the same -gcflags=all=-l there to prevent inlining issues during those tests.
sudo env LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:$GITHUB_WORKSPACE/api/v2-c:$GITHUB_WORKSPACE/bpf/deserialization_to_bpf_map PKG_CONFIG_PATH=$GITHUB_WORKSPACE/mk go test -gcflags=all=-l -race -v -vet=off -coverprofile=coverage.out ./pkg/...

github.com/containernetworking/cni v1.2.3
github.com/containernetworking/plugins v1.6.1
github.com/containernetworking/cni v1.3.0
github.com/containernetworking/plugins v1.7.1
Copy link

Copilot AI May 22, 2025

Choose a reason for hiding this comment

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

[nitpick] This PR includes bumps for both direct and many indirect dependencies in one change. To reduce risk and ease review, consider isolating just the containernetworking/plugins upgrade in its own PR.

Suggested change
github.com/containernetworking/plugins v1.7.1
github.com/containernetworking/plugins v1.6.0

Copilot uses AI. Check for mistakes.
@codecov
Copy link
Copy Markdown

codecov bot commented May 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.33%. Comparing base (b7848f1) to head (10e8eb3).
Report is 27 commits behind head on main.

see 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 98facf9...10e8eb3. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: Tom <yusencao@outlook.com>
Copy link
Copy Markdown
Member

@hzxuzhonghu hzxuzhonghu left a comment

Choose a reason for hiding this comment

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

/lgtm

@kmesh-bot
Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hzxuzhonghu

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

The pull request process is described 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

@kmesh-bot kmesh-bot merged commit 1fd6d19 into kmesh-net:main May 23, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Help bump github.com/containernetworking/plugins

4 participants