-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[Hold for Payment on July 22] OSBotify falsely marks pull requests as cherry-picks instead of standard deploys #3383
Comments
Triggered auto assignment to @JmillsExpensify ( |
This can be worked on by an external contributor, but they'll need help from an Expensifier to test their PR. |
Ultimately this race condition is occurring because right here we are making the incorrect assumption that, when a staging deploy completes, if the 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 |
Sorry @roryabraham I've been super busy with an internal project. Picking this one up tomorrow. |
No worries, this one is not that urgent. |
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. |
Increased the payout on Upwork. Hopefully we'll get some proposals here soon! |
@JmillsExpensify and @roryabraham I can investigate this. |
My proposal
@roryabraham what do you think? |
@mikeattara When would this job execute? |
I can start working on it immediately, @roryabraham |
Sorry @mikeattara, I don't think your proposed solution will work. Placing a separate job at the start of the
|
I am not sure about the cherry-picking concept here. What I understand so far is that in the following conditions a PR is CP.
So I can't think of any solution other than what you have posted above. So If we follow your solution then this would be achieved as below
For Pairs => [added, removed(if not present then take as now)]. We will be needing pagination https://octokit.github.io/rest.js/v18#pagination as well. if you can post other possible solutions then I can find the optimal one out of those. |
@parasharrajat I think your solution would work well, with one modification:
|
@parasharrajat Want to take on this issue and #3662 at the same time? 🙃 Since we need pagination for this, we might as well build a more general-purpose paginator for the GitHub API |
Oh yeah. So I think I need to add one more step that is PR has a CP staging label before Pr was merged then Its CP. |
But it seems that https://octokit.github.io/rest.js/v18#pagination this gives all the results autmatically. Let me read that issue and see what is required there. |
Well, if a PR is merged with the |
OK, then your point makes sense. I told you I am not yet fully familiar with CP flow. 😉 |
@JmillsExpensify Let's get @parasharrajat hired for this on Upwork. |
Hired! Looks like we are testing the PR on the latest QA issue, so I'll make sure to pay you out as soon as that goes through as well! Or let me know if I've misunderstood the status! |
As stated in the PR, this did cause a regression that will need to be fixed. |
@roryabraham Please update here if regression is fixed. Thanks. |
Hey @parasharrajat! The regression seems to have been fixed, but in order to really test if this issue is complete, we'll need to:
|
@parasharrajat We can sync 1:1 and test that on the next open checklist? |
Sure. Thanks |
Testing with #4096 |
Reopening because there were some very weird and unrelated failures in the standard deploy from the dummy PR. |
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" |
QA passed, closing this out! |
@JmillsExpensify Any update on Upwork? Thanks |
Yep! Closed out. Thank you |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
StagingDeployCash
checklist issue does not have the🔐 LockCashDeploys 🔐
label.🔐 LockCashDeploys 🔐
label to the openStagingDeployCash
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.
Platform:
Github only
Version Number:
1.0.63-0
Logs: https://github.com/Expensify/Expensify.cash/actions/runs/906930849
View all open jobs on Upwork
The text was updated successfully, but these errors were encountered: