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

./scripts/fix.sh: Takes care of goimports across the whole project. #15052

Merged
merged 2 commits into from
Dec 29, 2022

Conversation

ptabor
Copy link
Contributor

@ptabor ptabor commented Dec 28, 2022

No description provided.

Signed-off-by: Piotr Tabor <ptab@google.com>
@ptabor ptabor force-pushed the 20221228-goimports-fix branch from 7fa5b85 to 9317b5a Compare December 28, 2022 15:52
etcdutl/etcdutl/backup_command.go Outdated Show resolved Hide resolved
server/config/config.go Outdated Show resolved Hide resolved
server/embed/config.go Show resolved Hide resolved
"go.etcd.io/etcd/api/v3/etcdserverpb"
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
"go.etcd.io/etcd/client/pkg/v3/types"
"go.etcd.io/etcd/server/v3/auth"
"go.etcd.io/etcd/server/v3/config"
"go.etcd.io/raft/v3"
"go.uber.org/zap"
Copy link
Member

Choose a reason for hiding this comment

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

I am curious why such kind of import disorder isn't discovered by

local-prefixes: go.etcd.io # Put imports beginning with prefix after 3rd-party packages.
?

@demoManito

Copy link
Contributor

Choose a reason for hiding this comment

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

I need to study it.

Copy link
Member

Choose a reason for hiding this comment

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

Thank you @demoManito . Please feel free to deliver a PR to fix it if you have any findings.

Copy link
Contributor

Choose a reason for hiding this comment

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

OK

@codecov-commenter
Copy link

codecov-commenter commented Dec 29, 2022

Codecov Report

Merging #15052 (a4c1b3a) into main (1e14a0e) will increase coverage by 0.17%.
The diff coverage is 100.00%.

❗ Current head a4c1b3a differs from pull request most recent head 9317b5a. Consider uploading reports for the commit 9317b5a to get more accurate results

@@            Coverage Diff             @@
##             main   #15052      +/-   ##
==========================================
+ Coverage   74.75%   74.92%   +0.17%     
==========================================
  Files         415      415              
  Lines       34273    34276       +3     
==========================================
+ Hits        25620    25682      +62     
+ Misses       7012     6970      -42     
+ Partials     1641     1624      -17     
Flag Coverage Δ
all 74.92% <100.00%> (+0.17%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
server/etcdserver/server.go 86.02% <ø> (+0.68%) ⬆️
client/v3/naming/endpoints/endpoints_impl.go 71.69% <100.00%> (+0.82%) ⬆️
pkg/schedule/schedule.go 80.45% <0.00%> (-1.15%) ⬇️
client/v3/retry_interceptor.go 67.26% <0.00%> (+0.89%) ⬆️
server/proxy/grpcproxy/lease.go 89.14% <0.00%> (+0.90%) ⬆️
server/etcdserver/v3_server.go 79.05% <0.00%> (+1.22%) ⬆️
pkg/adt/interval_tree.go 87.21% <0.00%> (+1.25%) ⬆️
server/etcdserver/api/v3rpc/watch.go 88.25% <0.00%> (+1.90%) ⬆️
pkg/traceutil/trace.go 98.07% <0.00%> (+1.92%) ⬆️
... and 8 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Signed-off-by: Piotr Tabor <ptab@google.com>
@ptabor ptabor force-pushed the 20221228-goimports-fix branch from 9317b5a to 9e1abba Compare December 29, 2022 08:42
@ptabor ptabor requested a review from ahrtr December 29, 2022 08:42
Copy link
Member

@ahrtr ahrtr left a comment

Choose a reason for hiding this comment

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

LGTM

@ptabor ptabor merged commit 6f899a7 into etcd-io:main Dec 29, 2022
@ptabor ptabor deleted the 20221228-goimports-fix branch December 29, 2022 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants