DPDK patches and discussions
 help / color / mirror / Atom feed
From: Jeremy Plsek <jplsek@iol.unh.edu>
To: dev@dpdk.org
Cc: Aaron Conole <aconole@redhat.com>
Subject: [dpdk-dev] Unit testing DPDK with a container
Date: Tue, 8 Oct 2019 13:34:24 -0400	[thread overview]
Message-ID: <CA+xUZB4QVE1reAfxcmVsBiW+4EMv3LdoGyu37+yj8EX1OuLfhA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2133 bytes --]

Hello!

I manage the DPDK Community Lab that runs the performance testing and
compile testing that you may notice from results on Patchwork.

We've been wanting to start putting up unit test results, but would
like to run them in a (mostly unprivileged, rootless) container.

We have it mostly working, but there are a few tests still having issues.

My main question is, does my our setup below have some simple issues
that I've overlooked or are there actual unit test issues that should
be patched in dpdk? (Suggestions are also welcome.)

I've attached the logs and the dockerfiles/scripts to reproduce the
issue. And unfortunately, the results are not the same per machine.
(For example, my results have no fails, just skips and timeouts, but
on our CI[1], it also has fails.)
[1] https://lab.dpdk.org/results/dashboard/results/results-uploads/test_runs/e17d211dc0ea4d10a312e5c466710af8/log_upload_file/2019/10/dpdk_5b5bb56532fd_2019-10-03_21-58-01_NA.zip

Setup:

The current directory (see setup_files.zip):
dpdk # a clean dpdk master git folder
dpdk_unit_test.Dockerfile
dpdk_compile_meson.Dockerfile
compile_meson.sh
unit_test.sh

Setup commands:
sudo groupadd hugetlbfs
sudo usermod -a -G hugetlbfs $USER
sudo chown -R :hugetlbfs /dev/hugepages
sudo chmod g+w /dev/hugepages -R
sudo sh -c "echo 1024 > /proc/sys/vm/nr_hugepages"

Building the images:
docker build -t dpdk_compile_meson -f dpdk_compile_meson.Dockerfile .
docker build -t dpdk_unit_test -f dpdk_unit_test.Dockerfile .

Running the testing:
docker run --rm -it --user $(id -u):$(id -g) -v $(pwd)/dpdk:/dpdk
dpdk_compile_meson
docker run --rm -it --cap-add IPC_LOCK --cap-add NET_RAW --cap-add
NET_ADMIN --cap-add SYS_NICE --user $(id -u):$(getent group hugetlbfs
| cut -d : -f 3) -v $(pwd)/dpdk:/dpdk -v /dev/hugepages:/dev/hugepages
dpdk_unit_test

(This uses Docker, but as you may notice from patchwork, podman is
used for current compile testing. I am unable to get unit testing
working with podman. I will try to get it working at a later date.
Suggestions to get it working are welcome though!)

Thanks!
-- 
Jeremy Plsek
UNH InterOperability Laboratory

[-- Attachment #2: out.zip --]
[-- Type: application/zip, Size: 121752 bytes --]

[-- Attachment #3: setup_files.zip --]
[-- Type: application/zip, Size: 1900 bytes --]

                 reply	other threads:[~2019-10-08 17:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+xUZB4QVE1reAfxcmVsBiW+4EMv3LdoGyu37+yj8EX1OuLfhA@mail.gmail.com \
    --to=jplsek@iol.unh.edu \
    --cc=aconole@redhat.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).