Skip to content

Comments

Minimize shared-common everywhere#188606

Merged
Ikuni17 merged 21 commits intoelastic:mainfrom
afharo:shared-common-everywhere
Jul 29, 2024
Merged

Minimize shared-common everywhere#188606
Ikuni17 merged 21 commits intoelastic:mainfrom
afharo:shared-common-everywhere

Conversation

@afharo
Copy link
Member

@afharo afharo commented Jul 17, 2024

Summary

8xfggo

At the moment, our package generator creates all packages with the type shared-common. This means that we cannot enforce boundaries between server-side-only code and the browser, and vice-versa.

  • I started fixing packages/core/*
  • It took me to fixing src/core/ type to be identified by the plugin pattern (public and server directories) vs. a package (either common, or single-scoped)
  • Unsurprisingly, this extended to packages importing core packages hitting the boundaries eslint rules. And other packages importing the latter.
  • Also a bunch of common logic that shouldn't be so common 🙃

For maintainers

@afharo
Copy link
Member Author

afharo commented Jul 17, 2024

/ci

@afharo afharo self-assigned this Jul 18, 2024
@afharo afharo added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting technical debt Improvement of the software architecture and operational architecture labels Jul 18, 2024
@afharo afharo force-pushed the shared-common-everywhere branch from 78033e7 to 4688a67 Compare July 18, 2024 16:13
@afharo afharo force-pushed the shared-common-everywhere branch from 0fcfca4 to 0ed5298 Compare July 18, 2024 16:29
@afharo
Copy link
Member Author

afharo commented Jul 18, 2024

/ci

@afharo
Copy link
Member Author

afharo commented Jul 18, 2024

/ci

@elasticmachine
Copy link
Contributor

elasticmachine commented Jul 18, 2024

💔 Build Failed

Failed CI Steps

History

  • 💔 Build #222235 failed 9592b321179d7c96a061c5a5831f314b8d879cc2

cc @afharo

@afharo
Copy link
Member Author

afharo commented Jul 18, 2024

/ci

@afharo afharo marked this pull request as ready for review July 18, 2024 19:11
@afharo afharo requested a review from a team as a code owner July 18, 2024 19:11
@afharo afharo requested a review from a team July 18, 2024 19:11
@afharo afharo requested review from a team as code owners July 18, 2024 19:11
@afharo afharo requested a review from tiansivive July 25, 2024 16:13
Copy link
Contributor

@tiansivive tiansivive left a comment

Choose a reason for hiding this comment

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

LGTM from Security Entity Analytics

@afharo afharo force-pushed the shared-common-everywhere branch from 59b3145 to 89d46ae Compare July 26, 2024 13:22
@afharo afharo force-pushed the shared-common-everywhere branch from d9a8e6d to c80f20b Compare July 26, 2024 16:05
Copy link
Contributor

@dmlemeshko dmlemeshko left a comment

Choose a reason for hiding this comment

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

appex-qa changes LGTM

Copy link
Contributor

@MadameSheema MadameSheema left a comment

Choose a reason for hiding this comment

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

Thanks!! :)

@afharo afharo enabled auto-merge (squash) July 29, 2024 15:58
@afharo
Copy link
Member Author

afharo commented Jul 29, 2024

Thank you all for approving!

Updating from main (hopefully) one last time! And enabling auto-merge.

@kibana-ci
Copy link

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Jest Integration Tests #6 / telemetry tasks endpoint-meta-telemetry should execute when scheduled

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
esUiShared 238 241 +3

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/server-route-repository-utils - 5 +5
@kbn/synthetics-e2e - 32 +32
total +37

Any counts in public APIs

Total count of every any typed public API. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats any for more detailed information.

id before after diff
@kbn/synthetics-e2e - 2 +2

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
synthetics 0 1 +1

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
esUiShared 158.1KB 158.9KB +799.0B
Unknown metric groups

API count

id before after diff
@kbn/server-route-repository-utils - 5 +5
@kbn/synthetics-e2e - 32 +32
total +37

ESLint disabled in files

id before after diff
@kbn/apm-ftr-e2e - 2 +2
@kbn/synthetics-e2e - 1 +1
@kbn/test-suites-serverless - 1 +1
@kbn/test-suites-src - 6 +6
@kbn/test-suites-xpack - 23 +23
apm 14 12 -2
synthetics 7 6 -1
total +30

ESLint disabled line counts

id before after diff
@kbn/apm-ftr-e2e - 3 +3
@kbn/observability-onboarding-e2e - 3 +3
@kbn/synthetics-e2e - 20 +20
@kbn/test-suites-serverless - 2 +2
@kbn/test-suites-src - 43 +43
@kbn/test-suites-xpack - 705 +705
@kbn/test-suites-xpack-performance - 2 +2
apm 73 70 -3
observabilityOnboarding 15 12 -3
synthetics 84 64 -20
total +752

References to deprecated APIs

id before after diff
@kbn/test-suites-xpack - 2 +2

Total ESLint disabled count

id before after diff
@kbn/apm-ftr-e2e - 5 +5
@kbn/observability-onboarding-e2e - 3 +3
@kbn/synthetics-e2e - 21 +21
@kbn/test-suites-serverless - 3 +3
@kbn/test-suites-src - 49 +49
@kbn/test-suites-xpack - 728 +728
@kbn/test-suites-xpack-performance - 2 +2
apm 87 82 -5
observabilityOnboarding 19 16 -3
synthetics 91 70 -21
total +782

History

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

cc @afharo

Copy link
Contributor

@TinaHeiligers TinaHeiligers left a comment

Choose a reason for hiding this comment

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

LGTM

@Ikuni17 Ikuni17 disabled auto-merge July 29, 2024 18:47
@Ikuni17 Ikuni17 merged commit 11b750b into elastic:main Jul 29, 2024
@afharo afharo deleted the shared-common-everywhere branch July 29, 2024 18:54
dmlemeshko added a commit that referenced this pull request Jul 31, 2024
## Summary

I noticed `elastic/appex-qa` is pinged for quite many PRs.

with #188606 some test folders became packages with `"owner":
"@elastic/appex-qa",`, that autmatically updated CODEOWNERS file with
appex-qa listed for basically every test path.


https://github.com/elastic/kibana/pull/188606/files#diff-3d36a1bf06148bc6ba1ce2ed3d19de32ea708d955fed212c0d27c536f0bd4da7R878-R881

This PR removes `owner` for the following test "packages"
- x-pack/test_serverless 
- test 
- x-pack/test 

and CODEOWNERS file keeps these paths without specific owner.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apm:review backport:skip This PR does not require backporting :ml release_note:skip Skip the PR/issue when compiling release notes Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// Team:DataDiscovery Discover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t// Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// Team:ML Team label for ML (also use :ml) t// Team:Obs AI Assistant Observability AI Assistant Team:obs-knowledge DEPRECATED Former Obs Knowledge team. Team:obs-onboarding Observability Onboarding Team Team:obs-ux-infra_services - DEPRECATED DEPRECATED - Use Team:obs-presentation. Team:Observability Team label for Observability Team (for things that are handled across all of observability) Team:Operations Kibana-Operations Team Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// Team:Search Team:Security Platform Security: Auth, Users, Roles, Spaces, Audit Logging, etc t// Team:SharedUX Platform AppEx-SharedUX (formerly Global Experience) t// Team:Unified observability Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// technical debt Improvement of the software architecture and operational architecture v8.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.