From eeb83215e0bf6fef5571552311e41f3e6ee22d65 Mon Sep 17 00:00:00 2001 From: Feda Curic Date: Wed, 20 Sep 2023 10:48:32 +0200 Subject: [PATCH] Remove unused jenkins files --- ci/jenkins/Jenkinsfile-libres | 35 ------------ ci/jenkins/Jenkinsfile-performance | 76 --------------------------- ci/jenkins/testkomodo-ERT.sh | 27 ---------- ci/jenkins/testkomodo-libres-ctest.sh | 28 ---------- ci/jenkins/testkomodo-repeat-flaky.sh | 55 ------------------- 5 files changed, 221 deletions(-) delete mode 100644 ci/jenkins/Jenkinsfile-libres delete mode 100644 ci/jenkins/Jenkinsfile-performance delete mode 100755 ci/jenkins/testkomodo-ERT.sh delete mode 100755 ci/jenkins/testkomodo-libres-ctest.sh delete mode 100755 ci/jenkins/testkomodo-repeat-flaky.sh diff --git a/ci/jenkins/Jenkinsfile-libres b/ci/jenkins/Jenkinsfile-libres deleted file mode 100644 index 08c92eebfe8..00000000000 --- a/ci/jenkins/Jenkinsfile-libres +++ /dev/null @@ -1,35 +0,0 @@ -pipeline { - agent { label 'scout-ci7' } - environment { - WORKING_DIR = sh(script: 'pwd', , returnStdout: true).trim() - } - stages { - stage('setup') { - steps { - echo "Started with WORKING_DIR: ${WORKING_DIR}" - sh 'sh ci/jenkins/test_libres_jenkins.sh setup' - } - } - stage('build libres') { - steps { - sh 'sh ci/jenkins/test_libres_jenkins.sh build_ert_clib' - } - } - stage('build res') { - steps { - sh 'sh ci/jenkins/test_libres_jenkins.sh build_ert_dev' - } - } - stage('run ctest') { - steps { - sh 'sh ci/jenkins/test_libres_jenkins.sh run_ctest' - } - } - } - - post { - cleanup { - deleteDir() - } - } -} diff --git a/ci/jenkins/Jenkinsfile-performance b/ci/jenkins/Jenkinsfile-performance deleted file mode 100644 index d79cee8172c..00000000000 --- a/ci/jenkins/Jenkinsfile-performance +++ /dev/null @@ -1,76 +0,0 @@ -pipeline { - agent { label 'performance-test' } - - parameters { - string( - name: 'COMPARE_VERSION', - defaultValue: '0001', - description: 'The checked in baseline to compare against. Will also check against previous version to guard against large inadvertent fluctuations in the baseline.' - ) - string( - name: 'PYTEST_OPTIONS', - defaultValue: '-sv --runslow --benchmark-disable-gc', - description: 'Optional parameters for pytest, eg. --benchmark-cprofile=tottime --benchmark-storage=file:///scratch/oompf/jenkins-ert-performance/.benchmarks' - ) - } - - environment { - BASE_DIR = '/scratch/oompf/jenkins-ert-performance/share_template' - } - - stages { - stage('install') { - steps { - sh """ - python3 -m venv env - source env/bin/activate - source /opt/rh/devtoolset-9/enable - pip install --upgrade pip - pip install . - pip install -r dev-requirements.txt - """ - } - } - stage('run benchmarks dark storage') { - steps { - sh """ - source env/bin/activate - pytest tests/performance_tests/test_dark_storage_performance.py \ - --benchmark-save=benchmark-dark-storage-jenkins \ - --benchmark-compare=${COMPARE_VERSION} \ - --benchmark-compare-fail=median:15% \ - --benchmark-autosave \ - --template-config-path=${env.BASE_DIR} \ - --benchmark-min-rounds=25 \ - --benchmark-sort=fullname \ - --benchmark-warmup=on \ - ${PYTEST_OPTIONS} - """ - } - } - stage('run benchmarks enkf_fs') { - steps { - sh """ - source env/bin/activate - pytest tests/performance_tests/enkf \ - --benchmark-save=benchmark-enkf-fs-jenkins \ - --benchmark-compare=${COMPARE_VERSION} \ - --benchmark-compare-fail=median:50% \ - --benchmark-autosave \ - --template-config-path=${env.BASE_DIR} \ - --benchmark-min-rounds=25 \ - --benchmark-sort=fullname \ - --benchmark-warmup=on \ - ${PYTEST_OPTIONS} - """ - } - } - } - post { - always { - archiveArtifacts( - artifacts: ".benchmarks/**" - ) - } - } -} diff --git a/ci/jenkins/testkomodo-ERT.sh b/ci/jenkins/testkomodo-ERT.sh deleted file mode 100755 index f7d49f8ffc7..00000000000 --- a/ci/jenkins/testkomodo-ERT.sh +++ /dev/null @@ -1,27 +0,0 @@ -copy_test_files () { - cp -r ${CI_SOURCE_ROOT}/tests ${CI_TEST_ROOT} - - ln -s ${CI_SOURCE_ROOT}/test-data ${CI_TEST_ROOT}/test-data - ln -s ${CI_SOURCE_ROOT}/src ${CI_TEST_ROOT}/src - - # Trick ERT to find a fake source root - mkdir ${CI_TEST_ROOT}/.git - - # Keep pytest configuration: - ln -s ${CI_SOURCE_ROOT}/pyproject.toml ${CI_TEST_ROOT}/pyproject.toml -} - -install_test_dependencies () { - pip install -r dev-requirements.txt -} - -install_package () { - pip install . --no-deps -} - -start_tests () { - export NO_PROXY=localhost,127.0.0.1 - - pytest -m "not requires_window_manager" tests/ - popd -} diff --git a/ci/jenkins/testkomodo-libres-ctest.sh b/ci/jenkins/testkomodo-libres-ctest.sh deleted file mode 100755 index 0cc10d223f4..00000000000 --- a/ci/jenkins/testkomodo-libres-ctest.sh +++ /dev/null @@ -1,28 +0,0 @@ -build() { - mkdir build - cmake -S src/clib -B build -DCMAKE_BUILD_TYPE=Debug \ - -DEQUINOR_TESTDATA_ROOT=/project/res-testdata/ErtTestData - cmake --build build -} - -copy_test_files () { - mkdir -p ${CI_TEST_ROOT}/src/clib/res/fm/rms -} - -install_test_dependencies () { - # empty to avoid running default install - : -} - -install_package () { - ci_install_cmake - ci_install_conan - - python -m pip install pybind11 - build -} - -start_tests () { - export ERT_SITE_CONFIG=${CI_SOURCE_ROOT}/src/ert/shared/share/ert/site-config - ctest -j $(nproc) -E Lint --output-on-failure -} diff --git a/ci/jenkins/testkomodo-repeat-flaky.sh b/ci/jenkins/testkomodo-repeat-flaky.sh deleted file mode 100755 index 66c59dc9d7d..00000000000 --- a/ci/jenkins/testkomodo-repeat-flaky.sh +++ /dev/null @@ -1,55 +0,0 @@ -copy_test_files () { - cp -r ${CI_SOURCE_ROOT}/tests ${CI_TEST_ROOT} - ln -s ${CI_SOURCE_ROOT}/test-data ${CI_TEST_ROOT}/test-data - - ln -s ${CI_SOURCE_ROOT}/src ${CI_TEST_ROOT}/src - - # Trick ERT to find a fake source root - mkdir ${CI_TEST_ROOT}/.git - - # Keep pytest configuration: - ln -s ${CI_SOURCE_ROOT}/pyproject.toml ${CI_TEST_ROOT}/pyproject.toml -} - -install_test_dependencies () { - pip install -r dev-requirements.txt - pip install pytest-repeat -} - -run_flaky_tests(){ - # If a developer would like to test a specific function, remove these - # lines and include the specific tests one would like to run. - # The internal job will use the testkomodo-repeat-flaky.sh from the branch - # when running a PR job. Any periodically running jobs will use the version - # on main - hence there will be no consequences for said jobs. - # A test on the internal CI is activated by writing a comment with "test flaky please" - # Requires that the user is allowed to run the tests. - xvfb-run -s "-screen 0 640x480x24" --auto-servernum python -m \ - pytest tests/ -m "not requires_window_manager" -} - -start_tests () { - export NO_PROXY=localhost,127.0.0.1 - export ERT_SHOW_BACKTRACE=1 - - pushd ${CI_TEST_ROOT} - set +e - - let failures=0 - - if [[ -z "${N_RUNS}" ]]; then - n_runs=10 - else - n_runs=${N_RUNS} - fi - - for ((i = 0; i <= $n_runs; i++)) - do - if ! run_flaky_tests; then - ((failures +=1)) - fi - done - export N_FAILED_RUNS=$failures - set -e - popd -}