Skip to content

[Due for payment 2025-06-16] [Due for payment 2025-06-13] Combine testBuild and testBuildHybrid #61935

Closed

Description

@roryabraham

Problem

.github/workflows/testBuild.yml and .github/workflows/testBuildHybrid.yml are both used to run AdHoc test builds. However, testBuild builds NewDot iOS and Android standalone, while testBuildHybrid builds HybridApp iOS and Android.

In general, we want people testing HybridApp. Furthermore, if there are co-dependent PRs in E/App and E/Mobile-Expensify, you can use testBuildHybrid to create a test build with both branches, but you can't with testBuild. This isn't obvious unless you know, and I've seen it lead to confusion before.

Solution

Recombine testBuildHybrid into testBuild. Drop the iOS and Android standalone builds. Just build Hybrid.

Issue OwnerCurrent Issue Owner: @lydiabarclay

Activity

  1. self-assigned this
    on May 13, 2025
  2. added
    External
    Weekly
    Bug
    on May 13, 2025
  3. added
    Help Wanted
    on May 13, 2025
  4. melvin-bot commented on May 13, 2025

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @rojiphil (External)

  5. added
    Daily
    and removed
    Weekly
    on May 13, 2025
  6. melvin-bot commented on May 13, 2025

    @melvin-bot

    Triggered auto assignment to @lydiabarclay (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.

  7. roryabraham commented on May 13, 2025

    @roryabraham
    ContributorAuthor

    For proposals, this is pretty open-ended. I just want to see:

    • demonstrated understanding of the scope of work
    • A brief description of what will need to be ported into testBuild
    • A description of what can be dropped from testBuild
    • Testing plan
  8. roryabraham commented on May 13, 2025

    @roryabraham
    ContributorAuthor
  9. gijoe0295 commented on May 13, 2025

    @gijoe0295
    Contributor

    🚨 Edited by proposal-police: This proposal was edited at 2025-05-13 21:58:25 UTC.

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Combine testBuild and testBuildHybrid workflows

    What is the root cause of that problem?

    Demonstrated understanding of the scope of work

    During development process, sometimes we want to apply changes from a specific PR/branch in Mobile-Expensify repo. But the current testBuild workflow only accepts App repo's PR as input then build the current commit that the Mobile-Expensify submodule inside App repo currently points to.

    One alternative solution is to link that Mobile-Expensify PR in App's PR description then the testBuild workflow would automatically search for it, check it out then build accordingly:

    If you want to trigger adhoc build of hybrid app from specific Mobile-Expensify PR please link it like this:
    MOBILE-EXPENSIFY: https://github.com/Expensify/Mobile-Expensify/pull/<PR-number>

    const regex = /MOBILE-EXPENSIFY:\s*https:\/\/github.com\/Expensify\/Mobile-Expensify\/pull\/(?<prNumber>\d+)/;
    const found = body.match(regex)?.groups?.prNumber || "";
    return found.trim();

    But as we no longer need standalone builds, we can clean up testHybridApp workflow now.

    What changes do you think we should make in order to solve the problem?

    A brief description of what will need to be ported into testBuild

    • Add the HYBRIDAPP_PULL_REQUEST_NUMBER input/param (besides the current App's PULL_REQUEST_NUMBER input)
    • Bring the getOldDotPR and getOldDotRef jobs from testHybridBuild to testBuild. We don't need getNewDotRef job because we already do that in `testBuild:

    - name: Check if pull request number is correct

    We need to remove the usages of github.event.inputs.DISPATCHED_MANUALLY because now the workflow is triggered manually while previously we triggered testHybridBuild from testBuild. For example this line.

    • Bring the androidHybrid and iosHybrid jobs from testHybridBuild to testBuild. Replace all instances of needs.getNewDotRef.outputs.REF with needs.prep.REF; and APP_PULL_REQUEST_NUMBER with PULL_REQUEST_NUMBER

    • Add androidHybrid and iosHybrid jobs to the dependencies of postGithubComment

    needs: [prep, desktop, web, buildHybridApps]

    https://github.com/Expensify/App/blob/6be740c27ab35ac82de1b112d4b4c6c4d51e272c/.github/workflows/testBuild.yml#L508

    A description of what can be dropped from testBuild

    • Remove the buildHybridApps and its usage

    buildHybridApps:

    needs: [prep, desktop, web, buildHybridApps]

    ANDROID_LINK: ${{ needs.androidHybrid.outputs.S3_APK_PATH }}
    IOS_LINK: ${{ needs.iosHybrid.outputs.IOS_PATH }}
    ANDROID: ${{ needs.androidHybrid.result }}
    IOS: ${{ needs.iosHybrid.result }}
    

    What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

    • Run the testBuild workflow without HYBRIDAPP_PULL_REQUEST_NUMBER
    • Run the testBuild workflow without HYBRIDAPP_PULL_REQUEST_NUMBER but with Mobile-Expensify PR in App PR description
    • Run the testBuild workflow with HYBRIDAPP_PULL_REQUEST_NUMBER
    • Run the testBuild workflow with ANDROID and IOS as false to skip hybrid builds

    What alternative solutions did you explore? (Optional)

    Mentioned in Root cause section

  10. 10 remaining items

  11. changed the title [-]Combine testBuild and testBuildHybrid[/-] [+][Due for payment 2025-06-13] Combine testBuild and testBuildHybrid[/+] on Jun 6, 2025
  12. melvin-bot commented on Jun 6, 2025

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  13. removed
    Reviewing
    on Jun 6, 2025
  14. melvin-bot commented on Jun 6, 2025

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.60-2-staging and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2025-06-13. 🎊

    For reference, here are some details about the assignees on this issue:

    • @rojiphil requires payment through NewDot Manual Requests
    • @gijoe0295 requires payment (Needs manual offer from BZ)
  15. melvin-bot commented on Jun 6, 2025

    @melvin-bot

    @rojiphil @lydiabarclay @rojiphil The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

  16. gijoe0295 commented on Jun 7, 2025

    @gijoe0295
    Contributor

    @lydiabarclay Based on #61935 (comment), we can handle payment now.

  17. added
    Weekly
    and removed
    Weekly
    on Jun 9, 2025
  18. changed the title [-][Due for payment 2025-06-13] Combine testBuild and testBuildHybrid[/-] [+][Due for payment 2025-06-16] [Due for payment 2025-06-13] Combine testBuild and testBuildHybrid[/+] on Jun 9, 2025
  19. melvin-bot commented on Jun 9, 2025

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.62-0 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2025-06-16. 🎊

    For reference, here are some details about the assignees on this issue:

    • @rojiphil requires payment through NewDot Manual Requests
    • @gijoe0295 requires payment (Needs manual offer from BZ)
  20. melvin-bot commented on Jun 9, 2025

    @melvin-bot

    @rojiphil @lydiabarclay @rojiphil The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

  21. lydiabarclay commented on Jun 9, 2025

    @lydiabarclay
    Contributor

    @gijoe0295 manual offer sent!
    job link

  22. gijoe0295 commented on Jun 10, 2025

    @gijoe0295
    Contributor

    @lydiabarclay Offer accepted

  23. lydiabarclay commented on Jun 10, 2025

    @lydiabarclay
    Contributor

    Payment Summary

    Contributor: @gijoe0295 paid $250 via Upwork

    ✅ No regression test needed

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

Metadata

Metadata

Labels

Awaiting PaymentBugExternalWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions