Skip to content

Incorrect CP messages are showing up #46442

Closed

Description

@luacmartins

Problem

We ran a CP for this PR, but it seems like we got duplicated CP messages added to two different issues for the same staging version.

It seems like all issues in the checklist got the cherry pick comment, instead of the deploy one

Additionally, it seems like we auto-assigned Chirag to the checklist for whatever reason.
Screenshot 2024-07-29 at 3 57 02 PM

Solution

Investigate

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Jul 29, 2024
  2. melvin-bot commented on Jul 29, 2024

    @melvin-bot

    Triggered auto assignment to @greg-schroeder (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. roryabraham commented on Jul 29, 2024

    @roryabraham
    Contributor

    The problem is that this variable only looks at the tag for the deploy. However, sometimes deploys are "batched" with deploys because of this cancel-in-progress key.

    So we really need to look at another piece of data to determine if a PR is being CP'd or deployed via the normal process.

  4. roryabraham commented on Jul 31, 2024

    @roryabraham
    Contributor

    Got #46535 prettymuch ready, but I'd like to wait for some CP'd merge commits to appear on staging so I can double-check what the commit messages look like before I put that PR in for review

  5. roryabraham commented on Aug 1, 2024

    @roryabraham
    Contributor

    Sample commit message for a CP'd PR, pulled from staging log (had to do it after CP'ing some stuff because full staging deploys delete these commits and replace them with whatever's on main)

    Merge pull request #46679 from neonbhai/selection-dropdown-fix
        
    Fix: Dropdown button is not disabled when no selection is made
    (cherry picked from commit 7b1b260ee9ed71e253e25642f95d362d70259368)
    
  6. greg-schroeder commented on Aug 5, 2024

    @greg-schroeder
    Contributor

    PR still in progress

  7. roryabraham commented on Aug 5, 2024

    @roryabraham
    Contributor

    ok, I've gotten this to the point where we can see which PRs were CP'd and in what versions. However, now we need a way to determine who actually triggered the CP workflow.

    I tried listing cherryPick workflow runs but it doesn't seem like there's really a way to associate runs with a version. meanwhile, all platformDeploy runs are triggered by OSBotify

    So my best idea right now is to try and update the cherryPick workflow to run the CP commits as the deployer, not OSBotify. But that could have all kinds of side-effects that would need to be carefully considered 😬

  8. melvin-bot commented on Aug 8, 2024

    @melvin-bot

    @greg-schroeder, @roryabraham Whoops! This issue is 2 days overdue. Let's get this updated quick!

  9. roryabraham commented on Aug 8, 2024

    @roryabraham
    Contributor

    update the cherryPick workflow to run the CP commits as the deployer, not OSBotify

    Looks like we're already trying to do this, but it doesn't look like it's working: 8d2f90b

  10. roryabraham commented on Aug 8, 2024

    @roryabraham
    Contributor

    ok, chatted with @francoisl and we came up with a clever solution. PR ready for review

  11. roryabraham commented on Aug 8, 2024

    @roryabraham
    Contributor

    PR merged

  12. greg-schroeder commented on Aug 14, 2024

    @greg-schroeder
    Contributor

    Thanks @roryabraham! Awaiting deploy to staging -> prod

  13. roryabraham commented on Aug 23, 2024

    @roryabraham
    Contributor

    This should be fixed now

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

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.ReviewingHas a PR in reviewWeeklyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions