-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Don't hardcode the go version to use for upgrade/downgrade tests. #18920
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
c9eb44e
Don't hardcode the go version to use for upgrade/downgrade tests.
arthurschreiber 4af86f4
Update more workflows.
arthurschreiber 04b9acb
Update all upgrade/downgrade workflows.
arthurschreiber 507575d
Fix a typo.
arthurschreiber 7e4197a
Skip installing the `go-junit-report` when it's not being used.
arthurschreiber File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -62,20 +62,14 @@ jobs: | |
| - 'bootstrap.sh' | ||
| - '.github/workflows/upgrade_downgrade_test_backups_e2e.yml' | ||
|
|
||
| - name: Set up Go | ||
| - name: Tune the OS | ||
| if: steps.changes.outputs.end_to_end == 'true' | ||
| uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | ||
| with: | ||
| go-version: 1.24.7 | ||
| uses: ./.github/actions/tune-os | ||
|
|
||
| - name: Set up python | ||
| if: steps.changes.outputs.end_to_end == 'true' | ||
| uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1 | ||
|
|
||
| - name: Tune the OS | ||
| if: steps.changes.outputs.end_to_end == 'true' | ||
| uses: ./.github/actions/tune-os | ||
|
|
||
| - name: Setup MySQL | ||
| if: steps.changes.outputs.end_to_end == 'true' | ||
| uses: ./.github/actions/setup-mysql | ||
|
|
@@ -93,11 +87,6 @@ jobs: | |
|
|
||
| sudo service etcd stop | ||
|
|
||
| go mod download | ||
|
|
||
| # install JUnit report formatter | ||
| go install github.com/vitessio/go-junit-report@HEAD | ||
|
Comment on lines
-96
to
-99
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The upgrade/downgrade tests don't use |
||
|
|
||
| wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb | ||
| sudo apt-get install -y gnupg2 | ||
| sudo dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb | ||
|
|
@@ -113,6 +102,13 @@ jobs: | |
| ref: ${{ steps.output-previous-release-ref.outputs.previous_release_ref }} | ||
| persist-credentials: 'false' | ||
|
|
||
| - name: Set up Go | ||
| if: steps.changes.outputs.end_to_end == 'true' | ||
| uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | ||
| with: | ||
| go-version-file: go.mod | ||
| cache: false | ||
|
|
||
|
Comment on lines
+105
to
+111
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This pulls the required go version from the |
||
| - name: Get dependencies for the last release | ||
| if: steps.changes.outputs.end_to_end == 'true' | ||
| run: | | ||
|
|
@@ -135,6 +131,13 @@ jobs: | |
| with: | ||
| persist-credentials: 'false' | ||
|
|
||
| - name: Set up Go | ||
| if: steps.changes.outputs.end_to_end == 'true' | ||
| uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | ||
| with: | ||
| go-version-file: go.mod | ||
| cache: false | ||
|
|
||
| - name: Get dependencies for this commit | ||
| if: steps.changes.outputs.end_to_end == 'true' | ||
| run: | | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like we missed upgrading this value when v23 was released. Changing this to not hardcode this value will ensure we won't miss updating this value in the future.