Skip to content

Instantly share code, notes, and snippets.

@fatso83
Last active March 22, 2019 15:43
Show Gist options
  • Save fatso83/2bb8c4ff82fa66f66db5030b0af06d66 to your computer and use it in GitHub Desktop.
Save fatso83/2bb8c4ff82fa66f66db5030b0af06d66 to your computer and use it in GitHub Desktop.
Shows the unstable output from Puppeteer when used through Mochify
stdout # chromium:
Error: Oh noes!
at test/fails.js:12
!!..
2 passing (115ms)
2 failing
1) test
fails synchronously:
Error: Oh noes!
at Context.<anonymous> (test/fails.js:6)
2) test
fails asynchronously:
Uncaught Error: Script error. (:0)
stderr
DevTools listening on ws://127.0.0.1:33899/devtools/browser/e5e4af80-a83e-4898-bda3-35f519ef018f
[0322/162416.672912:ERROR:command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.
[0322/162416.899886:INFO:CONSOLE(1415)] "", source: __puppeteer_evaluation_script__ (1415)
[0322/162416.903164:INFO:CONSOLE(1415)] "", source: __puppeteer_evaluation_script__ (1415)
[0322/162416.955919:INFO:CONSOLE(1347)] "Uncaught Error: Oh noes!", source: __puppeteer_evaluation_script__ (1347)
[0322/162417.012890:INFO:CONSOLE(1415)] " !!..", source: __puppeteer_evaluation_script__ (1415)
[0322/162417.013129:INFO:CONSOLE(1415)] "", source: __puppeteer_evaluation_script__ (1415)
[0322/162417.013488:INFO:CONSOLE(1415)] " 2 passing (115ms)", source: __puppeteer_evaluation_script__ (1415)
[0322/162417.013719:INFO:CONSOLE(1415)] " 2 failing", source: __puppeteer_evaluation_script__ (1415)
[0322/162417.013881:INFO:CONSOLE(1415)] "", source: __puppeteer_evaluation_script__ (1415)
[0322/162417.014398:INFO:CONSOLE(1415)] " 1) test", source: __puppeteer_evaluation_script__ (1415)
[0322/162417.014587:INFO:CONSOLE(1415)] " fails synchronously:", source: __puppeteer_evaluation_script__ (1415)
[0322/162417.014840:INFO:CONSOLE(1415)] " Error: Oh noes!", source: __puppeteer_evaluation_script__ (1415)
[0322/162417.014913:INFO:CONSOLE(1415)] " at Context.<anonymous> (__puppeteer_evaluation_script__:1341:11)", source: __puppeteer_evaluation_script__ (1415)
[0322/162417.015046:INFO:CONSOLE(1415)] " at callFn (__puppeteer_evaluation_script__:6032:21)", source: __puppeteer_evaluation_script__ (1415)
[0322/162417.015193:INFO:CONSOLE(1415)] " at Test.Runnable.run (__puppeteer_evaluation_script__:6024:7)", source: __puppeteer_evaluation_script__ (1415)
[0322/162417.015347:INFO:CONSOLE(1415)] " at Runner.runTest (__puppeteer_evaluation_script__:6560:10)", source: __puppeteer_evaluation_script__ (1415)
[0322/162417.015505:INFO:CONSOLE(1415)] " at __puppeteer_evaluation_script__:6678:12", source: __puppeteer_evaluation_script__ (1415)
[0322/162417.015660:INFO:CONSOLE(1415)] " at next (__puppeteer_evaluation_script__:6474:14)", source: __puppeteer_evaluation_script__ (1415)
[0322/162417.015730:INFO:CONSOLE(1415)] " at __puppeteer_evaluation_script__:6484:7", source: __puppeteer_evaluation_script__ (1415)
[0322/162417.015965:INFO:CONSOLE(1415)] " at next (__puppeteer_evaluation_script__:6408:14)", source: __puppeteer_evaluation_script__ (1415)
[0322/162417.016140:INFO:CONSOLE(1415)] " at __puppeteer_evaluation_script__:6452:5", source: __puppeteer_evaluation_script__ (1415)
[0322/162417.016215:INFO:CONSOLE(1415)] " at timeslice (__puppeteer_evaluation_script__:1564:27)", source: __puppeteer_evaluation_script__ (1415)
[0322/162417.016287:INFO:CONSOLE(1415)] "", source: __puppeteer_evaluation_script__ (1415)
[0322/162417.016475:INFO:CONSOLE(1415)] " 2) test", source: __puppeteer_evaluation_script__ (1415)
[0322/162417.016644:INFO:CONSOLE(1415)] " fails asynchronously:", source: __puppeteer_evaluation_script__ (1415)
[0322/162417.016772:INFO:CONSOLE(1415)] " Uncaught Error: Script error. (:0)", source: __puppeteer_evaluation_script__ (1415)
[0322/162417.016896:INFO:CONSOLE(1415)] " at global.onerror (__puppeteer_evaluation_script__:1546:10)", source: __puppeteer_evaluation_script__ (1415)
[0322/162417.017023:INFO:CONSOLE(1415)] "", source: __puppeteer_evaluation_script__ (1415)
[0322/162417.017165:INFO:CONSOLE(1415)] "", source: __puppeteer_evaluation_script__ (1415)
Error: Exit 1
stdout # chromium:
Error: Oh noes!
at test/fails.js:12
!!..
2 passing (117ms)
2 failing
1) test
fails synchronously:
Error: Oh noes!
at Context.<anonymous> (test/fails.js:6)
2) test
fails asynchronously:
Uncaught Error: Script error. (:0)
stderr
DevTools listening on ws://127.0.0.1:40309/devtools/browser/8be117f0-892f-4090-9358-8e9d90d6d0b3
[0322/162300.874805:ERROR:command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.
[0322/162300.889437:WARNING:ipc_message_attachment_set.cc(49)] MessageAttachmentSet destroyed with unconsumed attachments: 0/1
[0322/162300.889549:ERROR:command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.
[0322/162301.106660:INFO:CONSOLE(1415)] "", source: __puppeteer_evaluation_script__ (1415)
[0322/162301.110022:INFO:CONSOLE(1415)] "", source: __puppeteer_evaluation_script__ (1415)
[0322/162301.164356:INFO:CONSOLE(1347)] "Uncaught Error: Oh noes!", source: __puppeteer_evaluation_script__ (1347)
Error: Exit 1
@fatso83
Copy link
Author

fatso83 commented Mar 22, 2019

As can be seen, in two consecutive runs, the output can differ by a factor of 10! Thankfully, the first 3 lines (of INFO:CONSOLE) are the same ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment