You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2025-06-16] [Due for payment 2025-06-13] Combine testBuild and testBuildHybrid #61935
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
.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.
🚨 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:
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:
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
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:
@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]
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
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:
@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]
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Activity
melvin-bot commentedon May 13, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rojiphil (
External)melvin-bot commentedon May 13, 2025
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.roryabraham commentedon May 13, 2025
For proposals, this is pretty open-ended. I just want to see:
roryabraham commentedon May 13, 2025
Slack convo: https://expensify.slack.com/archives/C01GTK53T8Q/p1747161703782339
gijoe0295 commentedon May 13, 2025
🚨 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?
During development process, sometimes we want to apply changes from a specific PR/branch in
Mobile-Expensifyrepo. But the currenttestBuildworkflow only accepts App repo's PR as input then build the current commit that theMobile-Expensifysubmodule insideApprepo currently points to.One alternative solution is to link that
Mobile-ExpensifyPR in App's PR description then thetestBuildworkflow would automatically search for it, check it out then build accordingly:App/.github/PULL_REQUEST_TEMPLATE.md
Lines 26 to 28 in 00d061c
App/.github/workflows/testBuildHybrid.yml
Lines 137 to 140 in 6281a8a
But as we no longer need standalone builds, we can clean up
testHybridAppworkflow now.What changes do you think we should make in order to solve the problem?
HYBRIDAPP_PULL_REQUEST_NUMBERinput/param (besides the current App'sPULL_REQUEST_NUMBERinput)getOldDotPRandgetOldDotRefjobs fromtestHybridBuildtotestBuild. We don't needgetNewDotRefjob because we already do that in `testBuild:App/.github/workflows/testBuild.yml
Line 57 in 6be740c
We need to remove the usages of
github.event.inputs.DISPATCHED_MANUALLYbecause now the workflow is triggered manually while previously we triggeredtestHybridBuildfromtestBuild. For example this line.Bring the
androidHybridandiosHybridjobs fromtestHybridBuildtotestBuild. Replace all instances ofneeds.getNewDotRef.outputs.REFwithneeds.prep.REF; andAPP_PULL_REQUEST_NUMBERwithPULL_REQUEST_NUMBERAdd
androidHybridandiosHybridjobs to the dependencies ofpostGithubCommentApp/.github/workflows/testBuild.yml
Line 178 in 00d061c
https://github.com/Expensify/App/blob/6be740c27ab35ac82de1b112d4b4c6c4d51e272c/.github/workflows/testBuild.yml#L508
buildHybridAppsand its usageApp/.github/workflows/testBuild.yml
Line 163 in 00d061c
App/.github/workflows/testBuild.yml
Line 178 in 00d061c
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
testBuildworkflow withoutHYBRIDAPP_PULL_REQUEST_NUMBERtestBuildworkflow withoutHYBRIDAPP_PULL_REQUEST_NUMBERbut withMobile-ExpensifyPR in App PR descriptiontestBuildworkflow withHYBRIDAPP_PULL_REQUEST_NUMBERtestBuildworkflow withANDROIDandIOSas false to skip hybrid buildsWhat alternative solutions did you explore? (Optional)
Mentioned in Root cause section
10 remaining items
[-]Combine testBuild and testBuildHybrid[/-][+][Due for payment 2025-06-13] Combine testBuild and testBuildHybrid[/+]melvin-bot commentedon Jun 6, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jun 6, 2025
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:
testBuildandtestBuildHybrid#62058If no regressions arise, payment will be issued on 2025-06-13. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jun 6, 2025
@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]
gijoe0295 commentedon Jun 7, 2025
@lydiabarclay Based on #61935 (comment), we can handle payment now.
[-][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[/+]melvin-bot commentedon Jun 9, 2025
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:
testBuildandtestBuildHybrid#62058If no regressions arise, payment will be issued on 2025-06-16. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jun 9, 2025
@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]
lydiabarclay commentedon Jun 9, 2025
@gijoe0295 manual offer sent!
job link
gijoe0295 commentedon Jun 10, 2025
@lydiabarclay Offer accepted
lydiabarclay commentedon Jun 10, 2025
Payment Summary
Contributor: @gijoe0295 paid $250 via Upwork
✅ No regression test needed