-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[No QA] Build Cherry-pick flow for Expensify.cash #2978
Conversation
I know this is a late to the game comment, but did we explore adding the ability to add the label after the PR is merged? Or will that be able to be added in a future iteration? |
Yeah, so this was designed with a specific vision in mind. Basically in many places we currently have With that in mind, the |
Wow I had no idea that UI existed, looks great! |
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.
Looking good, just 2 comments
If a PR is created with the
|
Okay, this is updated and ready for another review. Added some botify comments and opened up the |
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.
LGTM 👍 Let me know if you need help testing this!
Looks great, feel free to test without me (or if I am around I am happy to help testing!) |
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.
Looks good! I don't have the most knowledge about this stuff so I followed as best as I could. Feel free to merge once the test that @AndrewGable mentioned is added!
Marking this as |
|
Fixing the last failure with this PR |
Okay, so @Jag96 tried to manually CP this PR, but we ran into a permissions error where the |
Okay, this testing was unfortunately a failure, and we need to step back and get some input from ring 0 folks to continue. For now, we'll:
|
Continuing QA on this issue with an updated plan: since we already verified steps 1-3, we're going to restart at step 4:
|
|
Note: This PR creates a CP-staging workflow only. Not CP-production.
Details
Creates the ability to cherry-pick a workflow to staging by merging a pull request with the
CP Staging
label.Fixed Issues
Fixes https://github.com/Expensify/Expensify/issues/155229
Testing plan
Ensure that the
StagingDeployCash
is not lockedCreate a pull request with the
CP Staging
label.OSBotify
should comment on the pull request with a comment that looks like:Merge the pull request with the
CP Staging
label. It should follow the normal process and be deployed to staging.Lock the
StagingDeployCash
. The normal chain-of-events should happen, culminating with a staging deploy. ThecherryPick.yml
workflow should not be executed.Merge a pull request with an easily identifiable change (no
CP Staging
label). Call this PR A. As per usual, it should not be deployed or added to theStagingDeployCash
. A comment should appear on the PR stating that it will be deployed later.@Jag96 - Merge a pull request with an easily identifiable change with the
CP Staging
label on the PR. Call this PR B. A new version should be created and merged to main, and thepreDeploy
workflow should synchronously execute thecherryPick.yml
workflow.A staging deploy should occur, and a comment should appear on PR B stating that it was cherry picked (not just deployed) to staging in the correct version.
Once the staging deploy completes, verify that PR A is not present on staging, but PR B is. This is where the easily-identifiable changes will come in handy.
Verify that PR B was added to the
StagingDeployCash
, but PR A was not.@Jag96 - Use the GitHub UI to attempt to manually CP PR A to staging. The workflow should not complete. Verify that no staging deploy happens.
@AndrewGable or @roryabraham - Use the GitHub UI to attempt to manually CP PR A to staging. It should work and a staging deploy should occur.
Once the staging deploy completes, verify that PR A is present on staging.
Verify that PR A was added to the
StagingDeployCash
.Unlock the
StagingDeployCash
and revert any temporary changes.