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: Use Go 1.22 #909

Merged
merged 3 commits into from
May 16, 2024
Merged

build: Use Go 1.22 #909

merged 3 commits into from
May 16, 2024

Conversation

tianfeng92
Copy link
Contributor

@tianfeng92 tianfeng92 commented May 15, 2024

Description

Use Go 1.22.

Notes:
Our pipeline failed because it didn't meet the test coverage threshold, as detailed here: GitHub Actions Log.

This issue arose due to changes in Go 1.22, which updated how test coverage reports are generated. Previously, Go did not include packages without test files in coverage calculations. With Go 1.22, these packages are now counted, each showing 0% coverage, causing our test coverage in saucectl to drop from around 43% to 34%. While this provides a more realistic measure of coverage.

Talked with @alexplischke , as we've discussed repeatedly, test coverage is merely a numerical metric and does not accurately reflect the true quality of the product. Therefore, we should consider removing the coverage threshold.

@tianfeng92 tianfeng92 added the enhancement New feature or request label May 15, 2024
@tianfeng92 tianfeng92 changed the title build: Use go 1.22 build: Use Go 1.22 May 16, 2024
@tianfeng92 tianfeng92 marked this pull request as ready for review May 16, 2024 16:38
@tianfeng92 tianfeng92 requested a review from a team as a code owner May 16, 2024 16:38
alexplischke
alexplischke previously approved these changes May 16, 2024
Copy link
Contributor

@alexplischke alexplischke left a comment

Choose a reason for hiding this comment

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

LGTM. Would be good to upgrade goreleaser/goreleaser-action@v3 to v5, either here or in a separate PR, as we're falling behind on that one 🙏

@tianfeng92 tianfeng92 merged commit 2357a86 into main May 16, 2024
16 checks passed
@tianfeng92 tianfeng92 deleted the DEVX-2776 branch May 16, 2024 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants