browserify / wzrd.in

browserify as a service.
http://wzrd.in
MIT License
637 stars 96 forks source link

Broken Tests #197

Open dawsbot opened 5 years ago

dawsbot commented 5 years ago

npm install && npm test

npm test                                 

> browserify-cdn@0.4.0 test /Users/dawsonbotsford/code/scratch/wzrd.in
> rm -rf ./cdn.db && rm -rf ./test/cdn.db && tap --timeout $(node -pe '3* 60 * 1000 + 3 * 5 * 000') ./test/*.js ./test/integration/*.js

./test/builder.js .(node:6153) ExperimentalWarning: queueMicrotask() is experimental.
./test/builder.js ................................... 61/65 20s
  builder.init
  not ok sure looks like a node version alright
    found: 10.15.3
    pattern: /^6/
    at:
      line: 49
      column: 7
      file: test/builder.js
      function: builder.init.then
    stack: |
      builder.init.then (test/builder.js:49:7)
    source: >
      t.match(versions.node, NODE_VERSION, 'sure looks like a node version
      alright');

  builder._build creates a bundle -- standalone concat-stream
  not ok node sure looks like a version
    found: 10.15.3
    pattern: /^6/
    at:
      line: 65
      column: 5
      file: test/builder.js
      function: assertVersions
    stack: |
      assertVersions (test/builder.js:65:5)
      builder.build.then (test/builder.js:146:5)
    source: >
      t.match(_.get(results, 'debug.versions.node'), NODE_VERSION, 'node sure looks
      like a version');

  builder._build creates a bundle -- standalone lodash - subfile range
  not ok node sure looks like a version
    found: 10.15.3
    pattern: /^6/
    at:
      line: 65
      column: 5
      file: test/builder.js
      function: assertVersions
    stack: |
      assertVersions (test/builder.js:65:5)
      builder.build.then (test/builder.js:177:5)
    source: >
      t.match(_.get(results, 'debug.versions.node'), NODE_VERSION, 'node sure looks
      like a version');

  builder._build creates a bundle -- core module events
  not ok node sure looks like a version
    found: 10.15.3
    pattern: /^6/
    at:
      line: 65
      column: 5
      file: test/builder.js
      function: assertVersions
    stack: |
      assertVersions (test/builder.js:65:5)
      builder.build.then (test/builder.js:203:5)
    source: >
      t.match(_.get(results, 'debug.versions.node'), NODE_VERSION, 'node sure looks
      like a version');

./test/bundler.js .(node:6901) ExperimentalWarning: queueMicrotask() is experimental.
(node:6901) TimeoutOverflowWarning: 4294967296000 does not fit into a 32-bit signed integer.
Timer duration was truncated to 2147483647.
./test/bundler.js ................................... 19/21
  Skipped: 2
    bundler.purge
    bundler.status

./test/cache.js .....(node:6903) ExperimentalWarning: queueMicrotask() is experimental.
./test/cache.js ...................................... 9/17
  Cache > getters/setters > cache.get
  not ok test unfinished
    stack: |
      Test.t.test (test/cache.js:70:7)
      Test.tap.test (test/cache.js:48:5)
      Object.<anonymous> (test/cache.js:28:5)
      internal/main/run_main_module.js:21:11
    test: cache.get
    at:
      line: 70
      column: 7
      file: test/cache.js
      function: Test.t.test
    source: |
      t.test('cache.get', (t) => {

  Cache > getters/setters
  not ok child test left in queue: t.test cache._put
  Cache > getters/setters
  not ok child test left in queue: t.test cache.put
  Cache > getters/setters
  not ok child test left in queue: t.test cache._del
  Cache > getters/setters
  not ok child test left in queue: t.test cache.del
  Cache
  not ok child test left in queue: t.test check
  not ok child test left in queue: t.test cull decorator
  not ok child test left in queue: t.test hash functions

./test/node-core.js ................................... 2/2
./test/parse.js ....................................... 6/6
./test/registry.js .................................. 11/11 3s
(node:6908) TimeoutOverflowWarning: 4294967296000 does not fit into a 32-bit signed integer.
Timer duration was truncated to 2147483647.
./test/integration/multiple.js (node:6908) [DEP0097] DeprecationWarning: Using a domain property in MakeCallback is deprecated. Use the async_context variant of MakeCallback or the AsyncResource class instead.
./test/integration/multiple.js ...................... 21/21 15s
(node:6915) TimeoutOverflowWarning: 4294967296000 does not fit into a 32-bit signed integer.
Timer duration was truncated to 2147483647.
./test/integration/singular.js (node:6915) [DEP0097] DeprecationWarning: Using a domain property in MakeCallback is deprecated. Use the async_context variant of MakeCallback or the AsyncResource class instead.
......internal/modules/cjs/loader.js:651
    throw err;
    ^

Error: Cannot find module 'shot'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:649:15)
    at Function.Module._load (internal/modules/cjs/loader.js:575:25)
    at Module.require (internal/modules/cjs/loader.js:705:19)
    at require (internal/modules/cjs/helpers.js:14:16)
    at Object.<anonymous> (/Users/dawsonbotsford/code/scratch/wzrd.in/test/integration/statuses.js:5:16)
    at Module._compile (internal/modules/cjs/loader.js:799:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:810:10)
    at Module.load (internal/modules/cjs/loader.js:666:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:606:12)
    at Function.Module._load (internal/modules/cjs/loader.js:598:3)
./test/integration/singular.js ........................ 6/6 51s
./test/integration/statuses.js ........................ 0/1
  not ok ./test/integration/statuses.js
    timeout: 180000000
    file: ./test/integration/statuses.js
    command: /usr/local/bin/node
    args:
      - ./test/integration/statuses.js
    stdio:
      - 0
      - pipe
      - 2
    cwd: /Users/dawsonbotsford/code/scratch/wzrd.in
    exitCode: 1

total ............................................. 135/150

  135 passing (2m)
  2 pending
  13 failing

npm ERR! Test failed.  See above for more details.

sist output:

node

npm -v: 6.9.0 node --version: v11.12.0

shell

uname: Darwin echo $SHELL: /bin/zsh echo $TERM: xterm-256color-italic echo $TERM_PROGRAM: iTerm.app

Time created: Sat Apr 20 2019 09:50:29 GMT+1000 (Australian Eastern Standard Time)

jfhbrook commented 5 years ago

For all the node version errors: https://github.com/browserify/wzrd.in/blob/master/test/builder.js#L17 this is just a bad test, it was written when node 6 was LTS and it was fine for what I was doing - but yeah I'd change this to /\d\.\d\.\d/ or whatever

Cache errors: Looks like https://github.com/browserify/wzrd.in/blob/master/test/cache.js#L71 is where it starts - guessing it's a timeout? The cache code is all leveldb so I don't know why you would have a timeout in your environment. That's honestly weird. I wouldn't be surprised if that one went away on its own, but if not, dunno.

Last one: https://github.com/browserify/wzrd.in/blob/master/test/integration/statuses.js#L5 This line should probably be "pickleback" first of all https://npm.im/pickleback but also npm i pickleback to install it.

Beyond that, you're on your own. This is mostly stuff I figured out just by looking up the lines mentioned in the stack traces so I figure you can do that too.

dawsbot commented 5 years ago

Sounds good @jfhbrook I'll consider that a perfect start and go do some debugging when/if I make time. Thanks for coming "out of retirement" on this project to answer that.

Are you the primary maintainer of this?

🥂

jfhbrook commented 5 years ago

sort of - I'm the original author.