[NoQA] Fix: reuse concurrency group for testBuild and testBuildOnPush#81520
[NoQA] Fix: reuse concurrency group for testBuild and testBuildOnPush#81520LukasMod wants to merge 1 commit intoExpensify:mainfrom
Conversation
|
@LukasMod I am not sure about this change, I think for the adhocs on Prs we prefer to get the builds asap but with this it might cause them to be queued behind bunch of prs merged to main, right? I think it is better to use potentially slightly outdated fingerprint but not wait for the builds from push to main |
rafecolton
left a comment
There was a problem hiding this comment.
Is this still needed now that we are using the commit hash instead of relying on the fingerprint?
|
@rafecolton @mountiny true, I would treat it more as a hotfix and figure out something better to include always identifier in artifact name. Pain point is that first build with new fingerprint is without identifier. Prepare for longer story, I will try to explain how the workflow generally works for adhocs first: First Build Flow (No Cached Artifact Exists) - New Native Changes
Second Build
uploads stays the same, just diff naming Now edge case (but realistic one). We have new native changes on main branch, just merged.
There is a step, One potential solution could be to run Ideally, I think we should rethink how ad-hoc uploads work and adjust them so they always include some identifier (like commitSha), while still allowing the creation of a base build (zip with just fingerprint) for other flows. Ideally only once, without polluting the remote cache with multiple ZIPs that won’t be reused anyway, since the name is updated later and the check is based on the fingerprint rather than identifier + fingerprint. I’m thinking about something like this:
With this, whole edge case could looks like this:
I think that solution could be related to WDYT? cc @adhorodyski |
|
I am curious to hear from the Rock team on this one @adhorodyski @rinej seems like something for them to consider how to handle such edge case |
|
If the scenario described in this PR starts happening too often, we can use this PR to block parallel builds between the two workflows. It can serve as a Plan B. In the meantime, I will try to prepare a proper solution to handle this from GitHub Actions, as mentioned in #81520 (comment) |
|
Closing this one as we have proper fix here: #82391 |
Explanation of Change
Reuse the same group for both
testBuildandtestBuildOnPushworkflows to avoid scenario where manual adhoc in some cases can run parallel withtestBuildOnPushand result same fingerprint.Fixed Issues
Follow up to #78772
PROPOSAL:
Tests
Offline tests
QA Steps
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari