-
Notifications
You must be signed in to change notification settings - Fork 4
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
Create a CT client based on Puppeteer. #143
Comments
I see that I, for fun, made a local Puppeteer client that is already doing a lot of what we want here: I'll start with that. |
Good progress today! I made ContinuousServerClient which uses Workers to kick off instances of Puppeteer. I was able to test this locally and saw my results showing up on CT's report at https://bayes.colorado.edu/continuous-testing/aqua/html/continuous-report.html?maxColumns=5. From here I would like @jonathanolson to review.
Are there any of these that we should transfer in to Puppeteer for our purposes? It would be easy to pass them in via puppeteer.launch(); (https://github.com/puppeteer/puppeteer/blob/v14.1.1/docs/api.md#puppeteerlaunchoptions). Even before the review is complete, I'm going to start it up on CT with less clients, and delete just a couple of the chrome screens. This way we can start to get some on-server testing to see if this works. If all goes well with the review, next steps are to convert all headless chromes to this process, and to remove the killall chrome cronjob. This will most likely fix #140. |
|
We are not running 2 clients on bayes with pm2 called Here is what the logs look like: Each client restarts every 15 minutes:
|
|
|
I was looking through CT results and felt confident enough to transfer all testing onto this client. I also felt like there is potential that this switch may help solve the issues we are having over in https://github.com/phetsims/special-ops/issues/228. @jonathanolson please continue with the review knowing that this client is our entire testing client for CT at this time (16 instances of puppeteer). |
Something I'm noticing in the logs is that there are a fair number of "info: puppeteer error: Error: Page crashed!" We now have logs to see that this is happening (~15 times in 15 minutes). I see two possible reasons:
|
Any idea which page is crashing? |
Note I stopped this because of #145. |
Restarted, see #145 (comment) |
All has been good on the server. Over the weekend it looks like there were no issues with the client. We are just ready for a review now. |
I'm not sure I agree with phetsims/perennial@34bcd56. Usually things called |
Looks good, although I don't know how |
Looks like this review was handled with commits above. Closing. |
This way, we wouldn't need to have to kill all chrome. Related to phetsims/perennial#268.
@jonathanolson and I also noticed that we could potentially use selenium, and or a headless firefox implementation with the same interface for CT's client side module.
The text was updated successfully, but these errors were encountered: