[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 ⬆️ |
hayata-suenaga
left a comment
There was a problem hiding this comment.
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
setupNodeworks fine for internal employees. However, for contributors working from forks, it does not work because they do not have access to theMAPBOX_SDK_DOWNLOAD_TOKENrepo 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:
ghcli to do this likegh pr checkout 12345git switch -c my-copy-of-12345 && git push origin my-copy-of-12345gh pr create --webReady to Buildlabel 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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android