Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UT failure #1006

Closed
wants to merge 1 commit into from
Closed

Fix UT failure #1006

wants to merge 1 commit into from

Conversation

tacslon
Copy link
Contributor

@tacslon tacslon commented Nov 1, 2024

What type of PR is this?

/kind bug
What this PR does / why we need it:
Fix UT failure
Which issue(s) this PR fixes:
Fixes #1004

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


@kmesh-bot kmesh-bot added the kind/bug Something isn't working label Nov 1, 2024
@kmesh-bot
Copy link
Collaborator

[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 okabe-rintarou-0 for approval. For more information see the Kubernetes Code Review Process.

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

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

Signed-off-by: Muyang Tian <[email protected]>
@@ -30,6 +30,7 @@ import (
type CleanupFn func()

func InitBpfMap(t *testing.T, config options.BpfConfig) (CleanupFn, *bpf.BpfLoader) {
bpf.CleanupBpfMap()
Copy link
Member

Choose a reason for hiding this comment

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

can this be removed

@@ -73,10 +72,6 @@ func (sc *BpfAds) Start() error {
return fmt.Errorf("deserial_init failed:%v", ret)
}

if err := maglev.InitMaglevMap(); err != nil {
Copy link
Member

Choose a reason for hiding this comment

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

I think this is needed by maglev, without init it would fail to work

@@ -73,10 +72,6 @@ func (sc *BpfAds) Start() error {
return fmt.Errorf("deserial_init failed:%v", ret)
}

if err := maglev.InitMaglevMap(); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why remove maglev.InitMaglevMap()

Copy link

codecov bot commented Nov 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.29%. Comparing base (efb1588) to head (25db732).
Report is 99 commits behind head on main.

Files with missing lines Coverage Δ
pkg/bpf/ads/loader.go 47.43% <ø> (ø)
pkg/utils/test/bpf_map.go 32.60% <100.00%> (+1.49%) ⬆️

... and 13 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 55d4e65...25db732. Read the comment docs.

@tacslon tacslon closed this Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UT test run failed: consistent hash lb maglev config init failed, load outer map of maglev failed.
4 participants