From 1a895470e2c43a9e16d24c6aa21b655a37a10e27 Mon Sep 17 00:00:00 2001 From: Katerina Koukiou Date: Thu, 31 Oct 2024 08:31:05 +0100 Subject: [PATCH] Stop travis runs by removing config file and update documentation We run our tests reliably on testing farm and we stopped our travis subscription. --- .travis.yml | 8 -------- README.rst | 6 ------ plans/testing-farm.fmf | 2 +- scripts/{run_travis.sh => run-ci.sh} | 2 +- 4 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 .travis.yml rename scripts/{run_travis.sh => run-ci.sh} (94%) diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5ef1c0af..00000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -dist: focal -sudo: true -language: minimal -addons: - apt: - packages: - - nftables -script: scripts/run_travis.sh diff --git a/README.rst b/README.rst index 77f8fa0a..0a1ecf78 100644 --- a/README.rst +++ b/README.rst @@ -368,12 +368,6 @@ created PRs, however, only committers have privileged to execute `tmt workflow`_ by comment ``/test-tmt`` on the PR. After a while status on PR will have a link to TMT run. -Thus PR tests run on Travis_, which is one of the few public CI providers who -offer ``/dev/kvm``. The entry point is `.travis.yml`_. The ``run_travis.sh`` -script checks which tests are affected by the PR, and runs the first six in -the runner container's launch script. Travis jobs are limited to 50 minutes, so -we cannot currently run more; but that should suffice in most cases. - PR runs do *not* auto-retry test failures. This avoids introducing unstable tests, and PRs usually just run a few tests so that flakes are much less likely to ruin the result. diff --git a/plans/testing-farm.fmf b/plans/testing-farm.fmf index 0bf4d7f0..0343aee0 100644 --- a/plans/testing-farm.fmf +++ b/plans/testing-farm.fmf @@ -37,7 +37,7 @@ discover: trap "cp -rv data/logs/ ${TMT_TEST_DATA}/" EXIT INT QUIT PIPE cd /root/kickstart-tests - scripts/run_travis.sh + scripts/run-ci.sh duration: 6h diff --git a/scripts/run_travis.sh b/scripts/run-ci.sh similarity index 94% rename from scripts/run_travis.sh rename to scripts/run-ci.sh index c19d182d..db5d68df 100755 --- a/scripts/run_travis.sh +++ b/scripts/run-ci.sh @@ -12,7 +12,6 @@ CHANGED_TESTS=$(git diff --name-only upstream/master..HEAD -- *.ks.in $(find -ma TESTS=$CHANGED_TESTS # if the PR changes anything in the test runner, or does not touch any tests, pick a few representative tests -# FIXME: Once the runner container can run groups properly, replace with a TESTTYPE="travis" group if [ -z "$TESTS" ] || [ -n "$(git diff --name-only upstream/master..HEAD -- containers scripts)" ]; then TESTS="$TESTS bindtomac-network-device-default-httpks @@ -35,6 +34,7 @@ sudo -n chmod 666 /dev/kvm sudo -n containers/squid.sh start +# FIXME: Maybe it's not needed with testing farm # With parallel jobs, each test takes a little longer than 10 minutes, which makes Travis abort # # Avoid this by printing a keep-alive '.' line every minute