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

Improve Puppeteer's trimCache API usage #16519

Merged
merged 1 commit into from Jun 4, 2023

Conversation

timvandermeij
Copy link
Contributor

The original trimCache functionality was intended to be exposed on the top-level puppeteer module, but due to a bug in Puppeteer this didn't work correctly and we had to call trimCache on the default Puppeteer node instance instead, which was fortunately exposed. However, since this didn't feel like intended API usage, this bug was reported and is now fixed in Puppeteer 20.5.0, so this commits updates Puppeteer to that version so we can use the intended API.

The full history of this issue can be found at puppeteer/puppeteer#10174.

The original `trimCache` functionality was intended to be exposed on the
top-level `puppeteer` module, but due to a bug in Puppeteer this didn't
work correctly and we had to call `trimCache` on the default Puppeteer
node instance instead, which was fortunately exposed. However, since
this didn't feel like intended API usage, this bug was reported and is
now fixed in Puppeteer 20.5.0, so this commits updates Puppeteer to that
version so we can use the intended API.

The full history of this issue can be found at
puppeteer/puppeteer#10174.
Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

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

r=me, with passing tests; thank you!

@timvandermeij
Copy link
Contributor Author

/botio test

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_test from @timvandermeij received. Current queue size: 0

Live output at: http://54.241.84.105:8877/7754ce490db7ccc/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

Command cmd_test from @timvandermeij received. Current queue size: 0

Live output at: http://54.193.163.58:8877/ef9fbb51e3b3603/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/7754ce490db7ccc/output.txt

Total script time: 24.75 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: FAILED
  • Regression tests: FAILED
  different ref/snapshot: 12
  different first/second rendering: 2

Image differences available at: http://54.241.84.105:8877/7754ce490db7ccc/reftest-analyzer.html#web=eq.log

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/ef9fbb51e3b3603/output.txt

Total script time: 33.64 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: FAILED
  • Regression tests: FAILED
  different ref/snapshot: 32

Image differences available at: http://54.193.163.58:8877/ef9fbb51e3b3603/reftest-analyzer.html#web=eq.log

@timvandermeij timvandermeij merged commit 8a5af64 into mozilla:master Jun 4, 2023
3 checks passed
@timvandermeij timvandermeij deleted the puppeteer branch June 4, 2023 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants