Ukigumo-Agent [v0.1.7](41f2de965c) SUCCESS
Compare: https://github.com/ukigumo/Ukigumo-Agent/compare/v0.1.7
Elapsed Time: 24 sec
_ 2014-06-20T11:38:43 [INFO] [v0.1.7] ukigumo-client 0.34 _ 2014-06-20T11:38:43 [INFO] [v0.1.7] start testing : https://github.com/ukigumo/Ukigumo-Agent v0.1.7 _ 2014-06-20T11:38:43 [INFO] [v0.1.7] working directory : /tmp/Ukigumo-Agent/v0_1_7 _ 2014-06-20T11:38:43 [INFO] [v0.1.7] run vc : Ukigumo::Client::VC::Git _ 2014-06-20T11:38:43 [INFO] [v0.1.7] workdir is /tmp/Ukigumo-Agent/v0_1_7 _ 2014-06-20T11:38:43 [INFO] [v0.1.7] command: git clone --branch v0.1.7 https://github.com/ukigumo/Ukigumo-Agent ./ _ Cloning into '.'... _ Note: checking out '41f2de965ce43419ac5259bd8d4678e62931f446'. _ _ You are in 'detached HEAD' state. You can look around, make experimental _ changes and commit them, and you can discard any commits you make in this _ state without impacting any branches by performing another checkout. _ _ If you want to create a new branch to retain commits you create, you may _ do so (now or later) by using -b with the checkout command again. Example: _ _ git checkout -b new_branch_name _ _ 2014-06-20T11:38:46 [INFO] [v0.1.7] command: git pull -f origin v0.1.7 _ From https://github.com/ukigumo/Ukigumo-Agent _ * tag v0.1.7 -> FETCH_HEAD _ Already up-to-date. _ 2014-06-20T11:38:47 [INFO] [v0.1.7] command: git submodule init _ 2014-06-20T11:38:47 [INFO] [v0.1.7] command: git submodule update _ 2014-06-20T11:38:47 [INFO] [v0.1.7] command: git clean -dxf _ 2014-06-20T11:38:47 [INFO] [v0.1.7] command: git status _ # Not currently on any branch. _ nothing to commit, working directory clean _ 2014-06-20T11:38:47 [INFO] [v0.1.7] [before_install] cpanm -L $HOME/.ukigumo/ukigumo-agent/extlib --installdeps -n . _ 2014-06-20T11:38:48 [INFO] [v0.1.7] [install] ln -s $HOME/.ukigumo/ukigumo-agent/extlib ./extlib _ 2014-06-20T11:38:48 [INFO] [v0.1.7] run executor : Ukigumo::Client::Executor::Command _ 2014-06-20T11:38:48 [INFO] [v0.1.7] command: prove -lrv -Iextlib/lib/perl5 t _ _ [11:38:48] ==> t/00_compile.t <=================== _ _ ✓ use Ukigumo::Agent; _ ✓ use Ukigumo::Agent::Dispatcher; _ ✓ use Ukigumo::Agent::View; _ ✓ use Ukigumo::Agent::Manager; _ _ ok _ ok 250 ms _ _ [11:38:48] ==> t/01_root.t <====================== _ _ Twiggy: Accepting connections at http://127.0.0.1:50973/ _ 127.0.0.1 - - [20/Jun/2014:11:38:49 +0900] "GET / HTTP/1.1" 200 1919 "-" "libwww-perl/6.06" _ ✓ L11: is $res->code, 200; _ _ ok _ ok 574 ms _ _ [11:38:49] ==> t/02_github_hook_endpoint.t <====== _ _ Don't ignore github tags _ Twiggy: Accepting connections at http://127.0.0.1:50315/ _ push branch and successful _ 2014-06-20T11:38:49 [INFO] payload: {"repository":{"url":"127.0.0.1/repos"},"ref":"refs/heads/branch"} at /tmp/Ukigumo-Agent/v0_1_7/t/../lib/Ukigumo/Agent/Dispatcher.pm line 53 _ 127.0.0.1 - - [20/Jun/2014:11:38:49 +0900] "POST /api/github_hook HTTP/1.1" 200 110 "-" "libwww-perl/6.06" _ ✓ L30: is $res->code, 200; _ ✓ L31: is decode_json($res->content)->{branch}, 'branch'; _ push tag and successful _ 2014-06-20T11:38:49 [INFO] payload: {"repository":{"url":"127.0.0.1/repos"},"ref":"refs/tags/tag"} at /tmp/Ukigumo-Agent/v0_1_7/t/../lib/Ukigumo/Agent/Dispatcher.pm line 53 _ 127.0.0.1 - - [20/Jun/2014:11:38:49 +0900] "POST /api/github_hook HTTP/1.1" 200 107 "-" "libwww-perl/6.06" _ ✓ L46: is $res->code, 200; _ ✓ L47: is decode_json($res->content)->{branch}, 'tag'; _ push tag but do nothing when github tags are ignored _ Twiggy: Accepting connections at http://127.0.0.1:50178/ _ 2014-06-20T11:38:50 [INFO] payload: {"repository":{"url":"127.0.0.1/repos"},"ref":"refs/tags/tag"} at /tmp/Ukigumo-Agent/v0_1_7/t/../lib/Ukigumo/Agent/Dispatcher.pm line 53 _ 127.0.0.1 - - [20/Jun/2014:11:38:50 +0900] "POST /api/github_hook HTTP/1.1" 200 2 "-" "libwww-perl/6.06" _ ✓ L65: is $res->code, 200; _ ✓ L66: is_deeply decode_json($res->content), {}; _ do nothing when ref is not in the payload _ Twiggy: Accepting connections at http://127.0.0.1:50535/ _ 2014-06-20T11:38:50 [INFO] payload: {"repository":{"url":"127.0.0.1/repos"}} at /tmp/Ukigumo-Agent/v0_1_7/t/../lib/Ukigumo/Agent/Dispatcher.pm line 53 _ 127.0.0.1 - - [20/Jun/2014:11:38:50 +0900] "POST /api/github_hook HTTP/1.1" 200 2 "-" "libwww-perl/6.06" _ ✓ L82: is $res->code, 200; _ ✓ L83: is_deeply decode_json($res->content), {}; _ do nothing when `deleted` is true _ Twiggy: Accepting connections at http://127.0.0.1:50803/ _ 2014-06-20T11:38:50 [INFO] payload: {"repository":{"url":"127.0.0.1/repos"},"ref":"refs/heads/branch","deleted":1} at /tmp/Ukigumo-Agent/v0_1_7/t/../lib/Ukigumo/Agent/Dispatcher.pm line 53 _ 127.0.0.1 - - [20/Jun/2014:11:38:50 +0900] "POST /api/github_hook HTTP/1.1" 200 2 "-" "libwww-perl/6.06" _ ✓ L101: is $res->code, 200; _ ✓ L102: is_deeply decode_json($res->content), {}; _ replace http URL to git-URL when `--force_git_url` is enabled _ Twiggy: Accepting connections at http://127.0.0.1:50394/ _ 2014-06-20T11:38:51 [INFO] payload: {"repository":{"url":"https://github.com/ukigumo/Ukigumo-Agent.git"},"ref":"refs/heads/branch"} at /tmp/Ukigumo-Agent/v0_1_7/t/../lib/Ukigumo/Agent/Dispatcher.pm line 53 _ 127.0.0.1 - - [20/Jun/2014:11:38:51 +0900] "POST /api/github_hook HTTP/1.1" 200 135 "-" "libwww-perl/6.06" _ ✓ L119: is $res->code, 200; _ ✓ L120: is decode_json($res->content)->{repository}, 'git@github.com:ukigumo/Ukigumo-Agent.git'; _ _ ok _ ok 1782 ms _ _ [11:38:51] ==> t/03_enqueue.t <=================== _ _ Twiggy: Accepting connections at http://127.0.0.1:50095/ _ normal _ 127.0.0.1 - - [20/Jun/2014:11:38:51 +0900] "POST /api/v0/enqueue HTTP/1.1" 200 2 "-" "libwww-perl/6.06" _ ✓ L25: is $res->code, 200; _ validation error _ branch is missing _ 127.0.0.1 - - [20/Jun/2014:11:38:51 +0900] "POST /api/v0/enqueue HTTP/1.1" 400 96 "-" "libwww-perl/6.06" _ ✓ L36: is $res->code, 400; _ repository is missing _ 127.0.0.1 - - [20/Jun/2014:11:38:51 +0900] "POST /api/v0/enqueue HTTP/1.1" 400 104 "-" "libwww-perl/6.06" _ ✓ L46: is $res->code, 400; _ _ ok _ ok 576 ms _ _ [11:38:51] ==> t/manager/job_queue.t <============ _ _ register_job _ single child _ ✓ L32: is $manager->register_job('foo'), 'running'; _ ✓ L33: is $manager->register_job('bar'), 'pushed'; _ ✓ L34: is $manager->register_job('buz'), 'pushed'; _ ✓ L35: is_deeply $manager->{job_queue}, ['bar', 'buz']; _ single child without config _ ✓ L46: is $manager->register_job('foo'), 'running'; _ ✓ L47: is $manager->register_job('bar'), 'pushed'; _ ✓ L48: is $manager->register_job('buz'), 'pushed'; _ ✓ L49: is_deeply $manager->{job_queue}, ['bar', 'buz']; _ multi children _ ✓ L61: is $manager->register_job('foo'), 'running'; _ ✓ L62: is $manager->register_job('bar'), 'running'; _ ✓ L63: is $manager->register_job('buz'), 'running'; _ ✓ L64: is $manager->register_job('qux'), 'pushed'; _ ✓ L65: is_deeply $manager->{job_queue}, ['qux']; _ _ ok _ ok 207 ms _ _ [11:38:51] ==> t/manager/run_job/exceptional.t <== _ _ exceptional _ client died _ ✓ L68: like $got, qr! _ lack arguments _ ✓ L82: ok $@; _ ✓ L85: ok $@; _ ✓ L88: ok $@; _ _ ok _ ok 1281 ms _ _ [11:38:53] ==> t/manager/run_job/normal.t <======= _ _ normal case _ single child _ ✓ L74: like $got, qr/ _ multi children _ ✓ L121: like $got, qr/(?: _ ✓ L150: ok 1; _ _ ok _ ok 7349 ms _ _ [11:39:00] ==> t/manager/run_job/timeout.t <====== _ _ timeout _ ✓ L77: like $got, qr/ _ _ ok _ ok 7279 ms _ [11:39:07] _ All tests successful. _ Files=8, Tests=8, 19 wallclock secs ( 0.07 usr 0.02 sys + 2.94 cusr 0.67 csys = 3.70 CPU) _ Result: PASS _ 2014-06-20T11:39:07 [INFO] [v0.1.7] finished testing : 1