{"action":"created","issue":{"url":"https://api.github.com/repos/SnabbCo/snabbswitch/issues/626","labels_url":"https://api.github.com/repos/SnabbCo/snabbswitch/issues/626/labels{/name}","comments_url":"https://api.github.com/repos/SnabbCo/snabbswitch/issues/626/comments","events_url":"https://api.github.com/repos/SnabbCo/snabbswitch/issues/626/events","html_url":"https://github.com/SnabbCo/snabbswitch/pull/626","id":108307866,"number":626,"title":"[draft] Streamlining the Snabb Switch CI (SnabbBot)","user":{"login":"eugeneia","id":4933566,"avatar_url":"https://avatars.githubusercontent.com/u/4933566?v=3","gravatar_id":"","url":"https://api.github.com/users/eugeneia","html_url":"https://github.com/eugeneia","followers_url":"https://api.github.com/users/eugeneia/followers","following_url":"https://api.github.com/users/eugeneia/following{/other_user}","gists_url":"https://api.github.com/users/eugeneia/gists{/gist_id}","starred_url":"https://api.github.com/users/eugeneia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugeneia/subscriptions","organizations_url":"https://api.github.com/users/eugeneia/orgs","repos_url":"https://api.github.com/users/eugeneia/repos","events_url":"https://api.github.com/users/eugeneia/events{/privacy}","received_events_url":"https://api.github.com/users/eugeneia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-09-25T11:28:39Z","updated_at":"2015-09-28T20:22:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SnabbCo/snabbswitch/pulls/626","html_url":"https://github.com/SnabbCo/snabbswitch/pull/626","diff_url":"https://github.com/SnabbCo/snabbswitch/pull/626.diff","patch_url":"https://github.com/SnabbCo/snabbswitch/pull/626.patch"},"body":"This branch includes changes to the CI as discussed in #588 .\r\nThe counterpart to this branch is: https://github.com/eugeneia/snabbswitch-docker\r\n\r\nNotable changes:\r\n\r\n* Normalize environment variables used by Snabb Switch tests and benchmarks\r\n* Drop `scripts/cperf` in favor of `make benchmarks` (nobody except me used cperf, hopefully `make benchmarks` will be convenient)\r\n* Strip asset fetching functionality from `test_env` and adjust it to “new” assets (for instance there is only one kernel image for use in both DPDK based and regular NFV tests)\r\n* Added `scripts/dock.sh` to do run tests and benchmarks in Docker container (should this automatically do a `docker pull`?)\r\n* Rework of SnabbBot to use `scripts/dock.sh` and `make benchmark`"},"comment":{"url":"https://api.github.com/repos/SnabbCo/snabbswitch/issues/comments/143863736","html_url":"https://github.com/SnabbCo/snabbswitch/pull/626#issuecomment-143863736","issue_url":"https://api.github.com/repos/SnabbCo/snabbswitch/issues/626","id":143863736,"user":{"login":"lukego","id":13791,"avatar_url":"https://avatars.githubusercontent.com/u/13791?v=3","gravatar_id":"","url":"https://api.github.com/users/lukego","html_url":"https://github.com/lukego","followers_url":"https://api.github.com/users/lukego/followers","following_url":"https://api.github.com/users/lukego/following{/other_user}","gists_url":"https://api.github.com/users/lukego/gists{/gist_id}","starred_url":"https://api.github.com/users/lukego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukego/subscriptions","organizations_url":"https://api.github.com/users/lukego/orgs","repos_url":"https://api.github.com/users/lukego/repos","events_url":"https://api.github.com/users/lukego/events{/privacy}","received_events_url":"https://api.github.com/users/lukego/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T20:22:48Z","updated_at":"2015-09-28T20:22:48Z","body":"Still getting the hang of this... :)\r\n\r\nAny tips for debugging?\r\n\r\n```\r\n[luke@chur:~/git/snabbswitch/src]$ sudo SNABB_PCI0=0000:01:00.0 SNABB_PCI1=0000:01:00.1 scripts/dock.sh program/snabbnfv/packetblaster_bench.sh | tee log.txt\r\nDefaulting to SNABB_TELNET0=5000\r\nDefaulting to PACKETS=100e6\r\nDefaulting to CAPFILE=64\r\nDefaulting to MAC=52:54:00:00:00:\r\nDefaulting to IP=fe80::5054:ff:fe00:\r\nDefaulting to GUEST_MEM=512\r\nDefaulting to HUGETLBFS=/hugetlbfs\r\nDefaulting to QUEUES=1\r\nsnabbnfv traffic starting (benchmark mode)\r\nLoading program/snabbnfv/test_fixtures/nfvconfig/test_functions/snabbnfv-bench1.port\r\nengine: start app B_NIC\r\nengine: start app B_Virtio\r\nGet features 0x18428001\r\n VIRTIO_F_ANY_LAYOUT VIRTIO_NET_F_MQ VIRTIO_NET_F_CTRL_VQ VIRTIO_NET_F_MRG_RXBUF VIRTIO_RING_F_INDIRECT_DESC VIRTIO_NET_F_CSUM\r\nload: time: 1.00s  fps: 0         fpGbps: 0.000 fpb: 0   bpp: -    sleep: 100 us\r\nload: time: 1.00s  fps: 0         fpGbps: 0.000 fpb: 0   bpp: -    sleep: 100 us\r\nload: time: 1.00s  fps: 0         fpGbps: 0.000 fpb: 0   bpp: -    sleep: 100 us\r\nload: time: 1.00s  fps: 0         fpGbps: 0.000 fpb: 0   bpp: -    sleep: 100 us\r\nload: time: 1.00s  fps: 0         fpGbps: 0.000 fpb: 0   bpp: -    sleep: 100 us\r\nload: time: 1.00s  fps: 0         fpGbps: 0.000 fpb: 0   bpp: -    sleep: 100 us\r\nload: time: 1.00s  fps: 0         fpGbps: 0.000 fpb: 0   bpp: -    sleep: 100 us\r\nload: time: 1.00s  fps: 0         fpGbps: 0.000 fpb: 0   bpp: -    sleep: 100 us\r\nload: time: 1.00s  fps: 0         fpGbps: 0.000 fpb: 0   bpp: -    sleep: 100 us\r\nload: time: 1.00s  fps: 0         fpGbps: 0.000 fpb: 0   bpp: -    sleep: 100 us\r\nload: time: 1.00s  fps: 0         fpGbps: 0.000 fpb: 0   bpp: -    sleep: 100 us\r\nload: time: 1.00s  fps: 0         fpGbps: 0.000 fpb: 0   bpp: -    sleep: 100 us\r\n...\r\n```\r\n\r\nlooks like no traffic is processed."}}