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

Simplify diagnostics #5084

Merged
merged 9 commits into from
Sep 7, 2020
Merged

Simplify diagnostics #5084

merged 9 commits into from
Sep 7, 2020

Conversation

DeMoorJasper
Copy link
Member

@DeMoorJasper DeMoorJasper commented Aug 30, 2020

↪️ Pull Request

This PR simplifies diagnostics, so codehighlights in diagnostics are always arrays and a ThrowableDiagnostic always takes in an array of diagnostics.

This is a breaking change, I can add a legacy diagnostic option back to ThrowableDiagnostic but I thought it would be better to just fail the plugins that rely on this option to ensure they update their plugins instead.

Closes #5078

✔️ PR Todo

  • Added/updated unit tests for this change
  • Filled out test instructions (In case there aren't any unit tests)
  • Included links to related issues/PRs

@height
Copy link

height bot commented Aug 30, 2020

Link Height tasks by mentioning a task ID in the pull request title or description, commit messages, or comments.

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

@parcel-benchmark
Copy link

parcel-benchmark commented Aug 30, 2020

Benchmark Results

Kitchen Sink ✅

Timings

Description Time Difference
Cold 6.68s -116.00ms
Cached 2.36s -17.00ms

Cold Bundles

Bundle Size Difference Time Difference
dist/legacy/index.45cccf70.js 1.10kb +0.00b 1.63s -126.00ms 🚀
dist/modern/index.1964d1f6.js 1.10kb +0.00b 1.63s -127.00ms 🚀
dist/legacy/index.b3acc8eb.css 77.00b +0.00b 1.63s -126.00ms 🚀
dist/modern/index.7bc22a8b.css 77.00b +0.00b 1.37s -84.00ms 🚀

Cached Bundles

Bundle Size Difference Time Difference
dist/legacy/index.45cccf70.js 1.10kb +0.00b 615.00ms +102.00ms ⚠️
dist/modern/index.1964d1f6.js 1.10kb +0.00b 609.00ms +97.00ms ⚠️
dist/legacy/index.html 701.00b +0.00b 617.00ms +103.00ms ⚠️
dist/modern/index.html 701.00b +0.00b 610.00ms +98.00ms ⚠️
dist/legacy/index.b3acc8eb.css 77.00b +0.00b 616.00ms +103.00ms ⚠️
dist/modern/index.7bc22a8b.css 77.00b +0.00b 609.00ms +97.00ms ⚠️

React HackerNews ✅

Timings

Description Time Difference
Cold 30.50s -1.05s
Cached 2.61s +141.00ms ⚠️

Cold Bundles

Bundle Size Difference Time Difference
dist/logo.24c8bf9e.png 274.00b +0.00b 184.00ms +15.00ms ⚠️

Cached Bundles

Bundle Size Difference Time Difference
dist/index.js 478.68kb +0.00b 359.00ms +125.00ms ⚠️
dist/PermalinkedComment.9c5ad065.js 4.22kb +0.00b 348.00ms +116.00ms ⚠️
dist/UserProfile.c1927888.js 1.62kb +0.00b 348.00ms +116.00ms ⚠️
dist/NotFound.f8a0616d.js 387.00b +0.00b 345.00ms +113.00ms ⚠️
dist/logo.24c8bf9e.png 274.00b +0.00b 253.00ms +70.00ms ⚠️

AtlasKit Editor ✅

Timings

Description Time Difference
Cold 3.20m -5.21s
Cached 5.72s -161.00ms

Cold Bundles

Bundle Size Difference Time Difference
dist/component.d7c29980.js 30.70kb +0.00b 3.05s -323.00ms 🚀
dist/dropzone.3c67f0a6.js 3.23kb +0.00b 32.95s +13.51s ⚠️
dist/Modal.0304b9ed.js 3.08kb +0.00b 5.63s -1.22s 🚀
dist/16.290b4a43.js 2.38kb +0.00b 3.03s -344.00ms 🚀
dist/ResourcedEmojiComponent.abe8596c.js 2.00kb +0.00b 5.57s -383.00ms 🚀
dist/16.1b6ca79f.js 1.66kb +0.00b 8.42s -1.04s 🚀
dist/16.19c93285.js 1.33kb +0.00b 8.42s -1.02s 🚀
dist/16.51049e2c.js 1.32kb +0.00b 3.02s -346.00ms 🚀
dist/16.436f097f.js 1.21kb +0.00b 3.02s -347.00ms 🚀
dist/media-card-analytics-error-boundary.2323af57.js 1.15kb +0.00b 32.94s +13.50s ⚠️
dist/16.b46ef690.js 1.14kb +0.00b 3.02s -347.00ms 🚀
dist/16.9ba230ea.js 1.13kb +0.00b 8.52s -1.48s 🚀
dist/16.eafe1a11.js 1.13kb +0.00b 8.42s -1.02s 🚀
dist/16.3920766f.js 1.10kb +0.00b 5.57s -385.00ms 🚀
dist/component.6600f83e.js 1.07kb +0.00b 5.57s -383.00ms 🚀
dist/media-picker-analytics-error-boundary.f8ddfee3.js 839.00b +0.00b 32.95s +13.51s ⚠️
dist/index.html 119.00b +0.00b 822.00ms -2.98s 🚀

Cached Bundles

Bundle Size Difference Time Difference
dist/index.474ded24.js 2.72mb +0.00b 603.00ms +42.00ms ⚠️
dist/pdfRenderer.15a6a023.js 1.11mb +0.00b 592.00ms +34.00ms ⚠️
dist/editorView.e06544fb.js 587.12kb +0.00b 591.00ms +34.00ms ⚠️
dist/popup.6c453e3c.js 169.96kb +0.00b 591.00ms +34.00ms ⚠️
dist/Toolbar.83ac0b6e.js 92.34kb +0.00b 591.00ms +34.00ms ⚠️
dist/EmojiPickerComponent.ae601247.js 75.29kb +0.00b 593.00ms +34.00ms ⚠️
dist/media-viewer.bcba38b3.js 71.96kb +0.00b 592.00ms +34.00ms ⚠️
dist/card.645a5c17.js 55.01kb +0.00b 592.00ms +34.00ms ⚠️
dist/card.0313bac8.js 52.78kb +0.00b 591.00ms +34.00ms ⚠️
dist/Modal.19ffed32.js 41.27kb +0.00b 602.00ms +42.00ms ⚠️
dist/component.d7c29980.js 30.70kb +0.00b 602.00ms +42.00ms ⚠️
dist/component.54080a26.js 22.50kb +0.00b 594.00ms +34.00ms ⚠️
dist/DatePicker.0df05dac.js 21.21kb +0.00b 593.00ms +35.00ms ⚠️
dist/EmojiPickerComponent.7dc0ebd0.js 18.23kb +0.00b 593.00ms +34.00ms ⚠️
dist/dropzone.7c704bdb.js 17.27kb +0.00b 591.00ms +34.00ms ⚠️
dist/smartMediaEditor.9623570c.js 16.87kb +0.00b 591.00ms +34.00ms ⚠️
dist/js.5733a017.js 16.40kb +0.00b 602.00ms +42.00ms ⚠️
dist/ui.fee77548.js 13.97kb +0.00b 592.00ms +34.00ms ⚠️
dist/workerHasher.1e706e77.js 11.75kb +0.00b 593.00ms +34.00ms ⚠️
dist/EmojiTypeAheadComponent.1990d771.js 8.67kb +0.00b 593.00ms +34.00ms ⚠️
dist/component.77c0f682.js 6.05kb +0.00b 594.00ms +34.00ms ⚠️
dist/card.383bd9bd.js 5.61kb +0.00b 592.00ms +34.00ms ⚠️
dist/media-viewer.59c17dad.js 3.92kb +0.00b 592.00ms +34.00ms ⚠️
dist/EmojiPickerComponent.627aca6b.js 3.58kb +0.00b 593.00ms +34.00ms ⚠️
dist/index.ac562c80.css 3.46kb +0.00b 591.00ms +34.00ms ⚠️
dist/png-chunks-extract.a844fdb6.js 3.41kb +0.00b 602.00ms +42.00ms ⚠️
dist/dropzone.3c67f0a6.js 3.23kb +0.00b 591.00ms +34.00ms ⚠️
dist/Modal.0304b9ed.js 3.08kb +0.00b 602.00ms +42.00ms ⚠️
dist/clipboard.da112b6e.js 2.75kb +0.00b 591.00ms +34.00ms ⚠️
dist/16.290b4a43.js 2.38kb +0.00b 602.00ms +42.00ms ⚠️
dist/EmojiUploadComponent.d54a1fc6.js 2.18kb +0.00b 593.00ms +34.00ms ⚠️
dist/card.eea6ad8c.js 2.03kb +0.00b 591.00ms +34.00ms ⚠️
dist/ResourcedEmojiComponent.abe8596c.js 2.00kb +0.00b 603.00ms +42.00ms ⚠️
dist/date.231500d2.js 1.73kb +0.00b 593.00ms +34.00ms ⚠️
dist/16.d16f14ed.js 1.73kb +0.00b 594.00ms +34.00ms ⚠️
dist/images.80c92f5e.js 1.67kb +0.00b 594.00ms +34.00ms ⚠️
dist/16.1b6ca79f.js 1.66kb +0.00b 594.00ms +34.00ms ⚠️
dist/feedback.d5590b34.js 1.64kb +0.00b 593.00ms +35.00ms ⚠️
dist/browser.75813db0.js 1.61kb +0.00b 591.00ms +34.00ms ⚠️
dist/workerHasher.6d5b22d7.js 1.54kb +0.00b 593.00ms +34.00ms ⚠️
dist/workerHasher.fa198233.js 1.54kb +0.00b 591.00ms +34.00ms ⚠️
dist/list-number.c35f9589.js 1.46kb +0.00b 594.00ms +35.00ms ⚠️
dist/status.8ab4226b.js 1.46kb +0.00b 593.00ms +35.00ms ⚠️
dist/16.9ccb5b28.js 1.38kb +0.00b 594.00ms +34.00ms ⚠️
dist/code.3dd71280.js 1.38kb +0.00b 593.00ms +34.00ms ⚠️
dist/16.19c93285.js 1.33kb +0.00b 594.00ms +34.00ms ⚠️
dist/16.c7751e34.js 1.33kb +0.00b 594.00ms +34.00ms ⚠️
dist/16.51049e2c.js 1.32kb +0.00b 602.00ms +42.00ms ⚠️
dist/16.18344f47.js 1.31kb +0.00b 593.00ms +34.00ms ⚠️
dist/link.2f4427e6.js 1.30kb +0.00b 594.00ms +35.00ms ⚠️
dist/heading6.fdbbdf4d.js 1.30kb +0.00b 593.00ms +35.00ms ⚠️
dist/heading3.2113b7a1.js 1.29kb +0.00b 593.00ms +35.00ms ⚠️
dist/16.2c4c1846.js 1.27kb +0.00b 593.00ms +34.00ms ⚠️
dist/emoji.93ae61d3.js 1.23kb +0.00b 594.00ms +34.00ms ⚠️
dist/16.d17ab186.js 1.23kb +0.00b 594.00ms +34.00ms ⚠️
dist/16.436f097f.js 1.21kb +0.00b 603.00ms +43.00ms ⚠️
dist/16.b4da0acb.js 1.19kb +0.00b 593.00ms +34.00ms ⚠️
dist/16.02c68c4f.js 1.18kb +0.00b 593.00ms +34.00ms ⚠️
dist/heading5.e195aab1.js 1.17kb +0.00b 593.00ms +35.00ms ⚠️
dist/expand.450f3aea.js 1.16kb +0.00b 593.00ms +35.00ms ⚠️
dist/media-card-analytics-error-boundary.2323af57.js 1.15kb +0.00b 591.00ms +34.00ms ⚠️
dist/16.b46ef690.js 1.14kb +0.00b 602.00ms +42.00ms ⚠️
dist/16.4e3b0235.js 1.14kb +0.00b 594.00ms +34.00ms ⚠️
dist/16.9ba230ea.js 1.13kb +0.00b 594.00ms +34.00ms ⚠️
dist/16.a37df53b.js 1.13kb +0.00b 594.00ms +34.00ms ⚠️
dist/16.9adb4ec7.js 1.13kb +0.00b 594.00ms +34.00ms ⚠️
dist/16.eafe1a11.js 1.13kb +0.00b 594.00ms +34.00ms ⚠️
dist/heading2.a2a1be3f.js 1.11kb +0.00b 593.00ms +35.00ms ⚠️
dist/16.3920766f.js 1.10kb +0.00b 603.00ms +43.00ms ⚠️
dist/component.6600f83e.js 1.07kb +0.00b 603.00ms +42.00ms ⚠️
dist/mention.4d64e059.js 1.07kb +0.00b 594.00ms +35.00ms ⚠️
dist/heading4.ec980e93.js 1.06kb +0.00b 593.00ms +35.00ms ⚠️
dist/16.afcb09b6.js 1.05kb +0.00b 593.00ms +34.00ms ⚠️
dist/layout.52ba15f7.js 1.05kb +0.00b 594.00ms +34.00ms ⚠️
dist/divider.16defde6.js 1.03kb +0.00b 593.00ms +34.00ms ⚠️
dist/quote.aa25b83c.js 1.02kb +0.00b 593.00ms +35.00ms ⚠️
dist/action.9aa72b39.js 1.00kb +0.00b 593.00ms +34.00ms ⚠️
dist/decision.20244046.js 1010.00b +0.00b 593.00ms +34.00ms ⚠️
dist/panel-warning.97a0e3b3.js 1008.00b +0.00b 593.00ms +35.00ms ⚠️
dist/list.c9147a62.js 978.00b +0.00b 594.00ms +35.00ms ⚠️
dist/heading1.7d899ba5.js 976.00b +0.00b 593.00ms +35.00ms ⚠️
dist/panel-error.8d11e8b7.js 906.00b +0.00b 594.00ms +35.00ms ⚠️
dist/panel.a28c56ee.js 897.00b +0.00b 593.00ms +35.00ms ⚠️
dist/table.5a4874ee.js 889.00b +0.00b 593.00ms +35.00ms ⚠️
dist/panel-success.9b923e58.js 845.00b +0.00b 593.00ms +35.00ms ⚠️
dist/panel-note.97a4d541.js 841.00b +0.00b 594.00ms +35.00ms ⚠️
dist/media-picker-analytics-error-boundary.f8ddfee3.js 839.00b +0.00b 591.00ms +34.00ms ⚠️
dist/media-card-analytics-error-boundary.663369b9.js 835.00b +0.00b 592.00ms +34.00ms ⚠️
dist/media-card-analytics-error-boundary.73ba4074.js 835.00b +0.00b 591.00ms +34.00ms ⚠️
dist/media-viewer-analytics-error-boundary.0afa7031.js 755.00b +0.00b 591.00ms +34.00ms ⚠️
dist/EmojiPickerComponent.2e54b9c6.js 535.00b +0.00b 593.00ms +34.00ms ⚠️
dist/simpleHasher.16c8bf41.js 528.00b +0.00b 592.00ms +34.00ms ⚠️
dist/simpleHasher.a29b2a8e.js 528.00b +0.00b 591.00ms +34.00ms ⚠️
dist/index.html 119.00b +0.00b 605.00ms +33.00ms ⚠️

Three.js x4 🚨

Timings

Description Time Difference
Cold FAILED -0.00ms
Cached FAILED -0.00ms

Cold Bundles

No bundles found, this is probably a failed build...

Cached Bundles

No bundles found, this is probably a failed build...

Click here to view a detailed benchmark overview.

@mischnic
Copy link
Member

breaking change

We could simply keep the old name.

@DeMoorJasper
Copy link
Member Author

DeMoorJasper commented Aug 30, 2020

@mischnic sure, I'll make it backwards compatible with the old name, I do believe it's more logical to change the name as it's an array of diagnostics now.

@mischnic
Copy link
Member

I was rather thinking not adding diagnostics at all, but we are still in beta anyway, so breaking changes are "allowed"

@DeMoorJasper
Copy link
Member Author

@mischnic got that, just realised this actually didn't change anything useful so changed all of it back.

@DeMoorJasper DeMoorJasper merged commit d460b54 into v2 Sep 7, 2020
@DeMoorJasper DeMoorJasper deleted the simplify-diagnostics branch September 7, 2020 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

codeHighlights is sometimes an object and sometimes an array of objects
3 participants