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

build: Upgrade to go 1.18 and latest golangci-lint #4068

Merged
merged 1 commit into from
Jul 11, 2022

Conversation

lenny-goodell
Copy link
Member

Fixed issue flag by latest linter

Signed-off-by: Leonard Goodell leonard.goodell@intel.com

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-go/blob/main/.github/Contributing.md

PR Checklist

Please check if your PR fulfills the following requirements:

  • I am not introducing a breaking change (if you are, flag in conventional commit message with BREAKING CHANGE: describing the break)
  • I am not introducing a new dependency (add notes below if you are)
  • I have added unit tests for the new feature or bug fix (if not, why?) N/A
  • I have fully tested (add details below) this the new feature or bug fix (if not, why?)
  • I have opened a PR for the related docs change (if not, why?) N/A

Testing Instructions

Run the following make commands:

  • make tidy
  • make build
  • make test
  • make docker

New Dependency Instructions (If applicable)

@lenny-goodell lenny-goodell added 3-high priority denoting release-blocking issues build labels Jun 30, 2022
@lenny-goodell lenny-goodell added this to the Levski milestone Jun 30, 2022
farshidtz
farshidtz previously approved these changes Jul 1, 2022
@farshidtz
Copy link
Member

Thanks for the changes. I've verified the snap changes.

Jenkins builds are failing for both arm64 and amd64:

ERROR: for security-spiffe-token-provider  (<Service: security-spiffe-token-provider>, "The command '/bin/sh -c apk update && apk --no-cache --update add dumb-init curl gcompat' returned a non-zero code: 2")
ERROR: for security-spire-agent  (<Service: security-spire-agent>, "The command '/bin/sh -c apk update && apk --no-cache --update add dumb-init openssl gcompat' returned a non-zero code: 1")
ERROR: for security-spire-server  (<Service: security-spire-server>, "The command '/bin/sh -c apk update && apk --no-cache --update add dumb-init openssl gcompat' returned a non-zero code: 1")
Service 'security-spire-server' failed to build: The command '/bin/sh -c apk update && apk --no-cache --update add dumb-init openssl gcompat' returned a non-zero code: 1

@bnevis-i
Copy link
Collaborator

bnevis-i commented Jul 1, 2022

Thanks for the changes. I've verified the snap changes.

Jenkins builds are failing for both arm64 and amd64:

ERROR: for security-spiffe-token-provider  (<Service: security-spiffe-token-provider>, "The command '/bin/sh -c apk update && apk --no-cache --update add dumb-init curl gcompat' returned a non-zero code: 2")
ERROR: for security-spire-agent  (<Service: security-spire-agent>, "The command '/bin/sh -c apk update && apk --no-cache --update add dumb-init openssl gcompat' returned a non-zero code: 1")
ERROR: for security-spire-server  (<Service: security-spire-server>, "The command '/bin/sh -c apk update && apk --no-cache --update add dumb-init openssl gcompat' returned a non-zero code: 1")
Service 'security-spire-server' failed to build: The command '/bin/sh -c apk update && apk --no-cache --update add dumb-init openssl gcompat' returned a non-zero code: 1

Lenny mentioned this yesterday. It appears as of the nl.alinelinux.org mirror is inconsistent. I checked yesterday to make sure the site is still getting updates, and it is, but apparently it is not being uniformly updated.

I checked the Alpine mirror list and it appears as if nl.alpinelinux.org is no longer listed. Instead, dl-4 seems to have replaced it and it works fine. If I recall, we don't use dl-cdn because some of the mirrors have IP address reputation problems that are blocked by corporate firewalls occasionally.

My proposal is to replace nl.alpinelinux.org with dl-4.alpinelinux.org in our Dockerfiles.

@bnevis-i
Copy link
Collaborator

bnevis-i commented Jul 1, 2022

My proposal is to replace nl.alpinelinux.org with dl-4.alpinelinux.org in our Dockerfiles.

See #4069 for the fix.

bnevis-i
bnevis-i previously approved these changes Jul 1, 2022
Copy link
Collaborator

@bnevis-i bnevis-i left a comment

Choose a reason for hiding this comment

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

LTGM. Will work better after merging the mirror update in.

bill-mahoney
bill-mahoney previously approved these changes Jul 1, 2022
Copy link
Member

@bill-mahoney bill-mahoney left a comment

Choose a reason for hiding this comment

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

LGTM

jim-wang-intel
jim-wang-intel previously approved these changes Jul 5, 2022
Copy link
Contributor

@ernestojeda ernestojeda left a comment

Choose a reason for hiding this comment

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

I will coordinate the Go 1.18 CI base image so it is ready when we merge this PR

Fixed issue flag by latest linter

Signed-off-by: Leonard Goodell <leonard.goodell@intel.com>
@lenny-goodell
Copy link
Member Author

Will work better after merging the mirror update in.

Rebased.

@sonarcloud
Copy link

sonarcloud bot commented Jul 6, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@jim-wang-intel jim-wang-intel left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@cloudxxx8 cloudxxx8 left a comment

Choose a reason for hiding this comment

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

LGTM

@lenny-goodell lenny-goodell marked this pull request as ready for review July 11, 2022 16:25
@lenny-goodell lenny-goodell merged commit fb67e34 into edgexfoundry:main Jul 11, 2022
@lenny-goodell lenny-goodell deleted the go-1.18-linter-fixes branch July 11, 2022 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3-high priority denoting release-blocking issues build
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants