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
Puppeteer: upgrade to v21 #433
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested with some dashboards.
It works locally, but the build fails as some dependencies need to be updated there as well. |
Do we know exactly which dependencies need to be updated? 🤔 |
We're relying on some internals when downloading Chronium, which have been removed in the latest versions. Need to investigate the alternatives. |
I tested this in plugin mode on Windows and there was one issue with chromium path.
Apart from that, it seems to work fine 👍 If we don't use Chrome in this PR, I think we should do it in a follow-up one but also look into the performance to ensure it isn't worse (it shouldn't but we should check). I would leave #432 open to keep track of that. |
I somehow forgot that the whole point of this upgrade was to use the new Chrome 🙈 We could change it in this PR, but do you have any opinion on how to run Chrome in docker? |
It seems like installing Chrome on Alpine is not recommended so we should keep Chromium here and switch to chrome-stable in the Debian image. This is the Puppeteer Dockerfile: https://github.com/puppeteer/puppeteer/blob/main/docker/Dockerfile If the performance is much better with Chrome for Testing than with chromium we should update the release pipeline to also publish the Debian Docker image. @xlson I think you have a better knowledge around Docker than us, any opinion on the above? |
@AgnesToulet I'm not following, what is it you want opinions on? |
@xlson I'd like your opinion on this:
The context is that Puppeteer (the library we use to open a browser and take a Grafana screenshot) is switching from Chromium to Chrome for Testing by default. We'd like to upgrade to do the same if this improves the performance and stability of the image renderer but we have trouble updating the Docker images (well mostly the Alpine one that is the one we currently publish to DockerHub). |
There's also a request for Debian images: #442. Don't see why we shouldn't publish those. |
I agree, it would be nice to publish both. What I'm wondering now is: should we use a different Chrome flavour on each? If so, how much would that increase the maintainability cost? cc/ @xlson @AgnesToulet |
If the performance is better with Chrome I think it makes sense to switch to debian. I'm sceptical of publishing both alpine and debian though as that will increase our maintenance cost. |
@xlson @AgnesToulet are there any risks with switching to Debian? If not I think we'd do it. |
# Conflicts: # yarn.lock
It looks like we already have a Debian Docker image, but we just don't publish it. |
I don't really think so. We'd rather use alpine as it's designed for docker, but debian should work fine as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good!! 👍🏻
So I think this remains:
And we should be good to merge! |
Ah, that's why it wasn't working for me locally, fixed now! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did a few more tests and everything works fine! Great work on this 👍
Upgrade Puppeteer to the latest version to take advantage of the new features.
Fixes #432