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

[7.17][Ops] Sync babel-related versions with main #161278

Merged
merged 6 commits into from
Jul 12, 2023

Conversation

delanni
Copy link
Contributor

@delanni delanni commented Jul 5, 2023

Summary

Synchronize Babel versions with main (targeting ~7.21).

Closes #160010

Based on Tiago's PR #161311.

Checklist

@delanni delanni force-pushed the sync-babel-version-with-main branch from 4ee15dd to f7ba584 Compare July 6, 2023 10:13
@delanni delanni force-pushed the sync-babel-version-with-main branch from 66cbd27 to 344ad5c Compare July 6, 2023 11:51
@delanni delanni added chore Team:Operations Team label for Operations Team release_note:skip Skip the PR/issue when compiling release notes backport:skip This commit does not require backporting v7.17.12 labels Jul 6, 2023
@delanni delanni changed the title Sync babel-related versions with main [Ops][7.17] Sync babel-related versions with main Jul 6, 2023
@delanni delanni changed the title [Ops][7.17] Sync babel-related versions with main [7.17][Ops] Sync babel-related versions with main Jul 6, 2023
@delanni delanni mentioned this pull request Jul 6, 2023
2 tasks
@delanni delanni marked this pull request as ready for review July 6, 2023 15:39
@elasticmachine
Copy link
Contributor

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

@delanni delanni requested a review from a team July 7, 2023 08:18
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
canvas 1042 1043 +1
dashboard 270 271 +1
dashboardEnhanced 91 92 +1
data 503 504 +1
dataVisualizer 320 321 +1
fleet 541 542 +1
infra 927 928 +1
inputControlVis 112 113 +1
lens 799 800 +1
lists 294 295 +1
maps 743 744 +1
ml 1582 1583 +1
observability 341 342 +1
securitySolution 2581 2582 +1
timelines 284 285 +1
upgradeAssistant 211 212 +1
uptime 625 626 +1
total +17

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
apm 2.4MB 2.4MB +777.0B
canvas 1.0MB 1.0MB +440.0B
cases 341.9KB 341.9KB +1.0B
dashboard 180.4KB 180.8KB +428.0B
dataVisualizer 526.2KB 526.6KB +434.0B
enterpriseSearch 1.4MB 1.4MB +776.0B
fileUpload 667.1KB 667.9KB +816.0B
fleet 629.0KB 629.4KB +434.0B
infra 938.3KB 938.7KB +442.0B
inputControlVis 82.8KB 83.2KB +427.0B
lens 1.0MB 1.0MB +432.0B
lists 148.4KB 149.5KB +1.0KB
maps 2.6MB 2.6MB +428.0B
ml 3.3MB 3.3MB +443.0B
observability 362.1KB 362.1KB +9.0B
securitySolution 4.7MB 4.7MB +1.1KB
upgradeAssistant 186.1KB 186.5KB +425.0B
uptime 578.2KB 578.6KB +444.0B
total +9.1KB

Page load bundle

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

id before after diff
dashboardEnhanced 44.0KB 44.4KB +366.0B
data 454.8KB 455.2KB +418.0B
dataViews 39.0KB 38.9KB -25.0B
embeddable 69.9KB 69.9KB -24.0B
fieldFormats 46.8KB 46.8KB -55.0B
kbnUiSharedDeps-css 587.9KB 597.8KB +9.9KB
kbnUiSharedDeps-npmDll 5.7MB 5.7MB +1.3KB
kbnUiSharedDeps-srcJs 3.8MB 3.8MB +3.4KB
observability 68.3KB 68.7KB +425.0B
savedObjectsManagement 22.3KB 22.2KB -77.0B
timelines 311.5KB 311.9KB +434.0B
total +16.1KB

History

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

Comment on lines +434 to +452
"@babel/cli": "^7.21.0",
"@babel/core": "^7.21.0",
"@babel/eslint-parser": "^7.19.1",
"@babel/eslint-plugin": "^7.19.1",
"@babel/generator": "^7.21.1",
"@babel/parser": "^7.21.2",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@babel/plugin-proposal-private-methods": "^7.18.6",
"@babel/plugin-transform-runtime": "^7.21.0",
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.21.0",
"@babel/register": "^7.21.0",
"@babel/traverse": "^7.21.2",
"@babel/types": "^7.21.2",
Copy link
Contributor

Choose a reason for hiding this comment

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

Should these versions match @babel/core? Its the same on main so maybe we address it there first and backport?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe you're right - I wonder why it is not in sync on master - @mistic do you have any opinions on syncing the @babel/* versions to that of the core?

What I also wonder, the specifiers with ^ should be able to move around within the same major version, in theory they could resolve all to the same version.

Copy link
Member

Choose a reason for hiding this comment

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

Thats a good point. I think we can move on with this PR as it is and then open a fix on main to this mismatch with babel/core that we can then backport to the other branches.

Regarding the second question and after thinking a little about this, I think whats is more important is to keep at least what we define in the package.json in sync across the branches, having that said we can keep the ^ and afford to have little differences in the yarn.lock because if we upgrade those things at the same time they will tend to be exact the same in every branch without us to have to be completely strict in the package.json.

Let me know what you think about it 😃

Copy link
Member

Choose a reason for hiding this comment

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

👍 I believe the versions aren't always in sync (e.g. core is 7.22.8 and register is 7.22.5 currently), no-op releases are skipped but future releases will skip numbers to align, if anyone's curious as to why.

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

@delanni delanni merged commit 9feb18a into elastic:7.17 Jul 12, 2023
@delanni delanni deleted the sync-babel-version-with-main branch May 2, 2024 11:27
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 chore release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team v7.17.12
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants