This is an automated email from the ASF dual-hosted git repository.
upthewaterspout pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/develop by this push:
new 2519b0c [GEODE-5427] Isolate PR pipeline jobs from other pipelines.
(#2135)
2519b0c is described below
commit 2519b0cb5e137096bc0d78141f1f1c8813a2b371
Author: Sean Goller <[email protected]>
AuthorDate: Fri Jul 13 09:05:30 2018 -0700
[GEODE-5427] Isolate PR pipeline jobs from other pipelines. (#2135)
Add tags to PR pipeline jobs so that they will run on separately
allocated workers. Also limit the number of instances of a given job in
the PR pipeline to 5.
---
ci/pipelines/pull-request/base.yml | 7 +++++--
ci/pipelines/pull-request/deploy_pr_pipeline.sh | 5 ++++-
ci/pipelines/pull-request/pr-template.yml | 3 ++-
3 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/ci/pipelines/pull-request/base.yml
b/ci/pipelines/pull-request/base.yml
index 1f0c964..23a98f3 100644
--- a/ci/pipelines/pull-request/base.yml
+++ b/ci/pipelines/pull-request/base.yml
@@ -59,6 +59,7 @@ groups:
jobs:
- name: Build
serial: false
+ max_in_flight: (( grab metadata.max_in_flight ))
public: true
plan:
- aggregate:
@@ -86,6 +87,7 @@ jobs:
status: pending
- task: build
+ tags: [pr]
image: docker-geode-build-image
config:
platform: linux
@@ -117,6 +119,7 @@ jobs:
- name: DistributedTest
serial: false
+ max_in_flight: (( grab metadata.max_in_flight ))
public: true
plan:
- aggregate:
@@ -146,7 +149,7 @@ jobs:
- task: run-distributed-core
image: docker-geode-build-image
- tags: [large]
+ tags: [pr_large]
privileged: true
timeout: 8h
config:
@@ -189,7 +192,7 @@ jobs:
path: geode/ci/scripts/test-archive.sh
- task: run-distributed-everything-else
image: docker-geode-build-image
- tags: [large]
+ tags: [pr_large]
privileged: true
timeout: 8h
config:
diff --git a/ci/pipelines/pull-request/deploy_pr_pipeline.sh
b/ci/pipelines/pull-request/deploy_pr_pipeline.sh
index 1cf3904..ca102db 100755
--- a/ci/pipelines/pull-request/deploy_pr_pipeline.sh
+++ b/ci/pipelines/pull-request/deploy_pr_pipeline.sh
@@ -47,6 +47,7 @@ if [ "${GEODE_BRANCH}" = "HEAD" ]; then
fi
SANITIZED_GEODE_BRANCH=$(echo ${GEODE_BRANCH} | tr "/" "-")
+MAX_IN_FLIGHT=5
BIN_DIR=${OUTPUT_DIRECTORY}/bin
TMP_DIR=${OUTPUT_DIRECTORY}/tmp
@@ -62,7 +63,8 @@ for i in ${GEODEBUILDDIR}/test-stubs/*.yml; do
${SPRUCE} merge --prune metadata \
<(echo "metadata:"; \
echo " geode-build-branch: ${GEODE_BRANCH}"; \
- echo " geode-fork: ${GEODE_FORK}") \
+ echo " geode-fork: ${GEODE_FORK}"; \
+ echo " max_in_flight: ${MAX_IN_FLIGHT}") \
${SCRIPTDIR}/pr-template.yml \
${i} > ${TMP_DIR}/${X}
done
@@ -73,6 +75,7 @@ ${SPRUCE} merge --prune metadata \
<(echo "metadata:"; \
echo " geode-build-branch: ${GEODE_BRANCH}"; \
echo " geode-fork: ${GEODE_FORK}"; \
+ echo " max_in_flight: ${MAX_IN_FLIGHT}"; \
echo " ") \
${TMP_DIR}/*.yml > ${TMP_DIR}/final.yml
diff --git a/ci/pipelines/pull-request/pr-template.yml
b/ci/pipelines/pull-request/pr-template.yml
index d659a84..f91f216 100644
--- a/ci/pipelines/pull-request/pr-template.yml
+++ b/ci/pipelines/pull-request/pr-template.yml
@@ -19,6 +19,7 @@
jobs:
- name: (( grab metadata.job.name ))
serial: false
+ max_in_flight: (( grab metadata.max_in_flight ))
public: true
plan:
- aggregate:
@@ -47,7 +48,7 @@ jobs:
- task: runtests
image: docker-geode-build-image
- tags: (( grab metadata.job.size ))
+ tags: [pr]
privileged: true
timeout: (( grab metadata.job.timeout ))
config: