-
Notifications
You must be signed in to change notification settings - Fork 14
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
Update to puppeteer 3.0+ #949
Comments
There aren't any versions of node < 10 that are currently supported, see https://nodejs.org/en/about/releases/. Is there some reason devs need to be on older versions? I'm also planning to move the phet servers to Node 14 in October, but I don't think that should affect this conversation. |
We'll defer the upgrade to puppeteer 3.0+ until October when we upgrade node to 14. |
Calendar reminder made |
I updated to puppeteer ^5.4.1 in my working copy, and tested the following parts:
|
#947 (comment) says:
Here is a patch that upgrades puppeteer to 5.4.1. After applying this patch, you can @zepumph when you have time, can you confirm that this new version works OK on your side now that we are using Node 14? Index: perennial/package.json
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- perennial/package.json (revision 819d7878cbf333f929c1cd4af975ca5a91b4f29f)
+++ perennial/package.json (date 1605449622186)
@@ -26,7 +26,7 @@
"winston": "^0.9.0",
"winston-loggly": "^1.3.1",
"xml2js": "^0.4.15",
- "puppeteer": "~2.1.1",
+ "puppeteer": "^5.4.1",
"html-differ": "1.4.0"
},
"eslintConfig": {
Index: aqua/package.json
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- aqua/package.json (revision d25054801465932bd48f4fb3060ae05e7dcbceaf)
+++ aqua/package.json (date 1605449557546)
@@ -11,7 +11,7 @@
"lodash": "^4.17.10",
"ncp": "^2.0.0",
"rimraf": "^2.5.4",
- "puppeteer": "~2.1.1",
+ "puppeteer": "^5.4.1",
"winston": "^0.9.0"
},
"eslintConfig": {
Index: chipper/package.json
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- chipper/package.json (revision 5131b25ea4349d9472bae89ad2c19f04ac7ab412)
+++ chipper/package.json (date 1605449710689)
@@ -22,7 +22,7 @@
"md5": "~2",
"node-html-encoder": "~0.0.2",
"pngjs": "~0.4.0",
- "puppeteer": "~2.1.1",
+ "puppeteer": "^5.4.1",
"qunit": "~2.10.0",
"request": "^2.87.0",
"request-promise-native": "^1.0.7",
Index: chipper/js/grunt/generateTestHTML.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- chipper/js/grunt/generateTestHTML.js (revision 5131b25ea4349d9472bae89ad2c19f04ac7ab412)
+++ chipper/js/grunt/generateTestHTML.js (date 1605461917122)
@@ -32,7 +32,7 @@
bodystart: '<div id="qunit"></div>\n<div id="qunit-fixture"></div>' + ( repo === 'scenery' ? '<div id="display"></div>' : '' ),
// Add QUnit JS
- addedPreloads: [ '../sherpa/lib/qunit-2.10.0.js', '../chipper/js/sim-tests/qunit-connector.js' ],
+ addedPreloads: [ '../sherpa/lib/qunit-2.12.0.js', '../chipper/js/sim-tests/qunit-connector.js' ],
// Do not show the splash screen
stripPreloads: [ '../joist/js/splash.js' ],
|
I applied the patch and was able to successfully build GAO for phet-io brand, and I ran |
Was there anything specific that I was supposed to test? |
That's perfect, thanks. I'll move forward for next steps. |
I updated to puppeteer ^5.4.1 in the commits. Please npm prune and npm update in aqua, chipper and perennial at your convenience and report any issues in #949 |
I'd like to hear that:
Are working satisfactorily before closing this issue. Marking to touch base at developer meeting. |
From dev meeting on 11/23/20: MK: We can check off pdom comparison. DB: I'll investigate the usage in the installer builder. MK: I'll test puppeteerHelpCT. SR: After updating everything via Webstorm, building seemed okay as a first pass. Maybe we are too conservative with not updating. |
Anything else here @samreid? I checked my boxes after verifying. |
Thanks, it seems we are good to go, closing. |
From #947 we would like to update puppeteer to a more recent version:
https://github.com/puppeteer/puppeteer says
But some PhET developers were using Node <10 and @zepumph determined that our build server is using Node v10.16.3. Hence this would need to upgrade before we can move forward here.
We don't have an immediate need to update puppeteer for any particular bugfix or feature, but for stability and maintainability we should start to move this forward. Tagging for developer meeting about moving this forward.
The text was updated successfully, but these errors were encountered: