Skip to content

Deploy Checklist: New Expensify 2026-01-21 #80164

Closed

Description

@OSBotify

Release Version: 9.3.6-4
Compare Changes: production...staging
Mobile-Expensify Changes: https://github.com/Expensify/Mobile-Expensify/compare/production...staging

This release contains changes from the following pull requests:

Mobile-Expensify PRs:

Deploy Blockers:

Deployer verifications:

  • I checked Firebase Crashlytics for this release version and verified that this release does not introduce any new crashes. More detailed instructions on this verification can be found here.
  • I checked Firebase Crashlytics for the previous release version and verified that the release did not introduce any new crashes. More detailed instructions on this verification can be found here.
  • I checked GitHub Status and verified there is no reported incident with Actions.

cc @Expensify/applauseleads

Activity

  1. added
    🔐 LockCashDeploys 🔐
    on Jan 21, 2026
  2. self-assigned this
    on Jan 21, 2026
  3. lakchote commented on Jan 22, 2026

    @lakchote
    Contributor
  4. IuliiaHerets commented on Jan 22, 2026

    @IuliiaHerets

    Regression progress is at 98%

    PRs Failing:
    #77928 failed on Web and Native apps with #80197
    #78358 on Web and Native apps with #80192 and #80176
    #78853 faced on Native apps with #79872
    #78882 faced with #80202
    #78921 failed with an original issue, comment
    #79147 failed with #80203, #80204 and with several original issues, comment
    #79359 faced on Web with #80174
    #79547 failed on Native apps with #80170
    #79765 failed on Android with #80206
    #79869 faced on Android #80205
    #79909 failed with #80168

    PRs Untested:
    #77588 pending validation on Native apps
    #79765 pending validation on iOS
    #79987 no QA steps, comment

  5. m-natarajan commented on Jan 22, 2026

    @m-natarajan

    Regression completed

    PRs Failing:
    #77588 failed on Native apps with #80226
    #77928 failed on Web and Native apps with #80197
    #78358 failed on Web and Native apps with #80192 and #80176
    #78853 faced on Native apps with #79872
    #78882 faced with #80202
    #78921 failed with an original issue, comment
    #79147 failed with #80203, #80204 and with several original issues, comment
    #79359 faced on Web with #80174
    #79547 failed on Native apps with #80170
    #79765 failed on Native with #80206
    #79869 faced on Android #80205
    #79909 failed with #80168

    PRs Untested:
    #77588 pending validation on iOS (Tester working on it, waiting for final results)
    #79987 no QA steps, comment

  6. Beamanator commented on Jan 22, 2026

    @Beamanator
    Contributor

    Demoted #80187

  7. lakchote commented on Jan 22, 2026

    @lakchote
    Contributor
  8. cristipaval commented on Jan 22, 2026

    @cristipaval
    Contributor

    Checked off #78358, #80176 and #80179

  9. Beamanator commented on Jan 22, 2026

    @Beamanator
    Contributor

    #80189 fixed by #80252

  10. Beamanator commented on Jan 22, 2026

    @Beamanator
    Contributor

    :shipit:

  11. mallenexpensify commented on Mar 17, 2026

    @mallenexpensify
    Contributor

    @MelvinBot automation failed on this deploy, issues linked in the checklist in the OP weren't updated, ie. Reviewing label wasn't removed, Awaiting Payment label wasn't added and titles weren't updated to add "due for payment". An example issue is #80197

    Why did the automation fail and how can we fix it in the future?

  12. MelvinBot commented on Mar 17, 2026

    @MelvinBot
    Contributor

    🔍 Issue Analysis

    Summary: The App repo's GitHub Actions deploy pipeline (finishReleaseCycle → deploy → postDeployComments) worked correctly — OSBotify successfully posted production deploy comments on all 63 PRs in this release. The issue label/title automation (Reviewing removal, Awaiting Payment addition, "Due for payment" title prefix) is not part of any GitHub Actions workflow in the App repo — it is handled entirely by the MelvinBot external GitHub App, which reacted inconsistently.

    Root Cause: MelvinBot (the external GitHub App, not the GitHub Actions workflows) silently failed to process some PRs' linked issues after seeing the production deploy comments. The failure was partial — MelvinBot successfully updated some issues from the same deploy (e.g., it updated issue #76855 with Awaiting Payment and "[Due for payment 2026-01-29]" in the title) but failed to update others.

    For the specific example of #80197: this was a regression bug found during this deploy's testing. Its fix PR #80602 was deployed to production in a later release (9.3.21-4 on 2026-02-18). OSBotify posted the production deploy comment on PR #80602 at that time, but MelvinBot never reacted to update issue #80197 — even though it successfully updated other issues from that same deploy (e.g., issue #72109 was updated within seconds at 2026-02-18T22:01:27Z).

    How the automation chain works

    1. Deploy checklist is closed → finishReleaseCycle.yml pushes staging to production
    2. deploy.yml triggers → builds/deploys all platforms
    3. postDeployComments.yml → calls markPullRequestsAsDeployed action → OSBotify posts "🚀 Deployed to production" comments on each PR ✅
    4. MelvinBot (external) watches for these deploy comments → reads $ https://github.com/Expensify/App/issues/<ID> from PR bodies → updates linked issues (removes Reviewing, adds Awaiting Payment, prepends [Due for payment YYYY-MM-DD] to title) ❌ This step failed for some issues

    Why it failed

    Since MelvinBot is an external GitHub App (not part of the App repo's codebase or workflows), the exact failure cause is not diagnosable from the App repo alone. Likely causes:

    1. Webhook delivery failure — GitHub may have failed to deliver the issue_comment webhook to MelvinBot for some of the 63+ deploy comments posted in rapid succession
    2. Rate limiting — MelvinBot may have hit GitHub API rate limits while batch-processing many PRs and their linked issues simultaneously
    3. Silent error in MelvinBot — MelvinBot may have encountered an error parsing certain PR bodies or updating certain issues, without any visible logging

    Recommended Fix

    1. Check MelvinBot's logs for the time periods around 2026-01-22T22:24Z (deploy Deploy Checklist: New Expensify 2026-01-21 #80164) and 2026-02-18T22:01Z (deploy Deploy Checklist: New Expensify 2026-02-17 #82716 which contained PR fix: Report title created offline does not match the custom formula until going online #80602). Look for webhook delivery failures, rate limit errors, or unhandled exceptions.

    2. Add a reconciliation/retry mechanism to MelvinBot: after a production deploy, MelvinBot should re-check all PRs in the deploy checklist after a delay (e.g., 30 minutes) to verify that all linked issues were properly updated, and retry any that were missed.

    3. Add observability — MelvinBot should log which issues it successfully updated vs. which it attempted but failed to update after each production deploy, making failures visible rather than silent.

    4. Consider adding the label/title update logic to the App repo's postDeployComments workflow itself rather than relying solely on MelvinBot's webhook reaction. The markPullRequestsAsDeployed action already parses the PR list and could be extended to also update linked issues directly, providing a more reliable path that doesn't depend on webhook delivery.

    Detailed Investigation

    Evidence Chain

    Relevant Code

    • App/.github/workflows/finishReleaseCycle.yml:1-11 — Triggers on StagingDeployCash issue close
    • App/.github/workflows/deploy.yml:912-922 — Calls postDeployComments after successful deploy
    • App/.github/actions/javascript/markPullRequestsAsDeployed/markPullRequestsAsDeployed.ts:98-161 — Only posts comments on PRs, does NOT update issue labels/titles

    Next Steps: The MelvinBot team should investigate MelvinBot's webhook processing logs for the deploy timeframes mentioned above to identify the specific failure mode. Reply with @MelvinBot <your feedback> to refine this analysis.

  13. mallenexpensify commented on Mar 17, 2026

    @mallenexpensify
    Contributor

    @MelvinBot here's another issue that didn't updated. Can you provide additional details based on the issue, PR or associated Deploy Checklist - #84634

  14. MelvinBot commented on Mar 17, 2026

    @MelvinBot
    Contributor

    🔍 Additional Details for Deploy Checklist #84634 (New Expensify 2026-03-09)

    Summary: Deploy checklist #84634 (version 9.3.34-2) was closed on 2026-03-10T18:40:16Z. The GitHub Actions pipeline succeeded completely — OSBotify posted production deploy comments on all 55 PRs at ~18:48 UTC. However, MelvinBot failed to update ANY of the linked issues from this deploy. This is a total failure (not partial like deploy #80164).

    Evidence: Sampled 8 PRs → 0 linked issues were updated

    PR Linked Issue Has Awaiting Payment? Has "Due for payment"? Reviewing removed?
    #83031 #76852 ❌ No ❌ No ❌ Still present
    #82948 #75617 ❌ No ❌ No ❌ Still present
    #83421 #83373 ❌ No ❌ No ❌ Still present
    #81242 #77890 ❌ No ❌ No ❌ Still present
    #84055 #84064 ❌ No ❌ No ❌ Still present
    #83746 #82421 ❌ No ❌ No ❌ Still present
    #80209 #66380 ⚠️ Yes (from Jan 21 deploy) ⚠️ Yes (from Jan 21 deploy) ❌ Still present
    #83785 #66424 ⚠️ Yes (from Mar 16+ deploy) ⚠️ Yes (from Mar 16+ deploy) ❌ Still present

    Issues #66380 and #66424 have Awaiting Payment / "Due for payment" but from different deploys (not #84634). No label events from MelvinBot were found on ANY of these issues after March 10.

    GitHub Actions pipeline: All succeeded ✅

    Key difference from deploy #80164

    This suggests the problem may be getting worse, possibly due to:

    1. MelvinBot was down or degraded on 2026-03-10 around 18:48 UTC
    2. Webhook delivery failure at scale — GitHub may have failed to deliver webhooks for the entire batch of deploy comments
    3. A code regression in MelvinBot that broke its ability to process deploy comments

    Recommendation

    The MelvinBot team should:

    1. Check MelvinBot's uptime/health around 2026-03-10T18:48Z — was MelvinBot receiving any webhooks at that time?
    2. Check GitHub webhook delivery logs for the MelvinBot GitHub App — were the issue_comment webhooks for the deploy comments delivered and acknowledged?
    3. Compare with a working deploy — find a recent deploy where MelvinBot DID work and compare webhook delivery/processing between the two
    4. Consider adding a manual retry mechanism — a command like @MelvinBot reprocess deploy #84634 that re-reads the checklist and updates all missed issues
  15. mallenexpensify commented on Mar 17, 2026

    @mallenexpensify
    Contributor

    @MelvinBot tell me more about "MelvinBot external GitHub App" , where does it live, how I can find details. If I want to reference it when asking for help from you, how should I do it? Do you have access to it?

  16. MelvinBot commented on Mar 17, 2026

    @MelvinBot
    Contributor

    Good question — I should clarify what I meant and correct some terminology from my previous analysis.

    There are two "MelvinBot" systems

    1. melvin-bot[bot] (GitHub App) — This is a GitHub App (App ID 179547) owned by the MelvinBot GitHub user account. It was created in March 2022 and handles the automated label management, auto-assignment, and title updates — including the Awaiting Payment label, Reviewing label removal, "[Due for payment]" title prefix, and "Triggered auto assignment to @user" comments. This is what I was referring to as the "external GitHub App" in my previous analysis.

    2. MelvinBot (Claude Code AI) — This is me, the newer system. I run via GitHub Actions workflows (claude-melvinbot.yml and claude-melvinbot-app.yml) and respond to @MelvinBot mentions to answer questions, analyze issues, and implement fixes using Claude AI.

    Where does the melvin-bot[bot] GitHub App live?

    I do not have access to its source code. The melvin-bot[bot] GitHub App's code is not in the Expensify/App repo, not in the Expensify/Expensify mono-repo, and not in any public Expensify repository I can see. Its source code likely lives in a private repository or an internal service. The App repo's GitHub Actions workflows (like postDeployComments.yml, finishReleaseCycle.yml) only reference melvin-bot[bot] by name (in App/.github/libs/CONST.ts:27) to identify its comments — they don't contain its logic.

    GitHub App details I can see:

    How to reference this when asking me for help

    Since I (the Claude Code AI MelvinBot) do not have access to the melvin-bot[bot] GitHub App's source code or logs, I can only investigate its behavior from the outside (checking what labels it added/removed and when via the GitHub Events API). If you need to debug why melvin-bot[bot] failed to process certain issues:

    1. Check with the team that maintains the melvin-bot[bot] GitHub App — they would have access to its webhook delivery logs, error logs, and source code
    2. You can ask me to check the observable effects of the bot (e.g., "which issues from deploy #X were/weren't updated by melvin-bot?") — I can query GitHub's Events API to see what the bot did or didn't do
    3. For the deploy automation specifically, the chain is: App repo workflows post deploy comments → melvin-bot[bot] reacts to those comments → updates linked issues. The App repo side I can fully investigate; the melvin-bot[bot] side I can only observe from outside

    Correcting my previous analysis

    My previous comment's use of "MelvinBot external GitHub App" was imprecise. To be clear: the App repo's GitHub Actions deploy pipeline (finishReleaseCycle → deploy → postDeployComments) worked correctly. The failure was in the melvin-bot[bot] GitHub App's reaction to the deploy comments — it didn't update some linked issues. Diagnosing why requires access to that App's internal logs, which I don't have.

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

Metadata

Metadata

Labels

StagingDeployCash🔐 LockCashDeploys 🔐

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions