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

Refactor replace errors wrap with join #2001

Merged
merged 12 commits into from
Apr 19, 2023

Conversation

ykadowak
Copy link
Contributor

@ykadowak ykadowak commented Apr 10, 2023

Description:

Replaced errors.Wrap with errors.Join. Made some modifications to several tests accordingly.

Related Issue:

Versions:

  • Go Version: 1.20.3
  • Docker Version: 20.10.8
  • Kubernetes Version: 1.22.0
  • NGT Version: 2.0.9

Checklist:

Special notes for your reviewer:

This will be done in another PR.

// FIXME: It should have been errors.Join here, but it remains errors.Wrap because the bench/agent/stream tests will fail.
// The reason is likely that when it's changed to errors.Join, status.ParseError cannot parse errors correctly,
// but this needs to be investigated further.
errs = errors.Wrap(err, errs.Error())

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Apr 10, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: e2a72fe
Status: ✅  Deploy successful!
Preview URL: https://85657b9b.vald.pages.dev
Branch Preview URL: https://refactor-errors-wrap-replace.vald.pages.dev

View logs

@CLAassistant
Copy link

CLAassistant commented Apr 10, 2023

CLA assistant check
All committers have signed the CLA.

@ykadowak ykadowak changed the title [WIPtemporal commit [WIP] Refactor replace errors wrap with join Apr 10, 2023
@ykadowak ykadowak force-pushed the refactor/errors-wrap/replace-errors-wrap-with-join branch from b8d2af0 to a724759 Compare April 10, 2023 08:50
@vdaas-ci
Copy link
Collaborator

[CHATOPS:HELP] ChatOps commands.

  • 🙆‍♀️ /approve - approve
  • 💌 /changelog - replace the PR body by changelog details
  • 🍱 /format - format codes and add licenses
  • /gen-test - generate test codes
  • 🏷️ /label - add labels
  • /rebase - rebase main
  • 🔚 2️⃣ 🔚 /label actions/e2e-deploy - run E2E deploy & integration test

@vdaas-ci
Copy link
Collaborator

[GEN TEST] Failed to generate tests. Error: Object

@vdaas-ci
Copy link
Collaborator

[GEN TEST] Failed to generate tests. Error: Object

@codecov
Copy link

codecov bot commented Apr 10, 2023

Codecov Report

Patch coverage: 21.05% and project coverage change: -0.03 ⚠️

Comparison is base (e86bd80) 29.40% compared to head (e2a72fe) 29.38%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2001      +/-   ##
==========================================
- Coverage   29.40%   29.38%   -0.03%     
==========================================
  Files         366      366              
  Lines       34527    34532       +5     
==========================================
- Hits        10153    10147       -6     
- Misses      23956    23967      +11     
  Partials      418      418              
Impacted Files Coverage Δ
hack/benchmark/internal/operation/operation.go 0.00% <0.00%> (ø)
internal/backoff/backoff.go 72.22% <0.00%> (ø)
internal/circuitbreaker/manager.go 0.00% <0.00%> (ø)
internal/client/v1/client/discoverer/discover.go 0.00% <0.00%> (ø)
internal/file/file.go 12.00% <0.00%> (ø)
internal/log/zap/zap.go 84.42% <0.00%> (ø)
internal/net/dialer.go 77.40% <0.00%> (ø)
internal/net/grpc/client.go 0.00% <0.00%> (ø)
internal/net/grpc/pool/pool.go 0.00% <0.00%> (ø)
internal/net/grpc/stream.go 0.00% <0.00%> (ø)
... and 26 more

... and 2 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@vdaas-ci
Copy link
Collaborator

[GEN TEST] Failed to generate tests. Error: Object

@vdaas-ci
Copy link
Collaborator

Profile Report

typevald-agent-ngtvald-lb-gatewayvald-discoverervald-manager-index
cpu
heap
other images

@ykadowak ykadowak force-pushed the refactor/errors-wrap/replace-errors-wrap-with-join branch from a724759 to d0fc34e Compare April 12, 2023 07:12
@vdaas-ci
Copy link
Collaborator

[WARNING:INTCFG] Changes in interal/config may require you to change Helm charts. Please check.

@ykadowak ykadowak force-pushed the refactor/errors-wrap/replace-errors-wrap-with-join branch from ab6afae to 1e1a6f4 Compare April 12, 2023 09:07
@vdaas-ci
Copy link
Collaborator

Profile Report

typevald-agent-ngtvald-lb-gatewayvald-discoverervald-manager-index
cpu
heap
other images

Copy link
Contributor

@vankichi vankichi left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks 😄
Welcome to Vald world 🎉

internal/net/grpc/stream.go Show resolved Hide resolved
Copy link
Collaborator

@kpango kpango left a comment

Choose a reason for hiding this comment

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

LGTM thanks

@kpango
Copy link
Collaborator

kpango commented Apr 18, 2023

@all-contributors please add @ykadowak for code,test

@allcontributors
Copy link
Contributor

@kpango

I've put up a pull request to add @ykadowak! 🎉

@github-actions
Copy link
Contributor

@vdaas-ci
Copy link
Collaborator

Profile Report

typevald-agent-ngtvald-lb-gatewayvald-discoverervald-manager-index
cpu
heap
other images

@vankichi vankichi merged commit d7c6bd3 into main Apr 19, 2023
@vankichi vankichi deleted the refactor/errors-wrap/replace-errors-wrap-with-join branch April 19, 2023 01:35
@ykadowak ykadowak mentioned this pull request Apr 24, 2023
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.

5 participants