Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Created test scripts with xUnit, auto-scaling parallelism, and empty test detection; and added them to pipeline #6963

Merged
merged 8 commits into from
Mar 20, 2019
122 changes: 32 additions & 90 deletions .buildkite/long_running_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,21 +156,14 @@ steps:

- wait

- command: |
echo "--- :arrow_down: Downloading build directory" && \
- command: | # Ubuntu 16.04 Tests
echo "--- :arrow_down: Downloading Build Directory" && \
buildkite-agent artifact download "build.tar.gz" . --step ":ubuntu: 16.04 Build" && \
tar -zxf build.tar.gz && \
echo "--- :m: Starting MongoDB" && \
~/bin/mongod --fork --dbpath ~/data/mongodb -f ~/etc/mongod.conf --logpath "$(pwd)"/mongod.log && \
echo "+++ :microscope: Running LR Tests" && \
cd /data/job/build && PATH=\$PATH:~/opt/mongodb/bin ctest -L long_running_tests --output-on-failure
./scripts/long-running-test.sh
label: ":ubuntu: 16.04 LR Tests"
agents:
queue: "automation-large-builder-fleet"
artifact_paths:
- "mongod.log"
- "build/genesis.json"
- "build/config.ini"
plugins:
ecr#v1.1.4:
login: true
Expand All @@ -181,23 +174,16 @@ steps:
debug: true
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:ubuntu16_2-1"
workdir: /data/job
timeout: 60
timeout: 90

- command: |
echo "--- :arrow_down: Downloading build directory" && \
- command: | # Ubuntu 18.04 Tests
echo "--- :arrow_down: Downloading Build Directory" && \
buildkite-agent artifact download "build.tar.gz" . --step ":ubuntu: 18.04 Build" && \
tar -zxf build.tar.gz && \
echo "--- :m: Starting MongoDB" && \
~/bin/mongod --fork --dbpath ~/data/mongodb -f ~/etc/mongod.conf --logpath "$(pwd)"/mongod.log && \
echo "+++ :microscope: Running LR Tests" && \
cd /data/job/build && PATH=\$PATH:~/opt/mongodb/bin ctest -L long_running_tests --output-on-failure
./scripts/long-running-test.sh
label: ":ubuntu: 18.04 LR Tests"
agents:
queue: "automation-large-builder-fleet"
artifact_paths:
- "mongod.log"
- "build/genesis.json"
- "build/config.ini"
plugins:
ecr#v1.1.4:
login: true
Expand All @@ -208,23 +194,16 @@ steps:
debug: true
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:ubuntu18_2-1"
workdir: /data/job
timeout: 60
timeout: 90

- command: |
echo "--- :arrow_down: Downloading build directory" && \
- command: | # centOS Tests
echo "--- :arrow_down: Downloading Build Directory" && \
buildkite-agent artifact download "build.tar.gz" . --step ":centos: 7 Build" && \
tar -zxf build.tar.gz && \
echo "--- :m: Starting MongoDB" && \
~/bin/mongod --fork --dbpath ~/data/mongodb -f ~/etc/mongod.conf --logpath "$(pwd)"/mongod.log && \
echo "+++ :microscope: Running LR Tests" && \
cd /data/job/build && PATH=\$PATH:~/opt/mongodb/bin ctest -L long_running_tests --output-on-failure
./scripts/long-running-test.sh
label: ":centos: 7 LR Tests"
agents:
queue: "automation-large-builder-fleet"
artifact_paths:
- "mongod.log"
- "build/genesis.json"
- "build/config.ini"
plugins:
ecr#v1.1.4:
login: true
Expand All @@ -235,23 +214,16 @@ steps:
debug: true
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:centos7_2-1"
workdir: /data/job
timeout: 60
timeout: 90

- command: |
echo "--- :arrow_down: Downloading build directory" && \
- command: | # Amazon AWS-1 Linux Tests
echo "--- :arrow_down: Downloading Build Directory" && \
buildkite-agent artifact download "build.tar.gz" . --step ":aws: 1 Build" && \
tar -zxf build.tar.gz && \
echo "--- :m: Starting MongoDB" && \
~/bin/mongod --fork --dbpath ~/data/mongodb -f ~/etc/mongod.conf --logpath "$(pwd)"/mongod.log && \
echo "+++ :microscope: Running LR Tests" && \
cd /data/job/build && PATH=\$PATH:~/opt/mongodb/bin ctest -L long_running_tests --output-on-failure
./scripts/long-running-test.sh
label: ":aws: 1 LR Tests"
agents:
queue: "automation-large-builder-fleet"
artifact_paths:
- "mongod.log"
- "build/genesis.json"
- "build/config.ini"
plugins:
ecr#v1.1.4:
login: true
Expand All @@ -262,23 +234,16 @@ steps:
debug: true
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:amazonlinux1_2-1"
workdir: /data/job
timeout: 60
timeout: 90

