Repository navigation
[No QA] Align remote build workflows with testBuild ref resolution - #95407
Conversation
|
@marufsharifi Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 02732c8944
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
@marufsharifi No C+ review needed here |
mountiny
left a comment
There was a problem hiding this comment.
@MelvinBot review
@codex review
ReviewSolid, well-scoped refactor. The rename + shared ✅ What I verified
🔸 Worth confirming (non-blocking)These three workflows now run untrusted App PR code with a privileged token. Previously 💬 Minor nit
Since this is a CI-only change, I couldn't exercise the dispatch paths end-to-end — the test steps in the PR body (dispatch with/without an App PR URL, and with a |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.4.29-0 🚀
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.4.31-0 🚀
|
|
🚀 Deployed to production by https://github.com/grgia in version: 9.4.31-0 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
The three remote build workflows (
remote-build-android.yml,remote-build-ios.yml, andpublishReactNativeAndroidArtifacts.yml) previously only resolved the Mobile-Expensify ref and always checked out the triggering ref for Expensify/App. This meant they could not build a specific App PR head the waytestBuild.ymlalready did, so the two paths were inconsistent.This PR aligns them by teaching the shared reusable workflow to resolve the App ref as well:
resolveMobileExpensifyRef.yml→resolveBuildRefs.ymland extended it to resolve both refs a build should check out:APP_REF: the head SHA of the App PR (fromAPP_PULL_REQUEST_URL), or empty to fall back to the triggering ref.MOBILE_EXPENSIFY_REF: unchanged resolution order (explicit ME PR URL →MOBILE-EXPENSIFY:entry in the App PR body → pinned submodule commit).resolveBuildRefs.yml, renaming the jobgetMobileExpensifyRef→resolveRefsand passing the resolvedAPP_REFto theCheckoutstep so they build the correct App PR head.testBuild.ymlby removing the inline App PR number/head-ref resolution from theprepjob and delegating it to the sharedresolveBuildRefs.ymlworkflow (with a|| 'main'fallback so test builds still default to the latest NewDot).The net result is a single reusable workflow that resolves both the App and Mobile-Expensify refs, used consistently across
testBuildand all remote build workflows.Fixed Issues
$ #95038
$ #95387
PROPOSAL:
Tests
This is a CI/GitHub Actions-only change with no runtime app impact.
testBuild.yml) with an App PR URL and verify theresolveRefsjob resolvesAPP_REFto the PR head SHA and the build checks out that commit.main.Checkoutstep uses the resolvedAPP_REF.MOBILE-EXPENSIFY:entry in the App PR body (or an explicit ME PR URL) and verifyMOBILE_EXPENSIFY_REFstill resolves and the Mobile-Expensify submodule is checked out to that ref.Offline tests
N/A — CI workflow change only.
QA Steps
N/A — this PR only modifies GitHub Actions workflows and has no user-facing or runtime impact
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)Avatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.