Skip to content

[Hold for Payment on July 22] OSBotify falsely marks pull requests as cherry-picks instead of standard deploys #3383

Closed

Description

@roryabraham

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:

  1. Ensure that the open StagingDeployCash checklist issue does not have the 🔐 LockCashDeploys 🔐 label.
  2. Merge a pull request.
  3. 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:

image

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:

image

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

Activity

  1. added
    External
    on Jun 4, 2021
  2. self-assigned this
    on Jun 4, 2021
  3. MelvinBot commented on Jun 4, 2021

    @MelvinBot
    Contributor

    Triggered auto assignment to @JmillsExpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

  4. roryabraham commented on Jun 4, 2021

    @roryabraham
    ContributorAuthor

    This can be worked on by an external contributor, but they'll need help from an Expensifier to test their PR.

  5. roryabraham commented on Jun 4, 2021

    @roryabraham
    ContributorAuthor

    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.

  6. 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
  7. JmillsExpensify commented on Jun 9, 2021

    @JmillsExpensify
    Contributor

    Sorry @roryabraham I've been super busy with an internal project. Picking this one up tomorrow.

  8. roryabraham commented on Jun 9, 2021

    @roryabraham
    ContributorAuthor

    No worries, this one is not that urgent.

  9. JmillsExpensify commented on Jun 10, 2021

    @JmillsExpensify
    Contributor

    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.

  10. JmillsExpensify commented on Jun 22, 2021

    @JmillsExpensify
    Contributor

    Increased the payout on Upwork. Hopefully we'll get some proposals here soon!

  11. attaradev commented on Jun 25, 2021

    @attaradev
    Contributor

    @JmillsExpensify and @roryabraham I can investigate this.

  12. attaradev commented on Jun 25, 2021

    @attaradev
    Contributor

    My proposal

    • Create a separate job for checking the presence of the lock which will run first, and set that as the output value for the job
    • Pass the output value as the IS_CHERRY_PICK for the comment job

    @roryabraham what do you think?

  13. 14 remaining items

  14. parasharrajat commented on Jul 13, 2021

    @parasharrajat
    Member

    @roryabraham Please update here if regression is fixed. Thanks.

  15. roryabraham commented on Jul 13, 2021

    @roryabraham
    ContributorAuthor

    Hey @parasharrajat! The regression seems to have been fixed, but in order to really test if this issue is complete, we'll need to:

    1. Ensure that the open StagingDeployCash checklist issue does not have the 🔐 LockCashDeploys 🔐 label.
    2. Merge a pull request.
    3. Once the staging deploy for that pull request has begun, add the 🔐 LockCashDeploys 🔐 label to the open StagingDeployCash
    4. Wait for the staging deploy to finish, and verify that it gets a "deployed to staging" comment and not a "cherry-picked to staging" comment.
  16. roryabraham commented on Jul 13, 2021

    @roryabraham
    ContributorAuthor

    @parasharrajat We can sync 1:1 and test that on the next open checklist?

  17. parasharrajat commented on Jul 13, 2021

    @parasharrajat
    Member

    Sure. Thanks

  18. roryabraham commented on Jul 15, 2021

    @roryabraham
    ContributorAuthor

    Testing with #4096

  19. roryabraham commented on Jul 15, 2021

    @roryabraham
    ContributorAuthor

    Reopening because there were some very weird and unrelated failures in the standard deploy from the dummy PR.

  20. roryabraham commented on Jul 15, 2021

    @roryabraham
    ContributorAuthor

    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"

  21. roryabraham commented on Jul 16, 2021

    @roryabraham
    ContributorAuthor

    QA passed, closing this out!

  22. 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
  23. parasharrajat commented on Jul 22, 2021

    @parasharrajat
    Member

    @JmillsExpensify Any update on Upwork? Thanks

  24. JmillsExpensify commented on Jul 23, 2021

    @JmillsExpensify
    Contributor

    Yep! Closed out. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

DailyExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions