Ensure Podfile.lock is synced with project#13821
Conversation
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
recheck |
Reviewer Checklist
Screenshots/Videos |
|
@redstar504 @roryabraham I'm thinking we can skip the check if there are no changes to the |
|
@mollfpr Sounds like a good idea. I've added a commit to include that logic. I also tested this in a runner on my fork: redstar504#6 |
bae6324 to
58e4cc2
Compare
26c4c1f to
a106f81
Compare
|
@redstar504 Great work on the current update! Let me know when it's ready to review and test. |
|
@mollfpr You can review/test now. I added a couple checks to help catch some testing issues. |
|
@redstar504 We should give an example of what package that have auto-linked on the test case. |
mollfpr
left a comment
There was a problem hiding this comment.
LGTM and test well again 👍
|
Updated screenshot for add, update and remove package scenario. All yours @amyevans @roryabraham |
amyevans
left a comment
There was a problem hiding this comment.
Still testing but the code lgtm. @roryabraham do you want the chance to review?
Co-authored-by: Amy Evans <amy@expensify.com>
|
I have completed the refactors notwithstanding our discussion on the removal check. |
1529df5 to
e9194f3
Compare
roryabraham
left a comment
There was a problem hiding this comment.
This looks way better. Haven't tested but this code looks good to me. Thanks for your flexibility in finding another solution, happy we landed with something much faster than the last draft.
|
All yours @amyevans |
amyevans
left a comment
There was a problem hiding this comment.
Question for my own understanding: how are jq and yq available in the script? Locally I installed with homebrew, but I don't understand how they're provided to the CI runner.
Looks good though, thanks @redstar504 for sticking with it and @mollfpr and @roryabraham for your thorough reviews and helpful improvements!
|
@amyevans The jq and yq packages are installed by default in the macos
runners. Glad we were able to collaborate on an effective solution.
…On Wed, Jan 4, 2023 at 3:23 PM Amy Evans ***@***.***> wrote:
***@***.**** approved this pull request.
Question for my own understanding: how are jq and yq available in the
script? Locally I installed with homebrew, but I don't understand how
they're provided to the CI runner.
Looks good though, thanks @redstar504 <https://github.com/redstar504> for
sticking with it and @mollfpr <https://github.com/mollfpr> and
@roryabraham <https://github.com/roryabraham> for your thorough reviews
and helpful improvements!
—
Reply to this email directly, view it on GitHub
<#13821 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKAEXJOQGPN3SVZ4YTANSLWQYA6BANCNFSM6AAAAAATIUJJ24>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
Okay cool, confirmed that in the docs as well. Merging! |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
@redstar504 @roryabraham @amyevans Can you please QA this internally |
|
@mvtglobally Yep, I'll handle QA. Thanks! |
|
@amyevans did you get a chance to QA this? |
|
@luacmartins Sorry for the delay! I'm handling it now in #14059 and will update the QA checklist when I'm done. |
|
🚀 Deployed to production by @luacmartins in version: 1.2.49-0 🚀
|













cc @mollfpr @roryabraham @amyevans
Details
This PR updates the verifyPodfile.sh workflow script to catch uncommitted Podfile.lock changes.
In addition to all of the changes we've discussed in the issue, it:
main_branch_podspecs - feature_branch_podspecs) are ultimately evaluated against the feature branch's Podfile.lock at the end of the script.verifyPodfile.shscript. The first flag specifies the branch to compare against for removals. It should beorigin/mainin the production version. Since the GitHub checkout action only fetches the remote refs, it checks out the package-lock.json from origin/main. This flag eases testing of the script on development environments where you would likely be comparing againstmain.-vfor verbosity. It simply outputs the podspecs from the main branch, feature branch, and finally the subtracted packages between both to ease debugging. I have removed that argument in this PR as it was mostly for solving issues during testing.Fixed Issues
$ #13397
PROPOSAL: #13397 (comment)
Tests
pod install./.github/scripts/verifyPodfile.shnpx pod-installcommand, or switch to ios directory and runpod install.Example packages:
react-native-image-pickerreact-native-image-pan-zoomreact-native-render-htmlI have also completed a sequence of tests in a Github runner in an example PR on my fork. Each commit to this branch corresponds to a stage of the Podfile.lock validation that passes or fails. See here.
Offline tests
Not relevant to the proposed changes.
QA Steps
pod installafter completing these commands.package.jsonandpackage-json.lockto the staging branch.npx pod-installcommand or switch to theiosdirectory and runpod install.Example packages:
react-native-image-pickerreact-native-image-pan-zoomreact-native-render-htmlPR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.Screenshots/Videos
Not relevant to proposed changes.