Skip to content

[8.3] Remove file-type dependency via jimp (#137214)#139434

Closed
jeramysoucy wants to merge 4 commits intoelastic:8.3from
jeramysoucy:backport/8.3/pr-137214
Closed

[8.3] Remove file-type dependency via jimp (#137214)#139434
jeramysoucy wants to merge 4 commits intoelastic:8.3from
jeramysoucy:backport/8.3/pr-137214

Conversation

@jeramysoucy
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.3:

Questions ?

Please refer to the Backport tool documentation

* Removed file-type from package.json deps.
Updated jimp to 0.16.1.
Updated light & dark dashboard baseline screenshots to resolve failure due to resize degradation.

* Replaced jimp with sharp and pixelmatch. Eliminates several deps, including file-type.
Eliminates quality degradation from image resizing.

* Fixed copy paste error, which lead to pass positives and errors.

* Integrated updateBaselines flag into dashboards report testing.
Fixed sharp resize to fit and not truncate the original image.

* Removed accidental '.only'

* Reverted area chart baseline.

* Removed explicit declaration of sharp from package.json.

* Adjusted dashboard screenshot size in attempt to eliminate layout scaling issues in CI testing.

* Reverted dashboard screenshot size. Lowered tolerance in dashboard PNG reporting tests to force failure and collect CI screenshots.

* Changed session save location for dashboard report images for better CI reporting.

* Fixed small dashboard baseline screenshot with correct aspect ratio.

* Updated 2 basline screenshots from CI. Lowered PNG match tolerance for dashboard screenshots to 1% for investigation of remaining screens.

* Update of dashboard controls light mode baseline.
Change of forced container width size in large dashboard layout test.

* Updated dashboard controls dark mode baseline screenshot.
Adjusted forced container width in large dashboard layout test for troubleshooting.

* Lowering tolerance of PNG compare tests from 9% to 1% for troubleshooting.
Replaced references to dedundant image service with existing, more adopted reporting service.
Ideally, the PNG functions of the reporting service would be merged with the screenshot service as an image service.

* Reverting tolerance of PNG compares to 0.09. Will create GH issues for specific teams to investigate.

* Implemented PngService to provide an accessible single reference to PNG compare testing.
Removed redundant implementations and references.

* Updated service reference and call to png compare function left out of last commit.

* Updated another missed PNG reference.

* Removed superfluous parameter.

* Update after bootstrap

* Updated area chart baseline to match new render with panel filters.

* Reverted limits in dashboard snapshot tests to original values.

* Merge and rebuild.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit de9b7c6)

# Conflicts:
#	package.json
#	test/functional/screenshots/baseline/area_chart.png
#	x-pack/test/reporting_functional/reporting_and_timeout/index.ts
#	yarn.lock
@jeramysoucy jeramysoucy added the backport This PR is a backport of another PR label Aug 24, 2022
@jeramysoucy jeramysoucy enabled auto-merge (squash) August 24, 2022 20:14
@kibana-ci
Copy link
Copy Markdown

kibana-ci commented Aug 24, 2022

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #1 / dashboard app - group 2 dashboard snapshots compare area chart snapshot
  • [job] [logs] FTR Configs #1 / dashboard app - group 2 dashboard snapshots compare area chart snapshot

Metrics [docs]

Canvas Sharable Runtime

The Canvas "shareable runtime" is an bundle produced to enable running Canvas workpads outside of Kibana. This bundle is included in third-party webpages that embed canvas and therefor should be as slim as possible.

id before after diff
total size 7.7MB 7.7MB +12.9KB

Page load bundle

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

id before after diff
kbnUiSharedDeps-npmDll 4.8MB 4.8MB +6.4KB
kbnUiSharedDeps-srcJs 3.7MB 3.7MB +12.9KB
total +19.2KB

History

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

@kibanamachine
Copy link
Copy Markdown
Contributor

CI was triggered for this PR, but this PR targets 8.3 which should not receive a future release. CI is not supported for these branches. Please consult the release schedule, or contact #kibana-operations if you believe this is an error.

The following branches are currently considered to be open:

  • main
  • 8.4
  • 7.17

@kibanamachine
Copy link
Copy Markdown
Contributor

CI was triggered for this PR, but this PR targets 8.3 which should not receive a future release. CI is not supported for these branches. Please consult the release schedule, or contact #kibana-operations if you believe this is an error.

The following branches are currently considered to be open:

  • main
  • 8.4
  • 7.17

@kibanamachine
Copy link
Copy Markdown
Contributor

CI was triggered for this PR, but this PR targets 8.3 which should not receive a future release. CI is not supported for these branches. Please consult the release schedule, or contact #kibana-operations if you believe this is an error.

The following branches are currently considered to be open:

  • main
  • 8.4
  • 7.17

auto-merge was automatically disabled August 30, 2022 12:30

Pull request was closed

@jeramysoucy
Copy link
Copy Markdown
Contributor Author

8.3 will not receive a future release

@jeramysoucy jeramysoucy deleted the backport/8.3/pr-137214 branch August 31, 2022 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants