Conversation
This comment was marked as duplicate.
This comment was marked as duplicate.
|
Pinging @elastic/kibana-core (Team:Core) |
|
Pinging @elastic/kibana-operations (Team:Operations) |
pgayvallet
left a comment
There was a problem hiding this comment.
Sounds promising, but I think I found a few things we may want to fix.
| // Shared dependencies | ||
| await copyAll( | ||
| resolve(buildSource, 'node_modules/@kbn/ui-shared-deps-npm/shared_built_assets'), | ||
| resolve(bundles, 'kbn-ui-shared-deps-npm') |
There was a problem hiding this comment.
I think we also need to copy the assets for kbn-monaco (unless the library won't load its assets from the CDN?)
There was a problem hiding this comment.
Thanks for the source references, I added them to the build step too. I pushed ac91ae3
| try { | ||
| const assetsSource = resolve(pluginRoot, 'assets'); | ||
| const assetsDest = resolve(plugin, manifest.plugin.id, 'assets'); | ||
| await access(assetsSource); | ||
| await copyAll(assetsSource, assetsDest); |
There was a problem hiding this comment.
If I read the path correctly, then I think this is wrong.
The plugins static assets aren't accessed/exposed as other bundles via /assets/{buildNum}/bundles/plugin/{id}/assets/{asset_path}, but via /plugins/{id}/assets/{asset_path}
E.g
For this file: src/plugins/home/public/assets/sample_data_resources/flights/dashboard.webp
EDIT: I finally found where we're doing it:
pgayvallet
left a comment
There was a problem hiding this comment.
Paths seems all correct to me, and I can't think of assets we may have forgotten to include there.
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
When testing docker contexts we skip all build steps related to Kibana artifacts. CDN assets rely on the Kibana base folder and should be skipped too. Fixes https://buildkite.com/elastic/kibana-artifacts-snapshot/builds/3445 Build https://buildkite.com/elastic/kibana-artifacts-snapshot/builds/3451 Bug introduced in #169707
Closes #169427
Adds a new build step
createCdnAssetsthat will create an archivekibana-<version>-cdn-assets.tar.gzwith static assets organized using the request structure of the kibana client.node scripts/build --skip-cdn-assetswill skip creationci:build-cdn-assetscan be used to create and upload the archive for testingTesting: see #169408. Builds are available in the artifacts tab on the
Build Distributionstep.