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

[Reporting/Build Chromium] Add a developer script to find the Chromium commit #94033

Merged
merged 7 commits into from Mar 10, 2021

Conversation

tsullivan
Copy link
Member

@tsullivan tsullivan commented Mar 9, 2021

Summary

This PR makes it easier for non-experts to build new versions of Chromium for Kibana Reporting, that is compatible with the release of the Puppeteer node module used in Kibana.

Example: find the Chromium commit has that is currently used for Kibana Reporting

> node x-pack/dev-tools/chromium_version.js
 info Kibana is using Puppeteer 5.4.1-patch.1 (5.4.1)
 info Fetching code from Puppeteer source: https://raw.githubusercontent.com/puppeteer/puppeteer/v5.4.1/src/revisions.ts
 info Found Chromium revision 809590 from Puppeteer 5.4.1
 info Fetching https://crrev.com/809590
 info Found Chromium commit ef768c94bcb42dca4c27048615d07efadbb1c1c2 from revision 809590.

Example: find the Chromium commit we need to build if we want to use Puppeteer v5.5.0:

> node x-pack/dev-tools/chromium_version.js 5.5.0
 info Fetching code from Puppeteer source: https://raw.githubusercontent.com/puppeteer/puppeteer/v5.5.0/src/revisions.ts
 info Found Chromium revision 818858 from Puppeteer 5.5.0
 info Fetching https://crrev.com/818858
 info Found Chromium commit e62cb7e3fc7c40548cef66cdf19d270535d9350b from revision 818858.

As a way to verify the revision info that is actually installed in Kibana, this PR adds debug logs to the runtime while executing a screenshot report:

image

@tsullivan tsullivan marked this pull request as ready for review March 10, 2021 00:49
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServices)

@tsullivan tsullivan added the release_note:skip Skip the PR/issue when compiling release notes label Mar 10, 2021
}
},
{
description: dedent(chalk`
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: we already pass the description to dedent

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

@tsullivan tsullivan merged commit f9c4c01 into elastic:master Mar 10, 2021
@tsullivan tsullivan deleted the spacetime/build-chromium branch March 10, 2021 17:57
tsullivan added a commit to tsullivan/kibana that referenced this pull request Mar 10, 2021
…m commit (elastic#94033)

* script that finds the chromium commit

* use run from dev-utils

* update docs and inch towards build pipeline

* more docs updates

* move the scripts the root

* review feedback
tsullivan added a commit that referenced this pull request Mar 10, 2021
…m commit (#94033) (#94342)

* script that finds the chromium commit

* use run from dev-utils

* update docs and inch towards build pipeline

* more docs updates

* move the scripts the root

* review feedback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Build Tooling Feature:Reporting Reporting (PDF, CSV, ..) feature release_note:skip Skip the PR/issue when compiling release notes v7.13.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants