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

Updated the go version in github actions to 1.20 #167

Merged
merged 1 commit into from
Aug 26, 2023

Conversation

VaibhavMalik4187
Copy link
Contributor

Switched to explicit declaration of the GO_VERSION variable in the actions files. Earlier the GO_VERSION was being read from the repository secrets.

Fixes: #147

Signed commits

  • Yes, I signed my commits.

@VaibhavMalik4187
Copy link
Contributor Author

@leecalcote Could you please review my pull request when you have a moment? Thank you!

@leecalcote
Copy link
Member

@leecalcote Could you please review my pull request when you have a moment? Thank you!

You bet. Although, I'll likely slow you down. Others that are faster and more knowledgeable than me: @nebula-aac @Revolyssup @abdullah1308 @hexxdump @Aisuko

@VaibhavMalik4187
Copy link
Contributor Author

VaibhavMalik4187 commented Aug 19, 2023

The runner is not able to find the analysis tools causing the jobs to fail, any idea why this is happening?

@leecalcote leecalcote requested a review from Aisuko August 19, 2023 12:07
Copy link
Member

@Aisuko Aisuko left a comment

Choose a reason for hiding this comment

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

@leecalcote Thank you.

Hi @VaibhavMalik4187, thanks for your contribution. Currently, we use 'golangci-lint' to check the code quality since we have upgraded to the version of Go. Please help us upgrade the CI to the latest like below. I believe these issues CI cannot find tools should go away.

https://github.com/meshery/meshery-operator/blob/e15e3bbd9186a5099abb6e2da6312efc86e7cd80/.github/workflows/approve-to-run-ci.yml#L10-L26

@Aisuko Aisuko self-assigned this Aug 20, 2023
@Aisuko Aisuko added kind/enhancement Improvement in current feature area/ci Continuous integration | Build and release labels Aug 20, 2023
@VaibhavMalik4187
Copy link
Contributor Author

@leecalcote Thank you.

Hi @VaibhavMalik4187, thanks for your contribution. Currently, we use 'golangci-lint' to check the code quality since we have upgraded to the version of Go. Please help us upgrade the CI to the latest like below. I believe these issues CI cannot find tools should go away.

https://github.com/meshery/meshery-operator/blob/e15e3bbd9186a5099abb6e2da6312efc86e7cd80/.github/workflows/approve-to-run-ci.yml#L10-L26

Thanks for the pointer @Aisuko. I'll make the necessary changes and update the PR soon.

@VaibhavMalik4187 VaibhavMalik4187 force-pushed the go-version-update branch 5 times, most recently from e509a5a to 4f5f84d Compare August 20, 2023 21:55
@VaibhavMalik4187
Copy link
Contributor Author

@Aisuko could you please trigger the tests if you have some spare time? Thanks a lot.

@leecalcote
Copy link
Member

Checks triggered

@VaibhavMalik4187 VaibhavMalik4187 force-pushed the go-version-update branch 3 times, most recently from 75d2acf to 429b404 Compare August 21, 2023 08:07
@VaibhavMalik4187
Copy link
Contributor Author

Checks triggered

@leecalcote I looked into checks run and have also fixed all the errors related to the CI workflow. I had to move to go version 1.21 to get the changes working. Is this acceptable?

This PR is now ready for a deeper code review. Thanks!

@VaibhavMalik4187 VaibhavMalik4187 changed the title Updated the go version in github actions to 1.20 Updated the go version in github actions to 1.21 Aug 21, 2023
@VaibhavMalik4187 VaibhavMalik4187 force-pushed the go-version-update branch 6 times, most recently from cf7368f to 209d12c Compare August 21, 2023 20:45
@VaibhavMalik4187 VaibhavMalik4187 changed the title Updated the go version in github actions to 1.21 Updated the go version in github actions to 1.20 Aug 21, 2023
@VaibhavMalik4187
Copy link
Contributor Author

@nebula-aac, would you mind reviewing the code when you have a moment? Your feedback would be much appreciated. Thanks

@VaibhavMalik4187
Copy link
Contributor Author

I'd also like to highlight that upgrading the linters and error checkers has reported the use of deprecated packages in some parts of the code. I'll be happy to eliminate those errors as a separate issue.

@VaibhavMalik4187
Copy link
Contributor Author

@Aisuko please let me know if any changes are needed. Thanks!

@VaibhavMalik4187 VaibhavMalik4187 force-pushed the go-version-update branch 3 times, most recently from b13d212 to 3095583 Compare August 24, 2023 16:10
@Revolyssup
Copy link

@VaibhavMalik4187 Please fix the failing lint tests.

Switched to explicit declaration of the GO_VERSION variable in the
actions files. Earlier the GO_VERSION was being read from the repository
secrets.

This also involves updating the following jobs to work with the new
changes:
  - Check & Review code
  - Error check
  - Static check
  - Build check

Fixes: meshery#147

Signed-off-by: VaibhavMalik4187 <[email protected]>
@VaibhavMalik4187
Copy link
Contributor Author

@Revolyssup I've fixed the failing lint tests.

Copy link
Member

@Aisuko Aisuko left a comment

Choose a reason for hiding this comment

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

LGTM

@Aisuko Aisuko merged commit 7d40142 into meshery:master Aug 26, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci Continuous integration | Build and release kind/enhancement Improvement in current feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update go version in github actions workflows to 1.17
4 participants