Skip to content
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

[yarn] download prebuilt artifacts for re2 and node-sass from custom mirrors #126820

Merged
merged 8 commits into from
Mar 3, 2022

Conversation

spalger
Copy link
Contributor

@spalger spalger commented Mar 3, 2022

Rather than run build scripts on M1 Mac machines to take care of missing native packages for node-sass and re2 packages, we publish our own builds of these modules that we will download during yarn-install via custom mirrors and environment variables which customize the post-install scripts. This will ensure that everyone has the same artifacts and therefore can utilize the bazel remote cache.

To do this we need to publish all the build artifacts for each version to a bucket, along with the artifact for the darwin-arm64 build. This means we won't be able to update Node or these two packages without pushing up new artifacts, but hopefully this will be a very short lived thing until the upstream repos can start publishing M1 compatible artifacts.

@spalger spalger added Team:Operations Team label for Operations Team release_note:skip Skip the PR/issue when compiling release notes v8.2.0 v8.1.1 labels Mar 3, 2022
@spalger spalger force-pushed the implement/prebuilt-mirrors branch from 53c17da to 802d511 Compare March 3, 2022 16:58
@spalger spalger added the auto-backport Deprecated - use backport:version if exact versions are needed label Mar 3, 2022
@spalger spalger marked this pull request as ready for review March 3, 2022 17:15
@spalger spalger requested a review from a team as a code owner March 3, 2022 17:15
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

Copy link
Member

@mistic mistic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@spalger
Copy link
Contributor Author

spalger commented Mar 3, 2022

@elasticmachine merge upstream

Copy link
Member

@mistic mistic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@spalger spalger merged commit c509fda into elastic:main Mar 3, 2022
@spalger spalger deleted the implement/prebuilt-mirrors branch March 3, 2022 21:22
@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.1 Backport failed because of merge conflicts

You might need to backport the following PRs to 8.1:
- Update dependency chromedriver to ^98.0.1 (main) (#126724)
- Bump backport to 7.3.0 (#126149)

Manual backport

To create the backport manually run:

node scripts/backport --pr 126820

Questions ?

Please refer to the Backport tool documentation

spalger pushed a commit to spalger/kibana that referenced this pull request Mar 3, 2022
…mirrors (elastic#126820)

Co-authored-by: Kibana Machine <[email protected]>
(cherry picked from commit c509fda)

# Conflicts:
#	yarn.lock
spalger pushed a commit that referenced this pull request Mar 3, 2022
…ustom mirrors (#126820) (#126855)

* [yarn] download prebuilt artifacts for re2 and node-sass from custom mirrors (#126820)

Co-authored-by: Kibana Machine <[email protected]>
(cherry picked from commit c509fda)

# Conflicts:
#	yarn.lock

* update kbn/pm dist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed ci:build-all-platforms release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team v8.1.1 v8.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants