[PATCH] CI: don't use swap

Ralph Böhme slow at samba.org
Mon Mar 4 06:17:54 UTC 2019


Hi!

As discusse don the team list, it seems gitlab CI doesn't allow the use of swap 
anymore.

I've run a patchset with the attached patch on-top and it passed:

https://gitlab.com/samba-team/devel/samba/pipelines/50089003

Looks like we do well generally without swap.

Please review&push if happy. Thanks!

-slow

-- 
Ralph Boehme, Samba Team                https://samba.org/
Samba Developer, SerNet GmbH   https://sernet.de/en/samba/
GPG-Fingerprint   FAE2C6088A24252051C559E4AA1E9B7126399E46
-------------- next part --------------
From 025ef29c62ba00d6ff5546c1726fc295f5f36d92 Mon Sep 17 00:00:00 2001
From: Ralph Boehme <slow at samba.org>
Date: Sun, 3 Mar 2019 22:09:26 +0100
Subject: [PATCH] CI: don't use swap

Signed-off-by: Ralph Boehme <slow at samba.org>
---
 .gitlab-ci.yml | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 702f43760f4..1e836c6f28d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,12 +19,6 @@
   before_script:
     - uname -a
     - lsb_release -a
-    - echo "Build starting (preparing swap)..."
-    - if [ $(df -m / --output=avail | tail -n1) -gt 10240 ]; then
-        sudo dd if=/dev/zero of=/samba-swap bs=1M count=6144;
-        sudo mkswap /samba-swap;
-        sudo swapon /samba-swap;
-      fi
     - mount
     - df -h
     - free -h
-- 
2.17.2



More information about the samba-technical mailing list