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

Use go-version-file: go.mod in CI #16841

Merged
merged 4 commits into from
Sep 25, 2024

Conversation

timvaillancourt
Copy link
Contributor

@timvaillancourt timvaillancourt commented Sep 24, 2024

Description

This PR uses go-version-file: go.mod in CI that requires a go version == go.mod. This makes the repo a bit easier to maintain in places

The only CI files that still have a specific go-version: set are:

  • .github/workflows/upgrade_downgrade_test_backups_e2e.yml
  • .github/workflows/upgrade_downgrade_test_backups_manual.yml
  • .github/workflows/upgrade_downgrade_test_onlineddl_flow.yml
  • .github/workflows/upgrade_downgrade_test_query_serving_queries.yml
  • .github/workflows/upgrade_downgrade_test_query_serving_schema.yml
  • .github/workflows/upgrade_downgrade_test_reparent_old_vtctl.yml
  • .github/workflows/upgrade_downgrade_test_reparent_old_vttablet.yml
  • .github/workflows/upgrade_downgrade_test_semi_sync.yml

Are those set by hand? On main these are set to 1.22.7, a previous-release go version. Also I'm unclear if I've broken go-upgrade (I didn't know about this) and could use a hand validating that part 🤔

Example of go-version-file: go.mod finding 1.23.1 (from this PR CI):
Screenshot 2024-09-24 at 20 24 04

Related Issue(s)

#16842

Checklist

  • "Backport to:" labels have been added if this change should be back-ported to release branches
  • If this change is to be back-ported to previous releases, a justification is included in the PR description
  • Tests were added or are not required
  • Did the new or modified tests pass consistently locally and on CI?
  • Documentation was added or is not required

Deployment Notes

Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
Copy link
Contributor

vitess-bot bot commented Sep 24, 2024

Review Checklist

Hello reviewers! 👋 Please follow this checklist when reviewing this Pull Request.

General

  • Ensure that the Pull Request has a descriptive title.
  • Ensure there is a link to an issue (except for internal cleanup and flaky test fixes), new features should have an RFC that documents use cases and test cases.

Tests

  • Bug fixes should have at least one unit or end-to-end test, enhancement and new features should have a sufficient number of tests.

Documentation

  • Apply the release notes (needs details) label if users need to know about this change.
  • New features should be documented.
  • There should be some code comments as to why things are implemented the way they are.
  • There should be a comment at the top of each new or modified test to explain what the test does.

New flags

  • Is this flag really necessary?
  • Flag names must be clear and intuitive, use dashes (-), and have a clear help text.

If a workflow is added or modified:

  • Each item in Jobs should be named in order to mark it as required.
  • If the workflow needs to be marked as required, the maintainer team must be notified.

Backward compatibility

  • Protobuf changes should be wire-compatible.
  • Changes to _vt tables and RPCs need to be backward compatible.
  • RPC changes should be compatible with vitess-operator
  • If a flag is removed, then it should also be removed from vitess-operator and arewefastyet, if used there.
  • vtctl command output order should be stable and awk-able.

@vitess-bot vitess-bot bot added NeedsBackportReason If backport labels have been applied to a PR, a justification is required NeedsDescriptionUpdate The description is not clear or comprehensive enough, and needs work NeedsIssue A linked issue is missing for this Pull Request NeedsWebsiteDocsUpdate What it says labels Sep 24, 2024
@github-actions github-actions bot added this to the v21.0.0 milestone Sep 24, 2024
@timvaillancourt timvaillancourt added Component: Build/CI Type: CI/Build and removed NeedsDescriptionUpdate The description is not clear or comprehensive enough, and needs work NeedsWebsiteDocsUpdate What it says NeedsIssue A linked issue is missing for this Pull Request NeedsBackportReason If backport labels have been applied to a PR, a justification is required labels Sep 24, 2024
@timvaillancourt timvaillancourt linked an issue Sep 24, 2024 that may be closed by this pull request
@timvaillancourt timvaillancourt marked this pull request as ready for review September 24, 2024 18:34
Copy link

codecov bot commented Sep 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.45%. Comparing base (969e018) to head (f8a3984).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16841      +/-   ##
==========================================
+ Coverage   69.41%   69.45%   +0.03%     
==========================================
  Files        1570     1570              
  Lines      202945   202923      -22     
==========================================
+ Hits       140880   140940      +60     
+ Misses      62065    61983      -82     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Tim Vaillancourt <[email protected]>
@timvaillancourt timvaillancourt self-assigned this Sep 24, 2024
Copy link
Contributor

@mattlord mattlord left a comment

Choose a reason for hiding this comment

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

Nice! Thanks, @timvaillancourt !

@frouioui can you also please take a look?

@systay
Copy link
Collaborator

systay commented Sep 25, 2024

👏 Very nice!

@frouioui
Copy link
Member

@frouioui can you also please take a look?

I will take a look at the go-upgrade in the morning

@frouioui
Copy link
Member

Are those set by hand?

Yes, these match the golang version used on the previous release branch. Since the goal of these workflows is to downgrade from main to the latest release branch, we use the go version found there.

Copy link
Member

@frouioui frouioui left a comment

Choose a reason for hiding this comment

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

Left one comment that should be addressed, otherwise that's awesome! 🚀

go/tools/go-upgrade/go-upgrade.go Outdated Show resolved Hide resolved
Signed-off-by: Tim Vaillancourt <[email protected]>
@timvaillancourt
Copy link
Contributor Author

Re-requesting review on last tweak from @frouioui 🙇

Copy link
Member

@frouioui frouioui left a comment

Choose a reason for hiding this comment

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

LGTM! ❤️

@frouioui frouioui merged commit 605ba51 into vitessio:main Sep 25, 2024
95 of 96 checks passed
@timvaillancourt timvaillancourt deleted the workflows-go-version-file branch September 25, 2024 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: use go-version-file: for go version in CI
4 participants