Closed himorin closed 7 months ago
cc @tidoust
it seems we have PUPPETEER_SKIP_DOWNLOAD flag on, and this forces to skip downloading Chromium. Not sure why it was working with reffy@4.0.5... https://github.com/w3c/spec-prod/blob/c6d5322021bcd22d44885116044cf27a0a534b03/action.yml#L78
That is most likely the problem, but I don't understand why ;)
The action does not download Chrome but sets the PUPPETEER_EXECUTABLE_PATH
env variable to the local Chrome, which should give Puppeteer what it needs (the action also uses Puppeteer outside of Reffy)
Reffy merely calls puppeteer.launch({ headless: true })
, which should be enough to make Puppeteer use the environment variable according to Puppeteer documentation.
@sidvishnoi, I can update Reffy to pass an executablePath
parameter to the call to Puppeteer.launch
set to process.env['PUPPETEER_EXECUTABLE_PATH']
, but I'm not sure that would change anything?
Oh wait, the answer is right in the lines I copied, I just misread them!
The code does not set an environment variable, it creates a PUPPETEER_ENV
variable from the environment variable!
I'll set the env var in spec-prod instead. That's what we do with respec build too.
Just started my day. Expect fix with test in 15min.
after https://github.com/w3c/spec-prod/commit/c6d5322021bcd22d44885116044cf27a0a534b03 by @dontcallmedom merged, spec-prod fails with following error.