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

ci: update golangci-lint #1586

Merged
merged 4 commits into from
Nov 6, 2023
Merged

ci: update golangci-lint #1586

merged 4 commits into from
Nov 6, 2023

Conversation

mythi
Copy link
Contributor

@mythi mythi commented Nov 6, 2023

No description provided.

@codecov-commenter
Copy link

Codecov Report

Merging #1586 (02173f3) into main (3a5350d) will not change coverage.
The diff coverage is 100.00%.

❗ Current head 02173f3 differs from pull request most recent head 31be772. Consider uploading reports for the commit 31be772 to get more accurate results

@@           Coverage Diff           @@
##             main    #1586   +/-   ##
=======================================
  Coverage   49.50%   49.50%           
=======================================
  Files          42       42           
  Lines        4965     4965           
=======================================
  Hits         2458     2458           
  Misses       2363     2363           
  Partials      144      144           
Files Coverage Δ
cmd/gpu_plugin/gpu_plugin.go 86.74% <100.00%> (ø)
pkg/fpga/bitstream/bitstream.go 88.88% <100.00%> (ø)

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

Copy link
Contributor

@eero-t eero-t left a comment

Choose a reason for hiding this comment

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

Fixes logging bug and looks fine otherwise.

@@ -47,9 +45,9 @@ func GetFPGABitstream(bitstreamDir, region, afu string) (File, error) {
// Open bitstream file, detecting type based on the filename extension.
func Open(fname string) (File, error) {
switch filepath.Ext(fname) {
case ".gbs":
case fileExtensionGBS:
Copy link
Contributor

Choose a reason for hiding this comment

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

IMHO code would be clearer if this Open() function would be inlined into GetFPGABitstream() loop. That way one could more easily see that loop handles all cases that it ranges through.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks reasonable to me but it could be handled in another PR.

Copy link
Contributor

@tkatila tkatila left a comment

Choose a reason for hiding this comment

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

lgtm

@tkatila tkatila merged commit 3572cb5 into intel:main Nov 6, 2023
75 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.

4 participants