diff options
| author | Michael Albinus | 2024-08-25 12:18:01 +0200 |
|---|---|---|
| committer | Michael Albinus | 2024-08-25 12:18:01 +0200 |
| commit | 1f4da7fe3e8dac64c4da0ea2ff812be521946ea2 (patch) | |
| tree | e92413e89d6d997dc914753a078628ad82fc410e | |
| parent | 71505b723c9fb9de20f6d38be7c73d595e9be3ce (diff) | |
| download | emacs-1f4da7fe3e8dac64c4da0ea2ff812be521946ea2.tar.gz emacs-1f4da7fe3e8dac64c4da0ea2ff812be521946ea2.zip | |
; Still fighting with emba.gnu.org config
* test/infra/gitlab-ci.yml (variables): Remove GIT_DEPTH.
(.job-template): Set cache:policy to pull-push, as before. Check
behavior of docker export.
(.build-template): Remove needs and cache.
(.test-template): Remove cache. Adapt artifacts:paths.
| -rw-r--r-- | test/infra/gitlab-ci.yml | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/test/infra/gitlab-ci.yml b/test/infra/gitlab-ci.yml index 320e869ea8b..de31b37d148 100644 --- a/test/infra/gitlab-ci.yml +++ b/test/infra/gitlab-ci.yml | |||
| @@ -42,7 +42,6 @@ workflow: | |||
| 42 | - when: always | 42 | - when: always |
| 43 | 43 | ||
| 44 | variables: | 44 | variables: |
| 45 | GIT_DEPTH: 0 | ||
| 46 | GIT_STRATEGY: fetch | 45 | GIT_STRATEGY: fetch |
| 47 | EMACS_EMBA_CI: 1 | 46 | EMACS_EMBA_CI: 1 |
| 48 | EMACS_TEST_JUNIT_REPORT: junit-test-report.xml | 47 | EMACS_TEST_JUNIT_REPORT: junit-test-report.xml |
| @@ -76,6 +75,7 @@ default: | |||
| 76 | cache: | 75 | cache: |
| 77 | key: ${CI_COMMIT_SHA} | 76 | key: ${CI_COMMIT_SHA} |
| 78 | paths: [] | 77 | paths: [] |
| 78 | policy: pull-push | ||
| 79 | # These will be saved for followup builds. | 79 | # These will be saved for followup builds. |
| 80 | artifacts: | 80 | artifacts: |
| 81 | expire_in: 24 hrs | 81 | expire_in: 24 hrs |
| @@ -87,8 +87,8 @@ default: | |||
| 87 | - 'docker run -i -e EMACS_EMBA_CI=${EMACS_EMBA_CI} -e EMACS_TEST_JUNIT_REPORT=${EMACS_TEST_JUNIT_REPORT} -e EMACS_TEST_TIMEOUT=${EMACS_TEST_TIMEOUT} -e EMACS_TEST_VERBOSE=${EMACS_TEST_VERBOSE} -e NPROC=`nproc` --volumes-from $(docker ps -q -f "label=com.gitlab.gitlab-runner.job.id=${CI_JOB_ID}"):ro --name ${test_name} ${CI_REGISTRY_IMAGE}:${target}-${BUILD_TAG} /bin/bash -xvc "git fetch ${PWD} HEAD && echo checking out these updated files && git diff --name-only FETCH_HEAD && ( git diff --name-only FETCH_HEAD | xargs git checkout -f FETCH_HEAD ) && make -j \$NPROC && make -k -j \$NPROC ${make_params}"' | 87 | - 'docker run -i -e EMACS_EMBA_CI=${EMACS_EMBA_CI} -e EMACS_TEST_JUNIT_REPORT=${EMACS_TEST_JUNIT_REPORT} -e EMACS_TEST_TIMEOUT=${EMACS_TEST_TIMEOUT} -e EMACS_TEST_VERBOSE=${EMACS_TEST_VERBOSE} -e NPROC=`nproc` --volumes-from $(docker ps -q -f "label=com.gitlab.gitlab-runner.job.id=${CI_JOB_ID}"):ro --name ${test_name} ${CI_REGISTRY_IMAGE}:${target}-${BUILD_TAG} /bin/bash -xvc "git fetch ${PWD} HEAD && echo checking out these updated files && git diff --name-only FETCH_HEAD && ( git diff --name-only FETCH_HEAD | xargs git checkout -f FETCH_HEAD ) && make -j \$NPROC && make -k -j \$NPROC ${make_params}"' |
| 88 | after_script: | 88 | after_script: |
| 89 | # - docker ps -a | 89 | # - docker ps -a |
| 90 | # - printenv | 90 | - pwd; printenv |
| 91 | # - test -n "$(docker ps -aq -f name=${test_name})" && ( docker export ${test_name} | tar -tvf - ) | 91 | - test -n "$(docker ps -aq -f name=${test_name})" && ( docker export ${test_name} | tar -tvf - ) |
| 92 | # Prepare test artifacts. | 92 | # Prepare test artifacts. |
| 93 | - test -n "$(docker ps -aq -f name=${test_name})" && docker cp ${test_name}:checkout/test ${test_name} | 93 | - test -n "$(docker ps -aq -f name=${test_name})" && docker cp ${test_name}:checkout/test ${test_name} |
| 94 | - test -n "$(docker ps -aq -f name=${test_name})" && docker cp ${test_name}:checkout/configure.log ${test_name} | 94 | - test -n "$(docker ps -aq -f name=${test_name})" && docker cp ${test_name}:checkout/configure.log ${test_name} |
| @@ -98,9 +98,6 @@ default: | |||
| 98 | - find ${test_name} -type d -depth -exec rmdir {} + 2>/dev/null | 98 | - find ${test_name} -type d -depth -exec rmdir {} + 2>/dev/null |
| 99 | 99 | ||
| 100 | .build-template: | 100 | .build-template: |
| 101 | needs: [] | ||
| 102 | cache: | ||
| 103 | policy: push | ||
| 104 | rules: | 101 | rules: |
| 105 | - if: '$CI_PIPELINE_SOURCE == "web"' | 102 | - if: '$CI_PIPELINE_SOURCE == "web"' |
| 106 | when: always | 103 | when: always |
| @@ -131,15 +128,13 @@ default: | |||
| 131 | - docker push ${CI_REGISTRY_IMAGE}:${target}-${BUILD_TAG} | 128 | - docker push ${CI_REGISTRY_IMAGE}:${target}-${BUILD_TAG} |
| 132 | 129 | ||
| 133 | .test-template: | 130 | .test-template: |
| 134 | cache: | ||
| 135 | policy: pull | ||
| 136 | artifacts: | 131 | artifacts: |
| 137 | name: ${test_name} | 132 | name: ${test_name} |
| 138 | public: true | 133 | public: true |
| 139 | expire_in: 1 week | 134 | expire_in: 1 week |
| 140 | when: always | 135 | when: always |
| 141 | paths: | 136 | paths: |
| 142 | - ${test_name}/ | 137 | - "${test_name}/**.log" |
| 143 | reports: | 138 | reports: |
| 144 | junit: ${test_name}/${EMACS_TEST_JUNIT_REPORT} | 139 | junit: ${test_name}/${EMACS_TEST_JUNIT_REPORT} |
| 145 | 140 | ||