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

Puppeteer old Headless deprecation warning #1485

Closed
neclimdul opened this issue Jun 5, 2023 · 5 comments · Fixed by #1511 · May be fixed by #1486
Closed

Puppeteer old Headless deprecation warning #1485

neclimdul opened this issue Jun 5, 2023 · 5 comments · Fixed by #1511 · May be fixed by #1486

Comments

@neclimdul
Copy link

Seeing a bunch of these in the latest release on docker hub.

  Puppeteer old Headless deprecation warning:
    In the near feature `headless: true` will default to the new Headless mode
    for Chrome instead of the old Headless implementation. For more
    information, please see https://developer.chrome.com/articles/new-headless/.
    Consider opting in early by passing `headless: "new"` to `puppeteer.launch()`
    If you encounter any bugs, please report them to https://github.com/puppeteer/puppeteer/issues/new/choose.

Seems mostly informational and not problematic but there's just a swarm of them when testing. Quick skim looks to be caused by the headless: <!!!config.debugWindow> logic which passes true. The boolean cast also means we can't put 'new' in the config and "opt in" so I haven't tested if opting in is functional or not.

@garris
Copy link
Owner

garris commented Jun 5, 2023

Thanks for raising! Looks like we should update this behavior to allow updating with non-bool values and to make a decision on how backstop should interpret the old backstop default value going forward. Would be happy to review a PR on this. Cheers

@tkrah
Copy link
Contributor

tkrah commented Jul 5, 2023

The new mode however should be treated with care - e.g. https://bugs.chromium.org/p/chromium/issues/detail?id=1440046 the performance loss is extreme and at least for me in docker I can't even use the new mode because angle fails to initialize the egl rendering acceleration and just quits, I am forced at the moment to use the "old" one and I guess I am not alone with that. So if the new one is considered make it configurable for the user and better stay on the old one for the moment.

@alexd3d
Copy link

alexd3d commented Nov 10, 2023

Guys, thanks a lot for great tool!
Just came across this issue too. If we won't switch to new headless, it would be great to have some additional config param for BackstopJS that regulates verbosity of console. I have 41 test and console looks really scarry with all that millions lines that are logged. Would be great that we could at least : 1) turn on\off yellow warnings about old headless deprecated 2) turn on\off console messages that come from tested website's 3) the same - with cookies content loaded logs. Maybe it's possible now but I couldn't find? Thanks!

dgrebb added a commit to dgrebb/BackstopJS that referenced this issue Nov 22, 2023
…breaking fashion (garris#1485) (garris#1486)

Puppet and Playwright complain and pollute logs with warnings about "new headless mode". This reads the value set in backstop.json, or uses true if 'headless' is not set, or 'new', as a string. README updated with details.

Closes: garris#1485
@dgrebb
Copy link
Contributor

dgrebb commented Nov 22, 2023

@alexd3d FYA hoping to get this merged in soon: #1511

@garris this is a super-small adjustment which should work in all cases backwards and forwards :)

garris pushed a commit that referenced this issue Nov 22, 2023
…breaking fashion (#1485) (#1486) (#1511)

Puppet and Playwright complain and pollute logs with warnings about "new headless mode". This reads the value set in backstop.json, or uses true if 'headless' is not set, or 'new', as a string. README updated with details.

Closes: #1485
@dgrebb
Copy link
Contributor

dgrebb commented Dec 24, 2023

Another update on this with PR #1535 1535

Playwright is going to stay defaulted to "old" headless mode for now, but Puppeteer will start default to new if/when #1535 is merged.

@tkrah I included a fallback for "old" in Puppeteer, which, ironically, can be set by passing "headless": true in the config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants