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

Move types not used by zedrouter out of zedroutertypes.go #3513

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

milan-zededa
Copy link
Contributor

zedroutertypes.go currently contains all types related to networking, including those which are actually used from NIM. This makes the file very long and hard to work with. In this commit, we take types not used from zedrouter out of zedroutertypes.go and move them into separate Go files. Apart from moving type definitions and their methods around, there are no actual code changes made here.

Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

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

LGTM but it makes sense to address the yetus complaints (by code changes or with comments to silence them as appproriate).

@milan-zededa
Copy link
Contributor Author

milan-zededa commented Oct 23, 2023

LGTM but it makes sense to address the yetus complaints (by code changes or with comments to silence them as appproriate).

I'm on it. Will restart other failed workflows once this is fixed: golang/go#63684

@uncleDecart
Copy link
Member

LGTM, this is not related to this PR, but unit tests started to fail

@milan-zededa
Copy link
Contributor Author

LGTM, this is not related to this PR, but unit tests started to fail

This is due to golang/go#63684

@codecov
Copy link

codecov bot commented Oct 23, 2023

Codecov Report

Attention: 889 lines in your changes are missing coverage. Please review.

Comparison is base (196c3cf) 20.51% compared to head (f70d710) 20.50%.
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3513      +/-   ##
==========================================
- Coverage   20.51%   20.50%   -0.01%     
==========================================
  Files         203      209       +6     
  Lines       45430    45391      -39     
==========================================
- Hits         9319     9308      -11     
+ Misses      35430    35401      -29     
- Partials      681      682       +1     
Files Coverage Δ
pkg/pillar/dpcmanager/dns.go 62.17% <100.00%> (ø)
pkg/pillar/dpcreconciler/linux.go 74.94% <100.00%> (ø)
pkg/pillar/nireconciler/linux_config.go 90.13% <ø> (ø)
pkg/pillar/cmd/zedagent/reportinfo.go 0.00% <0.00%> (ø)
pkg/pillar/cmd/diag/diag.go 0.00% <0.00%> (ø)
pkg/pillar/types/errors.go 0.00% <0.00%> (ø)
pkg/pillar/dpcreconciler/genericitems/dhcpcd.go 19.26% <50.00%> (ø)
pkg/pillar/cmd/zedagent/parseconfig.go 23.86% <33.33%> (ø)
pkg/pillar/types/onboardingtypes.go 0.00% <0.00%> (ø)
pkg/pillar/types/cachedresolvedip.go 0.00% <0.00%> (ø)
... and 4 more

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

zedroutertypes.go currently contains all types related to networking,
including those which are actually used from NIM. This makes the file
very long and hard to work with. In this commit, we take types not used
from zedrouter out of zedroutertypes.go and move them into separate Go
files. Apart from moving type definitions and their methods around,
there are no actual code changes made here.

Signed-off-by: Milan Lenco <milan@zededa.com>
@milan-zededa milan-zededa force-pushed the split-zedrouter-types branch from 7a11a31 to f70d710 Compare October 23, 2023 14:21
@milan-zededa
Copy link
Contributor Author

All relevant Yetus issues have been fixed.

@eriknordmark eriknordmark merged commit 67cb511 into lf-edge:master Oct 24, 2023
14 of 16 checks passed
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.

3 participants