-
Notifications
You must be signed in to change notification settings - Fork 3k
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] Configure MapBox separately from node #25651
Conversation
I think we also need to call the setup script in |
This is the PR that introduced Mapbox and modified GHworkflows https://github.com/Expensify/App/pull/25506/files I should have shared this earlier 😓 |
Reviewer Checklist
Screenshots/VideosWebN/A Mobile Web - ChromeN/A Mobile Web - SafariN/A DesktopN/A iOSN/A AndroidN/A |
omg a bunch of tests are failing... because they use workflows on main? yea all failures seem to be related to secret token not being available (but I don't understand, this is not a fork) |
Yes, very strange since everything passed here |
I see, these are failing because they use the |
wow good find! is there a way to merge this with tests failing or do we have a way to make tests succeed? |
I think we need to merge it with tests failing. |
Technically we might be able to fix this type of error more generally by using For now I think we should just merge + live-test |
I think we have to do this ⬆️ |
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.
thank you so much for the quick fix 🙇
Ok, lets do this. Merging through failing tests as explained above |
@roryabraham looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
[No QA] Configure MapBox separately from node (cherry picked from commit 4d3edb9)
🚀 Deployed to staging by https://github.com/roryabraham in version: 1.3.56-5 🚀
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.56-24 🚀
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 1.3.58-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.58-5 🚀
|
Details
The current configuration of MapBox in
setupNode
works fine for internal employees. However, for contributors working from forks, it does not work because they do not have access to theMAPBOX_SDK_DOWNLOAD_TOKEN
repo secret.Therefore
setupNode
(and in turn tests, lint, etc...) are failing for all PRs from forks for now.This PR doesn't address the root problem – we can't configure MapBox or run native builds from forks – but it does reduce the impact of the problem substantially.
After we merge this PR, the main limitation will be that we can't run AdHoc test builds of PRs from forks. This is common workflow, so is something we'll want to fix as soon as we reasonably can. In the meantime, Expensify engineers can work around this by:
gh
cli to do this likegh pr checkout 12345
git switch -c my-copy-of-12345 && git push origin my-copy-of-12345
gh pr create --web
Ready to Build
label to your copy PR, and run AdHoc builds from there.Fixed Issues
$ n/a – all contributor PRs are currently borked
Tests
We've gotta merge + live-test this.
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 methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android