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

[build] Fix canvas shareable runtime #149165

Merged
merged 1 commit into from
Jan 18, 2023

Conversation

jbudz
Copy link
Member

@jbudz jbudz commented Jan 18, 2023

The canvas shareable runtime build uses webpack 4, which needs the --legacy-openssl-provider flag after the recent Node 16 -> 18 upgrade.

Context: the runtime build is disabled by default in pull requests because it's currently untested and adds ~3 minutes to build time. It is enabled in our nightly snapshots pipeline, which we've been using as a slower feedback loop for build issues.

Testing

node x-pack/plugins/canvas/scripts/shareable_runtime.js

should exit 0

@jbudz jbudz added Team:Operations Team label for Operations Team release_note:skip Skip the PR/issue when compiling release notes ci:build-canvas-shareable-runtime labels Jan 18, 2023
@jbudz jbudz marked this pull request as ready for review January 18, 2023 22:14
@jbudz jbudz requested a review from a team as a code owner January 18, 2023 22:14
@elasticmachine
Copy link
Contributor

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

@jbudz jbudz enabled auto-merge (squash) January 18, 2023 22:22
@jbudz jbudz merged commit 9defcef into elastic:main Jan 18, 2023
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Canvas Sharable Runtime

The Canvas "shareable runtime" is an bundle produced to enable running Canvas workpads outside of Kibana. This bundle is included in third-party webpages that embed canvas and therefor should be as slim as possible.

id before after diff
module count - 5193 +5193
total size - 6.0MB +6.0MB

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

@kibanamachine kibanamachine added v8.7.0 backport:skip This commit does not require backporting labels Jan 18, 2023
wayneseymour pushed a commit to wayneseymour/kibana that referenced this pull request Jan 19, 2023
The canvas shareable runtime build uses webpack 4, which needs the
`--legacy-openssl-provider` flag after the recent Node 16 -> 18 upgrade.

Context: the runtime build is disabled by default in pull requests
because it's currently untested and adds ~3 minutes to build time. It is
enabled in our nightly snapshots pipeline, which we've been using as a
slower feedback loop for build issues.

## Testing
```
node x-pack/plugins/canvas/scripts/shareable_runtime.js
```
should exit 0
jbudz added a commit that referenced this pull request Jan 26, 2023
Reverts #149165

Node 18 was downgraded to Node 16, this flag is not supported -
#149531
kqualters-elastic pushed a commit to kqualters-elastic/kibana that referenced this pull request Feb 6, 2023
Reverts elastic#149165

Node 18 was downgraded to Node 16, this flag is not supported -
elastic#149531
@jbudz jbudz mentioned this pull request Jun 22, 2023
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting ci:build-canvas-shareable-runtime release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team v8.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants