Skip to contentSkip to conversation

improve Travis coverage

PATCH Superseded Thomas Monjalon 4 participants 17 messages Feb 17, 2020 – Feb 18, 2020

lore
Share & tools
lore
#0 lore raw

cover improve Travis coverage

Remove some useless jobs and add more packages
to build more PMDs in Travis.

Warning: not tested yet! Hope Travis will do it well :-)

Thomas Monjalon (2):
ci: remove redundant configs disabling kmods
ci: enable more drivers in Travis builds

 .travis.yml | 30 +++++-------------------------
 1 file changed, 5 insertions(+), 25 deletions(-)
Signature · 1 line
2.25.0
#1 lore raw

PATCH 1/2 ci: remove redundant configs disabling kmods

The kernel modules are not built by default since below commit. The Travis CI matrix can be simplified
by removing the redundant option enable_kmods=false, and by removing some jobs which become redundant.

Note: there is no benefit in checking kmods in Travis Ubuntu. Anyway different kernel versions and distributions are needed, and the Technical Board is looking at moving the Linux kmods out of this repository.

---
 .travis.yml | 28 ++++------------------------
 1 file changed, 4 insertions(+), 24 deletions(-)
.travis.yml +4 -24
index 22539d8238..19422d4b3c 100644
@@ -38,8 +38,6 @@ before_install: ./.ci/${TRAVIS_OS_NAME}-setup.sh
 env:
   - DEF_LIB="static"
   - DEF_LIB="shared"
-  - DEF_LIB="static" OPTS="-Denable_kmods=false"
-  - DEF_LIB="shared" OPTS="-Denable_kmods=false"
   - DEF_LIB="shared" RUN_TESTS=1
 
 matrix:
@@ -50,13 +48,13 @@ matrix:
       apt:
         packages:
           - *build_32b_packages
-  - env: DEF_LIB="static" OPTS="-Denable_kmods=false" AARCH64=1
+  - env: DEF_LIB="static" AARCH64=1
     compiler: gcc
     addons:
       apt:
         packages:
           - *aarch64_packages
-  - env: DEF_LIB="shared" OPTS="-Denable_kmods=false" AARCH64=1
+  - env: DEF_LIB="shared" AARCH64=1
     compiler: gcc
     addons:
       apt:
@@ -75,13 +73,7 @@ matrix:
         packages:
           - *extra_packages
           - *doc_packages
-  - env: DEF_LIB="static" OPTS="-Denable_kmods=false" EXTRA_PACKAGES=1
-    compiler: gcc
-    addons:
-      apt:
-        packages:
-          - *extra_packages
-  - env: DEF_LIB="shared" OPTS="-Denable_kmods=false" EXTRA_PACKAGES=1
+  - env: DEF_LIB="static" EXTRA_PACKAGES=1
     compiler: gcc
     addons:
       apt:
@@ -106,18 +98,6 @@ matrix:
         packages:
           - *extra_packages
           - *doc_packages
-  - env: DEF_LIB="static" OPTS="-Denable_kmods=false" EXTRA_PACKAGES=1
-    compiler: clang
-    addons:
-      apt:
-        packages:
-          - *extra_packages
-  - env: DEF_LIB="shared" OPTS="-Denable_kmods=false" EXTRA_PACKAGES=1
-    compiler: clang
-    addons:
-      apt:
-        packages:
-          - *extra_packages
   - env: DEF_LIB="static"
     arch: arm64
     compiler: gcc
@@ -146,7 +126,7 @@ matrix:
       apt:
         packages:
           - *required_packages
-  - env: DEF_LIB="shared" OPTS="-Denable_kmods=false" BUILD_DOCS=1
+  - env: DEF_LIB="shared" BUILD_DOCS=1
     arch: arm64
     compiler: gcc
     addons:
Signature · 1 line
2.25.0
#2 lore raw

Re: [dpdk-dev] [PATCH 1/2] ci: remove redundant configs disabling kmods

17/02/2020 12:35, Thomas Monjalon:

Quoted 9 lines

The kernel modules are not built by default since below commit. The Travis CI matrix can be simplified
by removing the redundant option enable_kmods=false, and by removing some jobs which become redundant.

Note: there is no benefit in checking kmods in Travis Ubuntu. Anyway different kernel versions and distributions are needed, and the Technical Board is looking at moving the Linux kmods out of this repository.

Missed this line:

Fixes 91a861e54164 ("config: disable Linux kernel modules by default")
Quoted 1 line
Acked-by on v1 1/2
#3 lore raw

Re: [dpdk-dev] [PATCH 1/2] ci: remove redundant configs disabling kmods

In reply to Thomas Monjalon
Quoted 5 lines · Thomas Monjalon

The kernel modules are not built by default since below commit. The Travis CI matrix can be simplified
by removing the redundant option enable_kmods=false, and by removing some jobs which become redundant.

Quoted 7 lines

Note: there is no benefit in checking kmods in Travis Ubuntu. Anyway different kernel versions and distributions are needed, and the Technical Board is looking at moving the Linux kmods out of this repository.

---

Looks good to me, but do you think there's no benefit to even compiling the kernel modules that get shipped?

Otherwise,

Quoted 75 lines
 .travis.yml | 28 ++++------------------------
 1 file changed, 4 insertions(+), 24 deletions(-)
.travis.yml +4 -24
index 22539d8238..19422d4b3c 100644
@@ -38,8 +38,6 @@ before_install: ./.ci/${TRAVIS_OS_NAME}-setup.sh
 env:
   - DEF_LIB="static"
   - DEF_LIB="shared"
-  - DEF_LIB="static" OPTS="-Denable_kmods=false"
-  - DEF_LIB="shared" OPTS="-Denable_kmods=false"
   - DEF_LIB="shared" RUN_TESTS=1
 
 matrix:
@@ -50,13 +48,13 @@ matrix:
       apt:
         packages:
           - *build_32b_packages
-  - env: DEF_LIB="static" OPTS="-Denable_kmods=false" AARCH64=1
+  - env: DEF_LIB="static" AARCH64=1
     compiler: gcc
     addons:
       apt:
         packages:
           - *aarch64_packages
-  - env: DEF_LIB="shared" OPTS="-Denable_kmods=false" AARCH64=1
+  - env: DEF_LIB="shared" AARCH64=1
     compiler: gcc
     addons:
       apt:
@@ -75,13 +73,7 @@ matrix:
         packages:
           - *extra_packages
           - *doc_packages
-  - env: DEF_LIB="static" OPTS="-Denable_kmods=false" EXTRA_PACKAGES=1
-    compiler: gcc
-    addons:
-      apt:
-        packages:
-          - *extra_packages
-  - env: DEF_LIB="shared" OPTS="-Denable_kmods=false" EXTRA_PACKAGES=1
+  - env: DEF_LIB="static" EXTRA_PACKAGES=1
     compiler: gcc
     addons:
       apt:
@@ -106,18 +98,6 @@ matrix:
         packages:
           - *extra_packages
           - *doc_packages
-  - env: DEF_LIB="static" OPTS="-Denable_kmods=false" EXTRA_PACKAGES=1
-    compiler: clang
-    addons:
-      apt:
-        packages:
-          - *extra_packages
-  - env: DEF_LIB="shared" OPTS="-Denable_kmods=false" EXTRA_PACKAGES=1
-    compiler: clang
-    addons:
-      apt:
-        packages:
-          - *extra_packages
   - env: DEF_LIB="static"
     arch: arm64
     compiler: gcc
@@ -146,7 +126,7 @@ matrix:
       apt:
         packages:
           - *required_packages
-  - env: DEF_LIB="shared" OPTS="-Denable_kmods=false" BUILD_DOCS=1
+  - env: DEF_LIB="shared" BUILD_DOCS=1
     arch: arm64
     compiler: gcc
     addons:
#4 lore raw

Re: [dpdk-dev] [PATCH 1/2] ci: remove redundant configs disabling kmods

Quoted 12 lines · Aaron Conole
Quoted 10 lines · Thomas Monjalon

The kernel modules are not built by default since below commit. The Travis CI matrix can be simplified
by removing the redundant option enable_kmods=false, and by removing some jobs which become redundant.

Note: there is no benefit in checking kmods in Travis Ubuntu. Anyway different kernel versions and distributions are needed, and the Technical Board is looking at moving the Linux kmods out of this repository.

Quoted 10 lines
Quoted 2 lines

---

Looks good to me, but do you think there's no benefit to even compiling the kernel modules that get shipped?

Otherwise,

I think we need one compile that turns them on to test.

/Bruce

#5 lore raw

Re: [dpdk-dev] [PATCH 1/2] ci: remove redundant configs disabling kmods

17/02/2020 17:46, Bruce Richardson:

Quoted 16 lines · Aaron Conole
Quoted 15 lines
Quoted 12 lines · Thomas Monjalon

The kernel modules are not built by default since below commit. The Travis CI matrix can be simplified
by removing the redundant option enable_kmods=false, and by removing some jobs which become redundant.

Note: there is no benefit in checking kmods in Travis Ubuntu. Anyway different kernel versions and distributions are needed, and the Technical Board is looking at moving the Linux kmods out of this repository.

---

Quoted 7 lines
Quoted 6 lines

Looks good to me, but do you think there's no benefit to even compiling the kernel modules that get shipped?

Otherwise,

I think we need one compile that turns them on to test.

I don't think so.
Travis is compiling only on Ubuntu.
Kernel modules compilation must be tested on old kernels (RHEL) and latest ones (Fedora).

#6 lore raw

PATCH 2/2 ci: enable more drivers in Travis builds

In reply to Thomas Monjalon

The Travis compilation is missing some dependencies to build these PMDs:
- af_xdp (libbpf)
- ipn3ke (libfdt)
- mlx (libibverbs)

---
 .travis.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.travis.yml +1 -1
index 19422d4b3c..bb32c8edcc 100644
@@ -24,7 +24,7 @@ aarch64_packages: &aarch64_packages
 
 extra_packages: &extra_packages
   - *required_packages
-  - [libbsd-dev, libpcap-dev, libcrypto++-dev, libjansson4, abigail-tools]
+  - [libbsd-dev, libbpf-dev, libpcap-dev, libibverbs-dev, libcrypto++-dev, libfdt-dev, libjansson4, abigail-tools]
 
 build_32b_packages: &build_32b_packages
   - *required_packages
Signature · 1 line
2.25.0
Acked-by on v1 2/2
#7 lore raw

Re: [dpdk-dev] [PATCH 2/2] ci: enable more drivers in Travis builds

Quoted 7 lines · Thomas Monjalon

The Travis compilation is missing some dependencies to build these PMDs:
- af_xdp (libbpf)
- ipn3ke (libfdt)
- mlx (libibverbs)

---

I was going to wait until travis finished to ACK this but I think it's okay. I'll check back in on it later.

Quoted 16 lines
 .travis.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.travis.yml +1 -1
index 19422d4b3c..bb32c8edcc 100644
@@ -24,7 +24,7 @@ aarch64_packages: &aarch64_packages
 
 extra_packages: &extra_packages
   - *required_packages
-  - [libbsd-dev, libpcap-dev, libcrypto++-dev, libjansson4, abigail-tools]
+  - [libbsd-dev, libbpf-dev, libpcap-dev, libibverbs-dev, libcrypto++-dev, libfdt-dev, libjansson4, abigail-tools]
 
 build_32b_packages: &build_32b_packages
   - *required_packages
#8 lore raw

Re: [dpdk-dev] [PATCH 2/2] ci: enable more drivers in Travis builds

17/02/2020 19:00, Aaron Conole:

Quoted 7 lines
Quoted 5 lines · Thomas Monjalon

The Travis compilation is missing some dependencies to build these PMDs:
- af_xdp (libbpf)
- ipn3ke (libfdt)
- mlx (libibverbs)

Quoted 11 lines
Quoted 1 line

I was going to wait until travis finished to ACK this but I think it's okay. I'll check back in on it later.

Quoted 4 lines

extra_packages: &extra_packages
- *required_packages

.travis.yml +1 -1
-  - [libbsd-dev, libpcap-dev, libcrypto++-dev, libjansson4, abigail-tools]
+  - [libbsd-dev, libbpf-dev, libpcap-dev, libibverbs-dev, libcrypto++-dev, libfdt-dev, libjansson4, abigail-tools]

It failed because libbpf is not available:
Unable to locate package libbpf-dev

I will re-spin a v2 without libbpf (not enabling af_xdp PMD).

#9 lore raw

Re: [dpdk-dev] [PATCH 2/2] ci: enable more drivers in Travis builds

Quoted 20 lines · Thomas Monjalon

17/02/2020 19:00, Aaron Conole:

Quoted 7 lines
Quoted 5 lines · Thomas Monjalon

The Travis compilation is missing some dependencies to build these PMDs:
- af_xdp (libbpf)
- ipn3ke (libfdt)
- mlx (libibverbs)

Quoted 11 lines
Quoted 1 line

I was going to wait until travis finished to ACK this but I think it's okay. I'll check back in on it later.

Quoted 4 lines

extra_packages: &extra_packages
- *required_packages

.travis.yml +1 -1
-  - [libbsd-dev, libpcap-dev, libcrypto++-dev, libjansson4, abigail-tools]
+  - [libbsd-dev, libbpf-dev, libpcap-dev, libibverbs-dev, libcrypto++-dev, libfdt-dev, libjansson4, abigail-tools]
Quoted 4 lines

It failed because libbpf is not available:
Unable to locate package libbpf-dev

I will re-spin a v2 without libbpf (not enabling af_xdp PMD).

Okay. Feel free to keep my ack :)

#10 lore raw

v2 cover improve Travis coverage

In reply to Thomas Monjalon

Remove some useless jobs and add more packages
to build more PMDs in Travis.

v2: remove libbpf because not available

Thomas Monjalon (2):
ci: remove redundant configs disabling kmods
ci: enable more drivers in Travis builds

 .travis.yml | 30 +++++-------------------------
 1 file changed, 5 insertions(+), 25 deletions(-)
Signature · 1 line
2.25.0
#11 lore raw

PATCH v2 1/2 ci: remove redundant configs disabling kmods

The kernel modules are not built by default since below commit. The Travis CI matrix can be simplified
by removing the redundant option enable_kmods=false, and by removing some jobs which become redundant.

Note: there is no benefit in checking kmods in Travis Ubuntu. Anyway different kernel versions and distributions are needed, and the Technical Board is looking at moving the Linux kmods out of this repository.

Fixes 91a861e54164 ("config: disable Linux kernel modules by default")
---
 .travis.yml | 28 ++++------------------------
 1 file changed, 4 insertions(+), 24 deletions(-)
.travis.yml +4 -24
index 22539d8238..19422d4b3c 100644
@@ -38,8 +38,6 @@ before_install: ./.ci/${TRAVIS_OS_NAME}-setup.sh
 env:
   - DEF_LIB="static"
   - DEF_LIB="shared"
-  - DEF_LIB="static" OPTS="-Denable_kmods=false"
-  - DEF_LIB="shared" OPTS="-Denable_kmods=false"
   - DEF_LIB="shared" RUN_TESTS=1
 
 matrix:
@@ -50,13 +48,13 @@ matrix:
       apt:
         packages:
           - *build_32b_packages
-  - env: DEF_LIB="static" OPTS="-Denable_kmods=false" AARCH64=1
+  - env: DEF_LIB="static" AARCH64=1
     compiler: gcc
     addons:
       apt:
         packages:
           - *aarch64_packages
-  - env: DEF_LIB="shared" OPTS="-Denable_kmods=false" AARCH64=1
+  - env: DEF_LIB="shared" AARCH64=1
     compiler: gcc
     addons:
       apt:
@@ -75,13 +73,7 @@ matrix:
         packages:
           - *extra_packages
           - *doc_packages
-  - env: DEF_LIB="static" OPTS="-Denable_kmods=false" EXTRA_PACKAGES=1
-    compiler: gcc
-    addons:
-      apt:
-        packages:
-          - *extra_packages
-  - env: DEF_LIB="shared" OPTS="-Denable_kmods=false" EXTRA_PACKAGES=1
+  - env: DEF_LIB="static" EXTRA_PACKAGES=1
     compiler: gcc
     addons:
       apt:
@@ -106,18 +98,6 @@ matrix:
         packages:
           - *extra_packages
           - *doc_packages
-  - env: DEF_LIB="static" OPTS="-Denable_kmods=false" EXTRA_PACKAGES=1
-    compiler: clang
-    addons:
-      apt:
-        packages:
-          - *extra_packages
-  - env: DEF_LIB="shared" OPTS="-Denable_kmods=false" EXTRA_PACKAGES=1
-    compiler: clang
-    addons:
-      apt:
-        packages:
-          - *extra_packages
   - env: DEF_LIB="static"
     arch: arm64
     compiler: gcc
@@ -146,7 +126,7 @@ matrix:
       apt:
         packages:
           - *required_packages
-  - env: DEF_LIB="shared" OPTS="-Denable_kmods=false" BUILD_DOCS=1
+  - env: DEF_LIB="shared" BUILD_DOCS=1
     arch: arm64
     compiler: gcc
     addons:
Signature · 1 line
2.25.0
#12 lore raw

PATCH v2 2/2 ci: enable more drivers in Travis builds

In reply to Thomas Monjalon

The Travis compilation is missing some dependencies to build these PMDs:
- af_xdp (libbpf)
- ipn3ke (libfdt)
- mlx (libibverbs)

Note: libbpf is not yet available on Ubuntu.

---
 .travis.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.travis.yml +1 -1
index 19422d4b3c..40268cd1be 100644
@@ -24,7 +24,7 @@ aarch64_packages: &aarch64_packages
 
 extra_packages: &extra_packages
   - *required_packages
-  - [libbsd-dev, libpcap-dev, libcrypto++-dev, libjansson4, abigail-tools]
+  - [libbsd-dev, libpcap-dev, libibverbs-dev, libcrypto++-dev, libfdt-dev, libjansson4, abigail-tools]
 
 build_32b_packages: &build_32b_packages
   - *required_packages
Signature · 1 line
2.25.0
#13 lore raw

v3 cover improve Travis coverage

In reply to Thomas Monjalon

Remove some useless jobs and add more packages
to build more PMDs in Travis.

v3: reword commit logs
v2: remove libbpf because not available

Thomas Monjalon (2):
ci: remove redundant configs disabling kmods
ci: enable more drivers in Travis builds

 .travis.yml | 30 +++++-------------------------
 1 file changed, 5 insertions(+), 25 deletions(-)
Signature · 1 line
2.25.0
#14 lore raw

PATCH v3 1/2 ci: remove redundant configs disabling kmods

The kernel modules are not built by default since below commit. The Travis CI matrix can be simplified
by removing the redundant option enable_kmods=false, and by removing some jobs which are redundant.

Note: there is no benefit in checking kmods in Travis Ubuntu. Anyway different kernel versions and distributions are needed, and the Technical Board is looking at moving the Linux kmods out of this repository.

Fixes 91a861e54164 ("config: disable Linux kernel modules by default")
---
 .travis.yml | 28 ++++------------------------
 1 file changed, 4 insertions(+), 24 deletions(-)
.travis.yml +4 -24
index 22539d8238..19422d4b3c 100644
@@ -38,8 +38,6 @@ before_install: ./.ci/${TRAVIS_OS_NAME}-setup.sh
 env:
   - DEF_LIB="static"
   - DEF_LIB="shared"
-  - DEF_LIB="static" OPTS="-Denable_kmods=false"
-  - DEF_LIB="shared" OPTS="-Denable_kmods=false"
   - DEF_LIB="shared" RUN_TESTS=1
 
 matrix:
@@ -50,13 +48,13 @@ matrix:
       apt:
         packages:
           - *build_32b_packages
-  - env: DEF_LIB="static" OPTS="-Denable_kmods=false" AARCH64=1
+  - env: DEF_LIB="static" AARCH64=1
     compiler: gcc
     addons:
       apt:
         packages:
           - *aarch64_packages
-  - env: DEF_LIB="shared" OPTS="-Denable_kmods=false" AARCH64=1
+  - env: DEF_LIB="shared" AARCH64=1
     compiler: gcc
     addons:
       apt:
@@ -75,13 +73,7 @@ matrix:
         packages:
           - *extra_packages
           - *doc_packages
-  - env: DEF_LIB="static" OPTS="-Denable_kmods=false" EXTRA_PACKAGES=1
-    compiler: gcc
-    addons:
-      apt:
-        packages:
-          - *extra_packages
-  - env: DEF_LIB="shared" OPTS="-Denable_kmods=false" EXTRA_PACKAGES=1
+  - env: DEF_LIB="static" EXTRA_PACKAGES=1
     compiler: gcc
     addons:
       apt:
@@ -106,18 +98,6 @@ matrix:
         packages:
           - *extra_packages
           - *doc_packages
-  - env: DEF_LIB="static" OPTS="-Denable_kmods=false" EXTRA_PACKAGES=1
-    compiler: clang
-    addons:
-      apt:
-        packages:
-          - *extra_packages
-  - env: DEF_LIB="shared" OPTS="-Denable_kmods=false" EXTRA_PACKAGES=1
-    compiler: clang
-    addons:
-      apt:
-        packages:
-          - *extra_packages
   - env: DEF_LIB="static"
     arch: arm64
     compiler: gcc
@@ -146,7 +126,7 @@ matrix:
       apt:
         packages:
           - *required_packages
-  - env: DEF_LIB="shared" OPTS="-Denable_kmods=false" BUILD_DOCS=1
+  - env: DEF_LIB="shared" BUILD_DOCS=1
     arch: arm64
     compiler: gcc
     addons:
Signature · 1 line
2.25.0
#15 lore raw

PATCH v3 2/2 ci: enable more drivers in Travis builds

In reply to Thomas Monjalon

The Travis compilation is missing some dependencies to build all PMDs. More PMDs are enabled in Travis which runs Ubuntu Bionic Beaver (18.04):
- ipn3ke (libfdt)
- mlx (libibverbs)
The next Ubuntu LTS, Focal Fossa (20.04) will allow to support more:
- af_xdp (libbpf)
- Intel crypto (libipsec-mb 0.53)

---
 .travis.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.travis.yml +1 -1
index 19422d4b3c..40268cd1be 100644
@@ -24,7 +24,7 @@ aarch64_packages: &aarch64_packages
 
 extra_packages: &extra_packages
   - *required_packages
-  - [libbsd-dev, libpcap-dev, libcrypto++-dev, libjansson4, abigail-tools]
+  - [libbsd-dev, libpcap-dev, libibverbs-dev, libcrypto++-dev, libfdt-dev, libjansson4, abigail-tools]
 
 build_32b_packages: &build_32b_packages
   - *required_packages
Signature · 1 line
2.25.0
Acked-by on the v3 series
#16 lore raw
In reply to Thomas Monjalon
Quoted 7 lines · Thomas Monjalon

Remove some useless jobs and add more packages
to build more PMDs in Travis.

v3: reword commit logs
v2: remove libbpf because not available

Quoted 6 lines

Thomas Monjalon (2):
ci: remove redundant configs disabling kmods
ci: enable more drivers in Travis builds

 .travis.yml | 30 +++++-------------------------
 1 file changed, 5 insertions(+), 25 deletions(-)

About enabling kmod compilation again, this can be done in a followup patch.

For the series,

Rebased on master, cache for abi checks jobs deleted. Series applied.

Signature · 1 line
David Marchand