You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Hold for Payment on July 22] OSBotify falsely marks pull requests as cherry-picks instead of standard deploys #3383
Once the staging deploy for that pull request has begun, add the 🔐 LockCashDeploys 🔐 label to the open StagingDeployCash
Expected Result:
Once the staging deploy for the pull request has completed, OSBotify should comment on the pull request saying that it was "Deployed to staging", with the normal table and such, like this:
Actual Result:
Once the staging deploy for the pull request has completed, OSBotify comments on the pull request saying that it was Cherry Picked to staging, like this:
Workaround:
Not applicable - it's just a misleading comment and doesn't affect app usability.
Ultimately this race condition is occurring because right here we are making the incorrect assumption that, when a staging deploy completes, if the StagingDeployCash is locked, then the PR that was deployed must have been cherry-picked.
There are a number of potential ways one could determine if the deploy was the result of a normal staging deploy vs a cherry-pick, and I'm not sure which is best. One idea would be to check if the StagingDeployCash was locked at the time the pull request was merged.
changed the title [-]OSBotify falsely marks pull requests as cherry-picks instead of standard deploys.[/-][+]OSBotify falsely marks pull requests as cherry-picks instead of standard deploys[/+]on Jun 4, 2021
If you are interested in working on this issue, please post directly in this issue with a proposal with the technical explanation of the changes you will make. Somebody from Expensify will review your proposal, and if your proposal is accepted, you will be hired in Upwork for the job.
The dominos are lined up. We just need to wait for this deploy to finish and then verify that this PR gets the "Deployed to staging" comment instead of "Cherry-picked to staging"
changed the title [-]OSBotify falsely marks pull requests as cherry-picks instead of standard deploys[/-][+][Hold for Payment on July 22] OSBotify falsely marks pull requests as cherry-picks instead of standard deploys[/+]on Jul 20, 2021
Activity
MelvinBot commentedon Jun 4, 2021
Triggered auto assignment to @JmillsExpensify (
External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.roryabraham commentedon Jun 4, 2021
This can be worked on by an external contributor, but they'll need help from an Expensifier to test their PR.
roryabraham commentedon Jun 4, 2021
Ultimately this race condition is occurring because right here we are making the incorrect assumption that, when a staging deploy completes, if the
StagingDeployCashis locked, then the PR that was deployed must have been cherry-picked.There are a number of potential ways one could determine if the deploy was the result of a normal staging deploy vs a cherry-pick, and I'm not sure which is best. One idea would be to check if the
StagingDeployCashwas locked at the time the pull request was merged.[-]OSBotify falsely marks pull requests as cherry-picks instead of standard deploys.[/-][+]OSBotify falsely marks pull requests as cherry-picks instead of standard deploys[/+]JmillsExpensify commentedon Jun 9, 2021
Sorry @roryabraham I've been super busy with an internal project. Picking this one up tomorrow.
roryabraham commentedon Jun 9, 2021
No worries, this one is not that urgent.
JmillsExpensify commentedon Jun 10, 2021
Done! Upwork job is here: https://www.upwork.com/jobs/~017e5b710bf91a779e
A note for contributors:
If you are interested in working on this issue, please post directly in this issue with a proposal with the technical explanation of the changes you will make. Somebody from Expensify will review your proposal, and if your proposal is accepted, you will be hired in Upwork for the job.
JmillsExpensify commentedon Jun 22, 2021
Increased the payout on Upwork. Hopefully we'll get some proposals here soon!
attaradev commentedon Jun 25, 2021
@JmillsExpensify and @roryabraham I can investigate this.
attaradev commentedon Jun 25, 2021
My proposal
IS_CHERRY_PICKfor the comment job@roryabraham what do you think?
14 remaining items
parasharrajat commentedon Jul 13, 2021
@roryabraham Please update here if regression is fixed. Thanks.
roryabraham commentedon Jul 13, 2021
Hey @parasharrajat! The regression seems to have been fixed, but in order to really test if this issue is complete, we'll need to:
StagingDeployCashchecklist issue does not have the🔐 LockCashDeploys 🔐label.🔐 LockCashDeploys 🔐label to the openStagingDeployCashroryabraham commentedon Jul 13, 2021
@parasharrajat We can sync 1:1 and test that on the next open checklist?
parasharrajat commentedon Jul 13, 2021
Sure. Thanks
roryabraham commentedon Jul 15, 2021
Testing with #4096
roryabraham commentedon Jul 15, 2021
Reopening because there were some very weird and unrelated failures in the standard deploy from the dummy PR.
roryabraham commentedon Jul 15, 2021
The dominos are lined up. We just need to wait for this deploy to finish and then verify that this PR gets the "Deployed to staging" comment instead of "Cherry-picked to staging"
roryabraham commentedon Jul 16, 2021
QA passed, closing this out!
[-]OSBotify falsely marks pull requests as cherry-picks instead of standard deploys[/-][+][Hold for Payment on July 22] OSBotify falsely marks pull requests as cherry-picks instead of standard deploys[/+]parasharrajat commentedon Jul 22, 2021
@JmillsExpensify Any update on Upwork? Thanks
JmillsExpensify commentedon Jul 23, 2021
Yep! Closed out. Thank you