- command: |
echo "--- :arrow_down: Downloading build directory" && \
- command: | # Amazon AWS-2 Linux Tests
echo "--- :arrow_down: Downloading Build Directory" && \
buildkite-agent artifact download "build.tar.gz" . --step ":aws: 2 Build" && \
tar -zxf build.tar.gz && \
echo "--- :m: Starting MongoDB" && \
~/bin/mongod --fork --dbpath ~/data/mongodb -f ~/etc/mongod.conf --logpath "$(pwd)"/mongod.log && \
echo "+++ :microscope: Running LR Tests" && \
cd /data/job/build && PATH=\$PATH:~/opt/mongodb/bin ctest -L long_running_tests --output-on-failure
./scripts/long-running-test.sh
label: ":aws: 2 LR Tests"
agents:
queue: "automation-large-builder-fleet"
artifact_paths:
- "mongod.log"
- "build/genesis.json"
- "build/config.ini"
plugins:
ecr#v1.1.4:
login: true
Expand All @@ -289,23 +254,16 @@ steps:
debug: true
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:amazonlinux2_2-1"
workdir: /data/job
timeout: 60
timeout: 90

- command: |
echo "--- :arrow_down: Downloading build directory" && \
- command: | # Fedora Tests
echo "--- :arrow_down: Downloading Build Directory" && \
buildkite-agent artifact download "build.tar.gz" . --step ":fedora: 27 Build" && \
tar -zxf build.tar.gz && \
echo "--- :m: Starting MongoDB" && \
~/bin/mongod --fork --dbpath ~/data/mongodb -f ~/etc/mongod.conf --logpath "$(pwd)"/mongod.log && \
echo "+++ :microscope: Running LR Tests" && \
cd /data/job/build && PATH=\$PATH:~/opt/mongodb/bin ctest -L long_running_tests --output-on-failure
./scripts/long-running-test.sh
label: ":fedora: 27 LR Tests"
agents:
queue: "automation-large-builder-fleet"
artifact_paths:
- "mongod.log"
- "build/genesis.json"
- "build/config.ini"
plugins:
ecr#v1.1.4:
login: true
Expand All @@ -316,42 +274,26 @@ steps:
debug: true
image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:fedora27_2-1"
workdir: /data/job
timeout: 60
timeout: 90

- command: |
echo "--- :arrow_down: Downloading build directory" && \
- command: | # High Sierra Tests
echo "--- :arrow_down: Downloading Build Directory" && \
buildkite-agent artifact download "build.tar.gz" . --step ":darwin: High Sierra Build" && \
tar -zxf build.tar.gz && \
echo "--- :m: Starting MongoDB" && \
~/bin/mongod --fork --dbpath ~/data/mongodb -f ~/etc/mongod.conf --logpath "$(pwd)"/mongod.log && \
echo "+++ :microscope: Running LR Tests" && \
ln -s "$(pwd)" /data/job && cd /data/job/build && PATH=\$PATH:~/opt/mongodb/bin ctest -L long_running_tests --output-on-failure
ln -s "$(pwd)" /data/job && ./scripts/long-running-test.sh
label: ":darwin: High Sierra LR Tests"
agents:
- "role=tester-v2-1"
- "os=high-sierra"
artifact_paths:
- "mongod.log"
- "build/genesis.json"
- "build/config.ini"
timeout: 60
timeout: 90

- command: |
echo "--- :arrow_down: Downloading build directory" && \
- command: | # Mojave Tests
echo "--- :arrow_down: Downloading Build Directory" && \
buildkite-agent artifact download "build.tar.gz" . --step ":darwin: Mojave Build" && \
tar -zxf build.tar.gz && \
echo "--- :m: Starting MongoDB" && \
~/bin/mongod --fork --dbpath ~/data/mongodb -f ~/etc/mongod.conf --logpath "$(pwd)"/mongod.log && \
echo "+++ :microscope: Running LR Tests" && \
ln -s "$(pwd)" /data/job && cd /data/job/build && PATH=\$PATH:~/opt/mongodb/bin ctest -L long_running_tests --output-on-failure
ln -s "$(pwd)" /data/job && ./scripts/long-running-test.sh
label: ":darwin: Mojave LR Tests"
agents:
- "role=tester-v2-1"
- "os=mojave"
artifact_paths:
- "mongod.log"
- "build/genesis.json"
- "build/config.ini"
timeout: 60


timeout: 90
Loading