-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CP Staging] [No QA] Update artifacts names and add "Rename sourcemaps artifacts" step #48737
[CP Staging] [No QA] Update artifacts names and add "Rename sourcemaps artifacts" step #48737
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
- name: Download all workflow run artifacts | ||
uses: actions/download-artifact@v4 | ||
|
||
- name: Rename web and desktop sourcemaps artifacts before assets upload in order to have unique ReleaseAsset.name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the rename necessary after download? Shouldn't it already be called ./desktop-sourcemaps/desktop-merged-source-map.js.map
at this point?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the "Upload desktop sourcemaps artifact"
step, we upload the file located at ./desktop/dist/www/merged-source-map.js.map
as an artifact named desktop-sourcemaps-artifact
.
When we download the artifact, the path of the extracted file will be ./desktop-sourcemaps-artifact/merged-source-map.js.map
. The artifact's extraction process retains the same file name, but it places it inside the folder named after the artifact.
As a result, we end up with:
./desktop-sourcemaps-artifact/merged-source-map.js.map
and similarly, for the web artifact: ./web-sourcemaps-artifact/merged-source-map.js.map
The reason a rename is necessary after downloading is due to the conflict in file names when uploading release assets. The ReleaseAsset.name
parameter uses the file name, which must be unique. Even though the files are uploaded with different labels (i.e., desktop and web), the underlying file names are the same (merged-source-map.js.map
), causing a naming conflict during the upload process.
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
[CP Staging] [No QA] Update artifacts names and add "Rename sourcemaps artifacts" step (cherry picked from commit 342b1d5) (CP triggered by roryabraham)
cc @roryabraham
Details
I suspect that "Upload artifacts to GitHub Release" step in this job run is failing because some artifact directory names (e.g., desktop-build) are the same as existing directory names.
Also, please check #48737 (comment) and #48737 (comment)
Fixed Issues
$ Broken artifacts upload to release assets https://github.com/Expensify/App/actions/runs/10741911959/job/29794825550
Tests
Merge and CP to test
Offline tests
N/A
QA Steps
N/A
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
N/A
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop