Skip to content

Instantly share code, notes, and snippets.

@alavit-d
Created June 29, 2015 12:19
Show Gist options
  • Save alavit-d/18b651c92674d71e6ea1 to your computer and use it in GitHub Desktop.
Save alavit-d/18b651c92674d71e6ea1 to your computer and use it in GitHub Desktop.
test
2015-06-29 12:11:27: Starting execution sequence in -fork mode- for app name:throw-later id:0
fs.js:540
binding.open(pathModule._makeLong(path),
^
TypeError: path must be a string
at TypeError (native)
at Object.fs.open (fs.js:540:11)
at OpenReq.process (/home/travis/build/Unitech/PM2/node_modules/chokidar/node_modules/readdirp/node_modules/graceful-fs/graceful-fs.js:55:16)
at OpenReq.Req (/home/travis/build/Unitech/PM2/node_modules/chokidar/node_modules/readdirp/node_modules/graceful-fs/graceful-fs.js:126:8)
at new OpenReq (/home/travis/build/Unitech/PM2/node_modules/chokidar/node_modules/readdirp/node_modules/graceful-fs/graceful-fs.js:49:7)
at Object.open (/home/travis/build/Unitech/PM2/node_modules/chokidar/node_modules/readdirp/node_modules/graceful-fs/graceful-fs.js:41:3)
at WriteStream.open (fs.js:1821:6)
at new WriteStream (fs.js:1811:10)
at Object.fs.createWriteStream (fs.js:1777:10)
at /home/travis/build/Unitech/PM2/lib/Utility.js:105:23
test_dir "out")
test_dir "out"
test_dir "err")
test_dir "err"
test_dir "entire")
test_dir "entire"
grep "tick" $out_file | wc -l)
grep "tick" $out_file | wc -l
3
------------> ✔ Should have "tick" in out log.
grep "Error" $err_file | wc -l)
grep "Error" $err_file | wc -l
0
########  ✘ Should have "Error" in error log.
npm ERR! Test failed. See above for more details.
travis_time:end:137a2fb3:start=1435578776053167678,finish=1435579890474488597,duration=1114421320919

The command "npm test" exited with 1.
Done. Your build exited with 1.
@alavit-d
Copy link
Author

spec "Remote interactor keys save verification"
------------> ✔ Remote interactor keys save verification
[PM2] Spawning PM2 daemon
2015-06-29 13:58:30: [PM2][WORKER] Started with refreshing interval: 30000
2015-06-29 13:58:30: [[[[ PM2/God daemon launched ]]]]
2015-06-29 13:58:30: BUS system [READY] on port /home/travis/.pm2/pub.sock
2015-06-29 13:58:30: RPC interface [READY] on port /home/travis/.pm2/rpc.sock
[Keymetrics.io] Using (Public key: XXXP3) (Private key: XXXS3)
[Keymetrics.io] Launching agent
2015-06-29 13:58:31: Launching Interactor exposure
[Keymetrics.io][ERROR] Wrong public key (Public: XXXP3) (Secret: XXXS3) (Machine name: testing-worker-linux-docker-6c8f2685-3191-linux-7)
[PM2] PM2 Successfully daemonized
[PM2] Stopping PM2...
[PM2][WARN] No process found
[PM2] All processes have been stopped and deleted
2015-06-29 13:58:31: Nothing to do, exiting
2015-06-29 13:58:31: Exiting Interactor
No output has been received in the last 10 minutes, this potentially indicates a stalled build or something wrong with the build itself.
The build has been terminated

@alavit-d
Copy link
Author

$pm2 delete all
[PM2] Deleting all process
2015-06-29 14:19:51: Stopping app:env id:0
2015-06-29 14:19:51: App name:env id:0 exited with code SIGTERM
2015-06-29 14:19:51: Process with pid 21575 killed
[PM2] deleteProcessId process id 0
┌──────────┬────┬──────┬─────┬────────┬─────────┬────────┬────────┬──────────┐
│ App name │ id │ mode │ pid │ status │ restart │ uptime │ memory │ watching │
└──────────┴────┴──────┴─────┴────────┴─────────┴────────┴────────┴──────────┘
Use pm2 show <id|name> to get more details about an app

HEYYYY

@alavit-d
Copy link
Author

test "NE"
2015-06-29 16:09:34: Starting execution sequence in -fork mode- for app name:throw-later id:0
fs.js:493
binding.open(pathModule._makeLong(path),
^
TypeError: path must be a string
at TypeError (native)
at Object.fs.open (fs.js:493:11)
at OpenReq.process (/home/travis/build/alavit-d/PM2/node_modules/chokidar/node_modules/readdirp/node_modules/graceful-fs/graceful-fs.js:55:16)
at OpenReq.Req (/home/travis/build/alavit-d/PM2/node_modules/chokidar/node_modules/readdirp/node_modules/graceful-fs/graceful-fs.js:126:8)
at new OpenReq (/home/travis/build/alavit-d/PM2/node_modules/chokidar/node_modules/readdirp/node_modules/graceful-fs/graceful-fs.js:49:7)
at Object.open (/home/travis/build/alavit-d/PM2/node_modules/chokidar/node_modules/readdirp/node_modules/graceful-fs/graceful-fs.js:41:3)
at WriteStream.open (fs.js:1774:6)
at new WriteStream (fs.js:1764:10)
at Object.fs.createWriteStream (fs.js:1728:10)
at /home/travis/build/alavit-d/PM2/lib/Utility.js:105:23
test_dir "out")
test_dir "out"
test_dir "err")
test_dir "err"
grep "tick" $out_file | wc -l)
grep "tick" $out_file | wc -l
3
------------> ✔ Should have "tick" in out log.
grep "Error" $err_file | wc -l)
grep "Error" $err_file | wc -l
0

## ✘ Should have "Error" in error log.

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

The command "npm test" exited with 1.

Done. Your build exited with 1.

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