-
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] Resolve CP merge conflicts #3350
Conversation
.github/workflows/cherryPick.yml
Outdated
run: | | ||
git add -A | ||
git cherry-pick --continue | ||
if [[ "$(./.github/scripts/cherryPick.sh ${{ steps.getCPMergeCommit.outputs.MERGE_COMMIT_SHA }})" ]]; then |
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.
Did we test this line somehow? It looks like there is a few gotchas that could break this.
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.
No, we didn't test it. I can try to do something similar in Public-Test-Repo
to validate this a bit.
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.
Did some testing here, found one potential issue/simplification with the syntax here.
Updated! All the bash is inlined in the workflow now |
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.
Nice! Super simple now.
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging in version: 1.0.63-1🚀
|
🚀 Deployed to production in version: 1.0.64-0🚀
|
Details
More context starting here, but in broad strokes this PR will:
package.json
,package-lock.json
, etc... that contain the higher version (i.e: the branch we're CPing into staging, hence the use of-Xtheirs
).deploy.yml
such that it will deploy to staging when any PR created byOSBotify
is merged by anyone, where before it would only deploy to staging when any PR was merged byOSBotify
.actions-ecosystem/get-merged-pull-request
. PR here.Fixed Issues
Fixes https://github.com/Expensify/Expensify/issues/155229
Tests
StagingDeployCash
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.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.StagingDeployCash
, but PR A was not.StagingDeployCash
.CP Staging
label so the reverts are CP'd to staging. Merge them both to CP them to staging.StagingDeployCash
to run a prod deploy. Verify that the latest staging version is deployed to production.