-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[No QA] Fix verifyPodfile script #43154
Conversation
@Julesssss 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] |
@@ -0,0 +1,35 @@ | |||
#!/usr/bin/env ruby | |||
|
|||
# This file is a lightweight port of the `pod ipc spec` command. |
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.
worth noting that the upstream pod ipc spec
command this is based on hasn't changed in over 8 years: https://github.com/CocoaPods/CocoaPods/blob/028af0bdfc56df9e1b221a59cf36306690cf2ce4/lib/cocoapods/command/ipc/spec.rb
so this should hopefully be pretty stable code
require 'json' | ||
|
||
# Require 3rd party functions needed to parse podspecs. This code is copied from ios/Podfile | ||
def node_require(script) |
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.
alternate solution: DRY this up between this file and the Podfile. Didn't go for this because it will make RN upgrades harder. The more similar our Podfile is to the standard template, the easier.
alternate solution 2: import the Podfile
directly with load '../../ios/Podfile'
. I like this, but I was getting errors like undefined method 'platform'
, and it wasn't obvious all the things I would have to require in order to make this script understand how to parse a Podfile. I would've though just require 'cocoapods'
would've been enough, but I guess not.
edit: alternate solution 2 is not possible without eval
ing the Podfile, which we don't want to do.
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.
Thanks for sharing, current solution seems fine for now.
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.
As usual, lets skip checklist and verify once merged
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
✋ 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 production by https://github.com/luacmartins in version: 1.4.81-11 🚀
|
Details
The
verifyPodfile
script has been broken for a while, but it just didn't have correct error reporting.Fixed Issues
$ n/a
Tests
./.github/scripts/verifyPodfile.sh
.Offline tests
None
QA Steps
None.
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
Passing:
Failing: