-
Notifications
You must be signed in to change notification settings - Fork 890
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
Remove examples and other unwanted artifacts from installed dependencies #4896
Remove examples and other unwanted artifacts from installed dependencies #4896
Conversation
Signed-off-by: Miki <[email protected]>
6af2d23
to
7208291
Compare
Codecov Report
@@ Coverage Diff @@
## main #4896 +/- ##
==========================================
- Coverage 66.39% 66.39% -0.01%
==========================================
Files 3397 3397
Lines 64804 64804
Branches 10360 10360
==========================================
- Hits 43028 43026 -2
- Misses 19217 19224 +7
+ Partials 2559 2554 -5
Flags with carried forward coverage won't be shown. Click here to find out more. |
So the post install is targeted to be a specific runtime configuration of OpenSearch Dashboards? Or can examples not be outside of a |
Having the unwanted stuff is not only undesirable for releases but also undesirable / dangerous for contributors. |
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.
Cool, I pulled and tried it and it appears to work great.
We could consider a brief explanatory log message (something like "removing example and demo files from depenedencies") as output:
yarn osd bootstrap
yarn run v1.22.19
$ scripts/use_node scripts/osd bootstrap
info [opensearch-dashboards] running yarn
$ scripts/use_node ./preinstall_check
[1/5] Validating package.json...
[2/5] Resolving packages...
warning Resolution field "[email protected]" is incompatible with requested version "typescript@~4.5.2"
[3/5] Fetching packages...
[4/5] Linking dependencies...
warning "workspace-aggregator-9f9bce3f-24d7-47b2-9651-cfdc201888fc > osd_tp_run_pipeline > @elastic/[email protected]" has incorrect peer dependency "typescript@^4.0.5".
warning "@osd/ace > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning "@osd/interpreter > [email protected]" has unmet peer dependency "webpack@>=2".
warning "@osd/interpreter > [email protected]" has unmet peer dependency "webpack@^4.37.0 || ^5.0.0".
warning "@osd/interpreter > [email protected]" has unmet peer dependency "webpack@^4.27.0 || ^5.0.0".
warning "@osd/ui-framework > @osd/optimizer > @osd/ui-shared-deps > [email protected]" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0".
warning "@osd/interpreter > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning "@osd/interpreter > [email protected]" has unmet peer dependency "webpack@^4.0.0".
warning "@osd/interpreter > [email protected]" has unmet peer dependency "[email protected] || 5.x.x".
warning "@osd/interpreter > webpack-cli > @webpack-cli/[email protected]" has unmet peer dependency "[email protected] || 5.x.x".
warning "@osd/ui-framework > @osd/optimizer > [email protected]" has unmet peer dependency "webpack@*".
warning "@osd/ui-framework > @osd/optimizer > @osd/ui-shared-deps > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning "@osd/ui-framework > @osd/optimizer > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning "@osd/ui-framework > @osd/optimizer > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning "@osd/ui-framework > @osd/optimizer > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning "@osd/ui-framework > @osd/optimizer > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning "@osd/ui-framework > @osd/optimizer > @osd/ui-shared-deps > [email protected]" has unmet peer dependency "webpack@^4.4.0 || ^5.0.0".
warning "workspace-aggregator-9f9bce3f-24d7-47b2-9651-cfdc201888fc > [email protected]" has unmet peer dependency "aws-sdk@^2.138.0".
warning "workspace-aggregator-9f9bce3f-24d7-47b2-9651-cfdc201888fc > [email protected]" has incorrect peer dependency "elasticsearch@^15.0.0".
warning "@osd/eslint-import-resolver-opensearch-dashboards > [email protected]" has unmet peer dependency "webpack@>=1.11.0".
[5/5] Building fresh packages...
$ scripts/use_node scripts/postinstall
succ yarn.lock analysis completed without any issues
info [@osd/cross-platform] running [osd:bootstrap] script
info [@osd/stylelint-plugin-stylelint] running [osd:bootstrap] script
info [@osd/test-subj-selector] running [osd:bootstrap] script
info [@osd/utility-types] running [osd:bootstrap] script
succ [@osd/test-subj-selector] bootstrap complete
succ [@osd/utility-types] bootstrap complete
succ [@osd/stylelint-plugin-stylelint] bootstrap complete
succ [@osd/cross-platform] bootstrap complete
info [@osd/config-schema] running [osd:bootstrap] script
info [@osd/std] running [osd:bootstrap] build targets
succ [@osd/std] bootstrap complete
succ [@osd/config-schema] bootstrap complete
info [@osd/logging] running [osd:bootstrap] script
info [@osd/utils] running [osd:bootstrap] script
succ [@osd/logging] bootstrap complete
succ [@osd/utils] bootstrap complete
info [@osd/apm-config-loader] running [osd:bootstrap] script
info [@osd/dev-utils] running [osd:bootstrap] script
succ [@osd/apm-config-loader] bootstrap complete
succ [@osd/dev-utils] bootstrap complete
info [@osd/ace] running [osd:bootstrap] build targets
info [@osd/analytics] running [osd:bootstrap] script
info [@osd/config] running [osd:bootstrap] script
info [@osd/i18n] running [osd:bootstrap] build targets
succ [@osd/analytics] bootstrap complete
info [@osd/monaco] running [osd:bootstrap] script
succ [@osd/ace] bootstrap complete
info [@osd/opensearch-archiver] running [osd:bootstrap] script
succ [@osd/i18n] bootstrap complete
info [@osd/opensearch] running [osd:bootstrap] script
succ [@osd/config] bootstrap complete
info [@osd/plugin-generator] running [osd:bootstrap] script
succ [@osd/opensearch] bootstrap complete
info [@osd/telemetry-tools] running [osd:bootstrap] script
succ [@osd/telemetry-tools] bootstrap complete
info [@osd/test] running [osd:bootstrap] script
succ [@osd/test] bootstrap complete
succ [@osd/plugin-generator] bootstrap complete
succ [@osd/monaco] bootstrap complete
succ [@osd/opensearch-archiver] bootstrap complete
info [@osd/interpreter] running [osd:bootstrap] script
info [@osd/ui-shared-deps] running [osd:bootstrap] script
succ [@osd/interpreter] bootstrap complete
succ [@osd/ui-shared-deps] bootstrap complete
info [@osd/optimizer] running [osd:bootstrap] script
succ [@osd/optimizer] bootstrap complete
info [@osd/plugin-helpers] running [osd:bootstrap] script
succ [@osd/plugin-helpers] bootstrap complete
info [opensearch-dashboards] running [osd:bootstrap] script
succ [opensearch-dashboards] bootstrap complete
Done in 152.28s.
but maybe it's better for it to be transparent unless there's an error.
I like the idea of a log message too |
…ies (#4896) Signed-off-by: Miki <[email protected]> (cherry picked from commit cf07424) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
…ies (#4896) (#4905) Signed-off-by: Miki <[email protected]> (cherry picked from commit cf07424) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Remove examples and other unwanted artifacts from installed dependencies using a postinstall script.
List of folders that will be deleted:
Issues Resolved
/node_modules/leaflet-draw/docs/examples
Fixes #4722
Fixes #4723
Fixes #4725
Fixes #4727
Fixes #4728
Fixes #4729
/node_modules/leaflet-vega/demo
Fixes #3525
Check List
yarn test:jest
yarn test:jest_integration
yarn test:ftr