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

chore: update and fix rollback workflow #2551

Closed
wants to merge 34 commits into from
Closed

Conversation

k80bowman
Copy link
Contributor

@k80bowman k80bowman commented Nov 13, 2023

Work item

This PR updates the rollback workflow to programmatically determine the release rollback and target versions based on the channel.

I have tested the get-target-and-rollback-tags and the validate-stable-tags jobs. You can see the results here:

I would like to get an initial review of this PR before testing a rollback on the beta channel.

@k80bowman k80bowman requested a review from a team as a code owner November 13, 2023 15:30
Comment on lines +37 to +40
ROLLBACK_VERSION=$(echo ${CHANNEL_VERSION_LIST} | jq '.[-1]')
echo "rollbackTag=${ROLLBACK_VERSION}" >> $GITHUB_OUTPUT
TARGET_VERSION=$(echo ${CHANNEL_VERSION_LIST} | jq '.[-2]')
echo "targetTag=${TARGET_VERSION}" >> $GITHUB_OUTPUT
Copy link
Contributor

Choose a reason for hiding this comment

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

Final sanity check: how worried are we that we can not specify the version to rollback to?

needs: determine-target-tag
if: ${{ !fromJSON(needs.determine-target-tag.outputs.isStableRelease) }}
needs: [get-target-and-rollback-tags, validate-stable-tags]
if: ${{ inputs.rollbackChannel != 'stable' }}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this.

Suggested change
if: ${{ inputs.rollbackChannel != 'stable' }}
if: ${{ inputs.rollbackChannel == 'stable' }}

There will be nothing to rollback in our brew repo unless it was a stable release.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is only there for testing, to make sure we don't actually roll back a stable release. I'll remove this check after the test.

@k80bowman
Copy link
Contributor Author

Closing. Rollback automation has been removed for now.

@k80bowman k80bowman closed this Dec 20, 2023
@k80bowman k80bowman deleted the k80/rollback-fix2 branch February 21, 2024 22:01
@k80bowman k80bowman restored the k80/rollback-fix2 branch February 21, 2024 22:01
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.

2 participants