Take into account github.ref when doing upgrade-downgrade tests#10504
Merged
deepthi merged 3 commits intovitessio:mainfrom Jun 15, 2022
Merged
Take into account github.ref when doing upgrade-downgrade tests#10504deepthi merged 3 commits intovitessio:mainfrom
github.ref when doing upgrade-downgrade tests#10504deepthi merged 3 commits intovitessio:mainfrom
Conversation
…e tests Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Contributor
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
deepthi
reviewed
Jun 15, 2022
| fetch-depth: 0 | ||
|
|
||
| - name: Set output with latest release branch | ||
| - name: Set output with latest release branch (on branch) |
Collaborator
There was a problem hiding this comment.
The name has changed in this one workflow file but not others. They should all be consistent.
Given that it is not actually latest but previous, maybe rename latest to previous everywhere including in the script file name?
Member
Author
There was a problem hiding this comment.
Oops, (on branch) shouldnt be here. Forgot to remove this after trying something
Member
Author
There was a problem hiding this comment.
Did a cleanup of the upgrade downgrade workflows to have better names
… of 'latest' Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Collaborator
|
Next step - generating upgrade/downgrade test workflows from a template? |
frouioui
added a commit
to planetscale/vitess
that referenced
this pull request
Jun 16, 2022
…tessio#10504) * Take into account the github.ref variable when doing upgrade-downgrade tests Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * Changed upgrade-downgrade workflows' syntax to use 'previous' instead of 'latest' Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * Fixed syntax error in backup upgrade downgrade workflow Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
3 tasks
frouioui
added a commit
to planetscale/vitess
that referenced
this pull request
Jun 16, 2022
…tessio#10504) * Take into account the github.ref variable when doing upgrade-downgrade tests Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * Changed upgrade-downgrade workflows' syntax to use 'previous' instead of 'latest' Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * Fixed syntax error in backup upgrade downgrade workflow Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
3 tasks
deepthi
pushed a commit
that referenced
this pull request
Jun 17, 2022
…0504) (#10523) * Take into account the github.ref variable when doing upgrade-downgrade tests Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * Changed upgrade-downgrade workflows' syntax to use 'previous' instead of 'latest' Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * Fixed syntax error in backup upgrade downgrade workflow Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
deepthi
pushed a commit
that referenced
this pull request
Jun 24, 2022
…sts (#10522) * Take into account `github.ref` when doing upgrade-downgrade tests (#10504) * Take into account the github.ref variable when doing upgrade-downgrade tests Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * Changed upgrade-downgrade workflows' syntax to use 'previous' instead of 'latest' Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * Fixed syntax error in backup upgrade downgrade workflow Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * Fixed static_checks_etc workflow Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This Pull Request fixes the upgrade-downgrade tests when they are triggered by a
push. When a workflow is triggered by something else thanpull_requestandpull_request_target, thegithub.base_refvariable is unavailable, instead we should usegithub.ref. Ifgithub.base_refis empty, the call toget_latest_release.shwill result in the script returning the latest release branch, which is not okay when running the workflow against, for instance, therelease-13.0branch. This issue can be seen on this workflow: https://github.com/vitessio/vitess/runs/6789332524?check_suite_focus=true.Related Issue(s)
release-13.0#10503Checklist