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

penthouse 1.0 run test-all failed in 5 test [on Windows] #180

Open
philipp-winterle opened this issue Sep 20, 2017 · 6 comments
Open

penthouse 1.0 run test-all failed in 5 test [on Windows] #180

philipp-winterle opened this issue Sep 20, 2017 · 6 comments

Comments

@philipp-winterle
Copy link
Contributor

Not sure if this is a OS dependency but on following specs using "npm run test-all" 5 tests are failing.

Windows 7 Pro x64
nodejs 8.2.1
npm 5.3.0

@pocketjoso
Copy link
Owner

Can you share what tests failed? I can imagine that the tests that check whether puppeteer closed the headless chrome instance or not will fail, as it uses simple ps aux regexes, that probably need to be updated for Windows. I'm interested to know what other tests failed though.

@philipp-winterle
Copy link
Contributor Author

philipp-winterle commented Sep 20, 2017

Sure:

1) extra tests for penthouse node module error should handle parallell jobs, sharing one browser instance, closing afterwards:
     Uncaught Error: spawn egrep ENOENT
      at exports._errnoException (util.js:1024:11)
      at Process.ChildProcess._handle.onexit (internal/child_process.js:192:19)
      at onErrorNT (internal/child_process.js:374:16)
      at _combinedTickCallback (internal/process/next_tick.js:138:11)
      at process._tickCallback (internal/process/next_tick.js:180:9)

  2) extra tests for penthouse node module should keep chromium browser instance open, if requested:
     Uncaught Error: This socket is closed
      at Socket._writeGeneric (net.js:721:18)
      at Socket._write (net.js:781:8)
      at doWrite (_stream_writable.js:371:12)
      at writeOrBuffer (_stream_writable.js:357:5)
      at Socket.Writable.write (_stream_writable.js:274:11)
      at Socket.write (net.js:699:40)
      at Socket.<anonymous> (D:/Repositories/penthouse/test/node-module-tests.js:104:51)
      at emitOne (events.js:115:13)
      at Socket.emit (events.js:210:7)
      at addChunk (_stream_readable.js:252:12)
      at readableAddChunk (_stream_readable.js:239:11)
      at Socket.Readable.push (_stream_readable.js:197:10)
      at Pipe.onread (net.js:589:20)

  3) penthouse fault tolerant normalising css tests should generate same layout for yeoman with css errors:
     Error: Error: ENOENT: no such file or directory, open 'D:\Repositories\penthouse\test\results\yeoman-before.jpg'
      at D:/Repositories/penthouse/lib/index.js:265:23
      at Generator.next (<anonymous>)
      at step (D:/Repositories/penthouse/lib/index.js:45:183)
      at D:/Repositories/penthouse/lib/index.js:45:361
      at <anonymous>
      at process._tickCallback (internal/process/next_tick.js:188:7)

 4) penthouse fault tolerant normalising css tests should correctly AST parse css with extra closing braces w/o dropping rules:
     Uncaught Error: spawn egrep ENOENT
      at exports._errnoException (util.js:1024:11)
      at Process.ChildProcess._handle.onexit (internal/child_process.js:192:19)
      at onErrorNT (internal/child_process.js:374:16)
      at _combinedTickCallback (internal/process/next_tick.js:138:11)
      at process._tickCallback (internal/process/next_tick.js:180:9)

  5) penthouse fault tolerant normalising css tests "after all" hook:
     Uncaught Error: This socket is closed
      at Socket._writeGeneric (net.js:721:18)
      at Socket._write (net.js:781:8)
      at doWrite (_stream_writable.js:371:12)
      at writeOrBuffer (_stream_writable.js:357:5)
      at Socket.Writable.write (_stream_writable.js:274:11)
      at Socket.write (net.js:699:40)
      at Socket.<anonymous> (D:/Repositories/penthouse/test/node-module-tests.js:137:49)
      at emitOne (events.js:115:13)
      at Socket.emit (events.js:210:7)
      at addChunk (_stream_readable.js:252:12)
      at readableAddChunk (_stream_readable.js:239:11)
      at Socket.Readable.push (_stream_readable.js:197:10)
      at Pipe.onread (net.js:589:20)

@pocketjoso pocketjoso changed the title penthouse 1.0 run test-all failed in 5 test penthouse 1.0 run test-all failed in 5 test [on Windows] Sep 20, 2017
@pocketjoso
Copy link
Owner

Thanks. So Penthouse would ideally get a fix for this, but it is not high prio, and I don't have access to any windows environment. So PR's welcome!

@bezoerb
Copy link
Contributor

bezoerb commented Sep 21, 2017

I've added a PR to add appveyor tests (windows) to penthouse: #183

@pocketjoso
Copy link
Owner

Thanks @bezoerb. Makes most sense to me to fix the windows issues before/at the same time as adding the windows testing . I'll try to find time for it, but as I said it's not the highest priority for me right now. I would love a PR for this.

Main problem seems to be the usage of spawn (for which I think there's a cross-platform spawn lib), but I think there will be a few other crashes, like ps aux process regexes that I mentioned before.

@Saturate
Copy link
Contributor

Saturate commented Nov 30, 2017

Use https://ci.appveyor.com/ for the windows build/testing, works great with Travis. Puppeteer uses the same CI, and I've used it a lot for windows.

edit: oops, did not see that the PR did this already.

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

No branches or pull requests

4 participants