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] [Reporting/Screenshotting] upgrade Puppeteer dependency to v20.1.0 (#156766) #157111

Merged
merged 10 commits into from
Jun 16, 2023

Conversation

tsullivan
Copy link
Member

@tsullivan tsullivan commented May 8, 2023

Backport

This will backport the following commits from main to 7.17:

Depends on #157436

Questions ?

Please refer to the Backport tool documentation

tsullivan and others added 4 commits May 9, 2023 16:55
…lastic#156766)

## Summary

Upgrades the dependency for capturing screenshots with Chromium to
[Puppeteer
v20.1.0](https://github.com/puppeteer/puppeteer/releases/tag/puppeteer-v20.1.0)

We're using publicly available Chromium downloads for Windows and Mac.
For Linux, we create a custom build that doesn't have dependencies on
X11 shared libraries.

**Versions:**
* Linux: **113.0.5672.63**
* Windows: **113.0.5672.0**
* Darwin x64: **113.0.5672.0**
* Darwin arm64: **113.0.5672.0**

### Checklist

Delete any items that are not applicable to this PR.
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] Verified in Cloud deployment

### For maintainers

- [x] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: kibanamachine <[email protected]>
# Conflicts:
#	package.json
#	src/dev/build/tasks/install_chromium.ts
#	src/dev/chromium_version/index.ts
#	src/dev/tsconfig.json
#	x-pack/build_chromium/linux/args.gn
#	x-pack/plugins/reporting/server/browsers/chromium/driver_factory/args.ts
#	x-pack/plugins/reporting/server/browsers/chromium/paths.ts
#	x-pack/plugins/screenshotting/server/browsers/chromium/driver_factory/args.test.ts
#	x-pack/plugins/screenshotting/server/browsers/chromium/driver_factory/index.ts
#	x-pack/plugins/screenshotting/server/browsers/download/index.ts
#	x-pack/plugins/screenshotting/server/browsers/install.ts
#	x-pack/plugins/screenshotting/tsconfig.json
#	yarn.lock
@tsullivan tsullivan force-pushed the backport/7.17/pr-156766 branch from 8104719 to 861aca4 Compare May 9, 2023 23:55
Ikuni17 added a commit that referenced this pull request Jun 9, 2023
Closes #157436

Unblocks: #157111

# Backport

This will backport the following commits from `main` to `7.17`:
- [Upgrade to Jest 29
(#143319)](#143319)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Jonathan
Budzenski","email":"[email protected]"},"sourceCommit":{"committedDate":"2022-11-18T15:40:16Z","message":"Upgrade
to Jest 29
(#143319)\n\nhttps://jestjs.io/blog/2022/04/25/jest-28\r\nhttps://jestjs.io/blog/2022/08/25/jest-29\r\n\r\n-
jest.useFakeTimers('legacy') -> jest.useFakeTimers({
legacyFakeTimers:\r\ntrue });\r\n- jest.useFakeTimers('modern'); ->
jest.useFakeTimers();\r\n- tests can either use promises or callbacks,
but not both\r\n- test runner jasmine is no longer included, switch all
suites to\r\njest-circus\r\n\r\nCo-authored-by: Andrew Tate
<[email protected]>","sha":"2ac7ebe3bf9bd3a8e18c71df5f7c51541ecec339","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","Feature:Embedding","Team:APM","Feature:ExpressionLanguage","Team:uptime","release_note:skip","backport:skip","Team:Fleet","v8.7.0"],"number":143319,"url":"https://github.com/elastic/kibana/pull/143319","mergeCommit":{"message":"Upgrade
to Jest 29
(#143319)\n\nhttps://jestjs.io/blog/2022/04/25/jest-28\r\nhttps://jestjs.io/blog/2022/08/25/jest-29\r\n\r\n-
jest.useFakeTimers('legacy') -> jest.useFakeTimers({
legacyFakeTimers:\r\ntrue });\r\n- jest.useFakeTimers('modern'); ->
jest.useFakeTimers();\r\n- tests can either use promises or callbacks,
but not both\r\n- test runner jasmine is no longer included, switch all
suites to\r\njest-circus\r\n\r\nCo-authored-by: Andrew Tate
<[email protected]>","sha":"2ac7ebe3bf9bd3a8e18c71df5f7c51541ecec339"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/143319","number":143319,"mergeCommit":{"message":"Upgrade
to Jest 29
(#143319)\n\nhttps://jestjs.io/blog/2022/04/25/jest-28\r\nhttps://jestjs.io/blog/2022/08/25/jest-29\r\n\r\n-
jest.useFakeTimers('legacy') -> jest.useFakeTimers({
legacyFakeTimers:\r\ntrue });\r\n- jest.useFakeTimers('modern'); ->
jest.useFakeTimers();\r\n- tests can either use promises or callbacks,
but not both\r\n- test runner jasmine is no longer included, switch all
suites to\r\njest-circus\r\n\r\nCo-authored-by: Andrew Tate
<[email protected]>","sha":"2ac7ebe3bf9bd3a8e18c71df5f7c51541ecec339"}}]}]
BACKPORT-->

---------

Co-authored-by: Tiago Costa <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>
@Ikuni17
Copy link
Contributor

Ikuni17 commented Jun 9, 2023

@elasticmachine merge upstream

@mistic
Copy link
Member

mistic commented Jun 10, 2023

@tsullivan maybe you need to backport something else to make those last failing tests to pass. The jest backport is done on 7.17 branch

@tsullivan
Copy link
Member Author

tsullivan commented Jun 15, 2023

Looking into this now.

@tsullivan tsullivan added ci:cloud-deploy Create or update a Cloud deployment ci:cloud-redeploy Always create a new Cloud deployment labels Jun 15, 2023
@tsullivan
Copy link
Member Author

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

@tsullivan tsullivan merged commit a19b1f4 into elastic:7.17 Jun 16, 2023
@tsullivan tsullivan deleted the backport/7.17/pr-156766 branch June 20, 2023 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport ci:cloud-deploy Create or update a Cloud deployment ci:cloud-redeploy Always create a new Cloud deployment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants