Use commit SHA instead of PR number for web adhoc build URLs #82240
+10
−5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Explanation of Change
Web adhoc build URLs were using the PR number as the S3 path and subdomain (e.g.
12345.pr-testing.expensify.com). This caused CDN caching issues — when new commits were pushed to a PR branch, the URL stayed the same, so CloudFront served stale cached assets from the previous build.This PR changes both
testBuild.ymlandtestBuildOnPush.ymlto use the commit SHA (APP_REF) instead of the PR number for the S3 deploy path and the web test build URL. Since each new push produces a different commit SHA, the resulting URL is unique per build (e.g.abc123def456...pr-testing.expensify.com), which avoids CDN cache collisions entirely.What changed:
s3://ad-hoc-expensify-cash/web/{COMMIT_SHA}instead ofweb/{PR_NUMBER}https://{COMMIT_SHA}.pr-testing.expensify.comPULL_REQUEST_NUMBERinjection into the JS bundle is unchanged (still used for in-app display)Fixed Issues
$
Tests
testBuild.ymland verify the web link in the PR comment uses the commit SHAtestBuildOnPush.ymlweb link updates to the new commit SHAOffline tests
N/A — CI workflow changes only.
QA Steps
[No QA] — This is a CI-only change affecting GitHub Actions workflows. No application code is modified.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, 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.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
N/A — CI workflow change only
Android: mWeb Chrome
N/A — CI workflow change only
iOS: Native
N/A — CI workflow change only
iOS: mWeb Safari
N/A — CI workflow change only
MacOS: Chrome / Safari
N/A — CI workflow change only
Made with Cursor