diff mbox series

[ovs-dev,2/2] CI: Update Cirrus CI to run ARM jobs

Message ID 20221128142541.300300-2-amusil@redhat.com
State Accepted
Headers show
Series [ovs-dev,1/2] CI: Refactor the linux-build.sh | expand

Checks

Context Check Description
ovsrobot/apply-robot warning apply and check: warning
ovsrobot/github-robot-_Build_and_Test success github build: passed
ovsrobot/github-robot-_ovn-kubernetes success github build: passed

Commit Message

Ales Musil Nov. 28, 2022, 2:25 p.m. UTC
The Cirrus CI script was configured to run FreeBSD job,
however it seems that this job didn't run for several years.
Update the .cirrus.yml to run ARM jobs instead. As first
phase only the regular "test" for GCC and Clang.

We cannot run sanitizers for now as they are very slow
on Cirrus CI and just timeout without ever finishing.

Signed-off-by: Ales Musil <amusil@redhat.com>
---
 .cirrus.yml | 61 +++++++++++++++++++++++++++++++++--------------------
 1 file changed, 38 insertions(+), 23 deletions(-)

Comments

0-day Robot Nov. 28, 2022, 2:41 p.m. UTC | #1
Bleep bloop.  Greetings Ales Musil, I am a robot and I have tried out your patch.
Thanks for your contribution.

I encountered some error that I wasn't expecting.  See the details below.


checkpatch:
WARNING: Line has trailing whitespace
#47 FILE: .cirrus.yml:14:
      libtool net-tools nmap-ncat openssl openssl-devel python3-devel 

Lines checked: 96, Warnings: 1, Errors: 0


Please check this out.  If you feel there has been an error, please email aconole@redhat.com

Thanks,
0-day Robot
diff mbox series

Patch

diff --git a/.cirrus.yml b/.cirrus.yml
index c71a0a249..5511e5186 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -1,31 +1,46 @@ 
-freebsd_build_task:
+arm_unit_tests_task:
 
-  freebsd_instance:
-    matrix:
-      image: freebsd-12-0-release-amd64
-      image: freebsd-11-2-release-amd64
-    cpu: 4
-    memory: 8G
+  arm_container:
+    image: quay.io/fedora/fedora:37
+    memory: 4G
+    cpu: 2
 
   env:
-    DEPENDENCIES: automake libtool gmake gcc wget openssl
-                  python py27-six py27-sphinx py27-openssl
-                  python3 py36-six py36-openssl
+    ARCH: aarch64
+    CIRRUS_CLONE_SUBMODULES: true
+    PATH: ${HOME}/bin:${HOME}/.local/bin:${PATH}
+    DEPENDENCIES: autoconf automake clang curl ethtool gcc git
+      glibc-langpack-en groff iproute iproute-tc iputils libcap-ng-devel
+      libtool net-tools nmap-ncat openssl openssl-devel python3-devel 
+      python3-pip python3-sphinx tcpdump unbound unbound-devel wget
     matrix:
-      COMPILER: gcc
-      COMPILER: clang
+      - CC: gcc
+        TESTSUITE: test
+        TEST_RANGE: -500
+      - CC: gcc
+        TESTSUITE: test
+        TEST_RANGE: 501-1000
+      - CC: gcc
+        TESTSUITE: test
+        TEST_RANGE: 1001-
+      - CC: clang
+        TESTSUITE: test
+        TEST_RANGE: -500
+      - CC: clang
+        TESTSUITE: test
+        TEST_RANGE: 501-1000
+      - CC: clang
+        TESTSUITE: test
+        TEST_RANGE: 1001-
 
-  prepare_script:
-    - pkg install -y ${DEPENDENCIES}
+  name: ARM64 ${CC} ${TESTSUITE} ${TEST_RANGE}
 
-  configure_script:
-    - ./boot.sh
-    - ./configure CC=${COMPILER} MAKE=gmake OVS_CFLAGS='-Wall' --enable-Werror
-                  || { cat config.log; exit 1; }
+  dependencies_script:
+    - dnf -y update
+    - dnf -y install ${DEPENDENCIES}
 
-  build_script:
-    - gmake -j8
+  prepare_script:
+    - ./.ci/linux-prepare.sh
 
-  check_script:
-    - gmake -j8 check TESTSUITEFLAGS=-j8 RECHECK=yes
-                || { cat ./tests/testsuite.log; exit 1; }
+  build_script:
+    - ./.ci/linux-build.sh