Skip to content

Chore: upgrades go, golang_ci, and staticcheck version#204

Merged
anoop2811 merged 5 commits intokubevela:mainfrom
PushparajShetty:chore/upgrade-go-and-golang-ci-version
Apr 30, 2025
Merged

Chore: upgrades go, golang_ci, and staticcheck version#204
anoop2811 merged 5 commits intokubevela:mainfrom
PushparajShetty:chore/upgrade-go-and-golang-ci-version

Conversation

@PushparajShetty
Copy link
Copy Markdown
Contributor

@PushparajShetty PushparajShetty commented Apr 29, 2025

Description of your changes

Fixes #

I have:

  • Read and followed KubeVela's contribution process.
  • Related Docs updated properly. In a new feature or configuration option, an update to the documentation is necessary.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

This has been tested on a patched KubeVela setup by deploying applications and multi-cluster environments. Everything is working as expected.

Special notes for your reviewer

  • Upgraded Go version to 1.23.8.
  • Upgraded golangci-lint version to 1.60.1 to align with Go 1.23.

Signed-off-by: Ayush Shyam Kumar <ayushshyam.official.888@gmail.com>
@PushparajShetty PushparajShetty changed the title upgrades go, golang_ci, and staticcheck version Chore: upgrades go, golang_ci, and staticcheck version Apr 29, 2025
Signed-off-by: Ayush Shyam Kumar <ayushshyam.official.888@gmail.com>
Signed-off-by: Ayush Shyam Kumar <ayushshyam.official.888@gmail.com>
Signed-off-by: Ayush Shyam Kumar <ayushshyam.official.888@gmail.com>
Signed-off-by: Ayush Shyam Kumar <ayushshyam.official.888@gmail.com>
@anoop2811 anoop2811 requested a review from Copilot April 29, 2025 12:29
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR upgrades the Go version and associated tooling to support improved performance and new linting features. In addition, it updates various GitHub workflow configurations and corrects minor issues in error messaging.

  • Upgraded Go version to 1.23.8 and golangci-lint version to 1.60.1.
  • Updated GitHub workflow runners from Ubuntu 20.04 to Ubuntu 22.04.
  • Corrected typo in error messages in Prometheus metric check functions.

Reviewed Changes

Copilot reviewed 12 out of 16 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pkg/webhook/v1alpha1/workflowrun/validating_handler.go Changed error formatting to safely wrap the error message.
pkg/providers/metrics/prom_check.go Fixed typo ("ehe" to "the") in the error message returned by getQueryResult.
pkg/providers/legacy/metrics/prom_check.go Fixed typo ("ehe" to "the") in the error message returned by getQueryResult.
cmd/main.go Corrected the usage of errors.Is to properly check the returned error.
.golangci.yml Updated configuration keys to match the new version requirements.
.github/workflows/* Upgraded Go and golangci versions and updated runner images to Ubuntu 22.04.
Files not reviewed (4)
  • Dockerfile: Language not supported
  • Dockerfile.e2e: Language not supported
  • go.mod: Language not supported
  • makefiles/dependency.mk: Language not supported

Copy link
Copy Markdown
Contributor

@anoop2811 anoop2811 left a comment

Choose a reason for hiding this comment

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

LGTM

@anoop2811 anoop2811 merged commit 067ed6a into kubevela:main Apr 30, 2025
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