diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml deleted file mode 100644 index fff4c036c35..00000000000 --- a/.buildkite/pipeline.yml +++ /dev/null @@ -1,667 +0,0 @@ -steps: - - command: | # Amazon Linux 1 Build - echo "+++ :hammer: Building" - ./scripts/eosio_build.sh -y - echo "--- :compression: Compressing build directory" - tar -pczf build.tar.gz build - if [[ ! -f build.tar.gz ]]; then echo 'ERROR: No build.tar.gz artifact found!' && exit 1; fi - label: ":aws: Amazon Linux 1 Build" - agents: - queue: "automation-large-builder-fleet" - artifact_paths: "build.tar.gz" - plugins: - ecr#v1.1.4: - login: true - account_ids: "436617320021" - no-include-email: true - region: "us-west-2" - docker#v2.1.0: - debug: true - image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:amazonlinux1_2-2" - propagate-environment: true - workdir: /data/job - timeout: 60 - - - command: | # Amazon Linux 2 Build - echo "+++ :hammer: Building" - ./scripts/eosio_build.sh -y - echo "--- :compression: Compressing build directory" - tar -pczf build.tar.gz build - if [[ ! -f build.tar.gz ]]; then echo 'ERROR: No build.tar.gz artifact found!' && exit 1; fi - label: ":aws: Amazon Linux 2 Build" - agents: - queue: "automation-large-builder-fleet" - artifact_paths: "build.tar.gz" - plugins: - ecr#v1.1.4: - login: true - account_ids: "436617320021" - no-include-email: true - region: "us-west-2" - docker#v2.1.0: - debug: true - image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:amazonlinux2_2-2" - propagate-environment: true - workdir: /data/job - timeout: 60 - - - command: | # CentOS 7 Build - echo "+++ :hammer: Building" - ./scripts/eosio_build.sh -y - echo "--- :compression: Compressing build directory" - tar -pczf build.tar.gz build - if [[ ! -f build.tar.gz ]]; then echo 'ERROR: No build.tar.gz artifact found!' && exit 1; fi - label: ":centos: CentOS 7 Build" - agents: - queue: "automation-large-builder-fleet" - artifact_paths: "build.tar.gz" - plugins: - ecr#v1.1.4: - login: true - account_ids: "436617320021" - no-include-email: true - region: "us-west-2" - docker#v2.1.0: - debug: true - image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:centos7_2-2" - propagate-environment: true - workdir: /data/job - timeout: 60 - - - command: | # Fedora 27 Build - echo "+++ :hammer: Building" - ./scripts/eosio_build.sh -y - echo "--- :compression: Compressing build directory" - tar -pczf build.tar.gz build - if [[ ! -f build.tar.gz ]]; then echo 'ERROR: No build.tar.gz artifact found!' && exit 1; fi - label: ":fedora: Fedora 27 Build" - agents: - queue: "automation-large-builder-fleet" - artifact_paths: "build.tar.gz" - plugins: - ecr#v1.1.4: - login: true - account_ids: "436617320021" - no-include-email: true - region: "us-west-2" - docker#v2.1.0: - debug: true - image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:fedora27_2-2" - propagate-environment: true - workdir: /data/job - timeout: 60 - - - command: | # Ubuntu 16.04 Build - echo "+++ :hammer: Building" - ./scripts/eosio_build.sh -y - echo "--- :compression: Compressing build directory" - tar -pczf build.tar.gz build - if [[ ! -f build.tar.gz ]]; then echo 'ERROR: No build.tar.gz artifact found!' && exit 1; fi - label: ":ubuntu: Ubuntu 16.04 Build" - agents: - queue: "automation-large-builder-fleet" - artifact_paths: "build.tar.gz" - plugins: - ecr#v1.1.4: - login: true - account_ids: "436617320021" - no-include-email: true - region: "us-west-2" - docker#v2.1.0: - debug: true - image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:ubuntu16_2-2" - propagate-environment: true - workdir: /data/job - timeout: 60 - - - command: | # Ubuntu 18.04 Build - echo "+++ :hammer: Building" - ./scripts/eosio_build.sh -y - echo "--- :compression: Compressing build directory" - tar -pczf build.tar.gz build - if [[ ! -f build.tar.gz ]]; then echo 'ERROR: No build.tar.gz artifact found!' && exit 1; fi - label: ":ubuntu: Ubuntu 18.04 Build" - agents: - queue: "automation-large-builder-fleet" - artifact_paths: "build.tar.gz" - plugins: - ecr#v1.1.4: - login: true - account_ids: "436617320021" - no-include-email: true - region: "us-west-2" - docker#v2.1.0: - debug: true - image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:ubuntu18_2-2" - propagate-environment: true - workdir: /data/job - timeout: 60 - - - command: | # macOS High Sierra Build - echo "--- Creating symbolic link to job directory :file_folder:" - sleep 5 - ln -s "$(pwd)" /data/job - cd /data/job - echo "+++ Building :hammer:" - ./scripts/eosio_build.sh -y - echo "--- Compressing build directory :compression:" - tar -pczf build.tar.gz build - if [[ ! -f build.tar.gz ]]; then echo 'ERROR: No build.tar.gz artifact found!' && exit 1; fi - label: ":darwin: High Sierra Build" - agents: - - "role=builder-v2-1" - - "os=high-sierra" - artifact_paths: "build.tar.gz" - timeout: 60 - - - command: | # macOS Mojave Build - echo "--- Creating symbolic link to job directory :file_folder:" - sleep 5 - ln -s "$(pwd)" /data/job - cd /data/job - echo "+++ Building :hammer:" - ./scripts/eosio_build.sh -y - echo "--- Compressing build directory :compression:" - tar -pczf build.tar.gz build - if [[ ! -f build.tar.gz ]]; then echo 'ERROR: No build.tar.gz artifact found!' && exit 1; fi - label: ":darwin: Mojave Build" - agents: - - "role=builder-v2-1" - - "os=mojave" - artifact_paths: "build.tar.gz" - timeout: 60 - - - wait - - # Amazon Linux 1 Tests - - command: | - echo "--- :arrow_down: Downloading Build Directory" - buildkite-agent artifact download "build.tar.gz" . --step ":aws: Amazon Linux 1 Build" - echo "+++ :microscope: Running Tests" - ./scripts/parallel-test.sh - label: ":aws: Amazon Linux 1 Tests" - agents: - queue: "automation-large-builder-fleet" - plugins: - ecr#v1.1.4: - login: true - account_ids: "436617320021" - no-include-email: true - region: "us-west-2" - docker#v2.1.0: - debug: true - image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:amazonlinux1_2-2" - propagate-environment: true - workdir: /data/job - timeout: 60 - - - command: | - echo "--- :arrow_down: Downloading Build Directory" - buildkite-agent artifact download "build.tar.gz" . --step ":aws: Amazon Linux 1 Build" - echo "+++ :microscope: Running Tests" - ./scripts/serial-test.sh - label: ":aws: Amazon Linux 1 NP Tests" - agents: - queue: "automation-large-builder-fleet" - plugins: - ecr#v1.1.4: - login: true - account_ids: "436617320021" - no-include-email: true - region: "us-west-2" - docker#v2.1.0: - debug: true - image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:amazonlinux1_2-2" - propagate-environment: true - workdir: /data/job - timeout: 60 - - # Amazon Linux 2 Tests - - command: | - echo "--- :arrow_down: Downloading Build Directory" - buildkite-agent artifact download "build.tar.gz" . --step ":aws: Amazon Linux 2 Build" - echo "+++ :microscope: Running Tests" - ./scripts/parallel-test.sh - label: ":aws: Amazon Linux 2 Tests" - agents: - queue: "automation-large-builder-fleet" - plugins: - ecr#v1.1.4: - login: true - account_ids: "436617320021" - no-include-email: true - region: "us-west-2" - docker#v2.1.0: - debug: true - image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:amazonlinux2_2-2" - propagate-environment: true - workdir: /data/job - timeout: 60 - - - command: | - echo "--- :arrow_down: Downloading Build Directory" - buildkite-agent artifact download "build.tar.gz" . --step ":aws: Amazon Linux 2 Build" - echo "+++ :microscope: Running Tests" - ./scripts/serial-test.sh - label: ":aws: Amazon Linux 2 NP Tests" - agents: - queue: "automation-large-builder-fleet" - plugins: - ecr#v1.1.4: - login: true - account_ids: "436617320021" - no-include-email: true - region: "us-west-2" - docker#v2.1.0: - debug: true - image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:amazonlinux2_2-2" - propagate-environment: true - workdir: /data/job - timeout: 60 - skip: true # fundamental test framework issue here, see https://buildkite.com/EOSIO/eosio/builds/10690 - - # centOS 7 Tests - - command: | - echo "--- :arrow_down: Downloading Build Directory" - buildkite-agent artifact download "build.tar.gz" . --step ":centos: CentOS 7 Build" - echo "+++ :microscope: Running Tests" - ./scripts/parallel-test.sh - label: ":centos: CentOS 7 Tests" - agents: - queue: "automation-large-builder-fleet" - plugins: - ecr#v1.1.4: - login: true - account_ids: "436617320021" - no-include-email: true - region: "us-west-2" - docker#v2.1.0: - debug: true - image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:centos7_2-2" - propagate-environment: true - workdir: /data/job - timeout: 60 - - - command: | - echo "--- :arrow_down: Downloading Build Directory" - buildkite-agent artifact download "build.tar.gz" . --step ":centos: CentOS 7 Build" - echo "+++ :microscope: Running Tests" - ./scripts/serial-test.sh - label: ":centos: CentOS 7 NP Tests" - agents: - queue: "automation-large-builder-fleet" - plugins: - ecr#v1.1.4: - login: true - account_ids: "436617320021" - no-include-email: true - region: "us-west-2" - docker#v2.1.0: - debug: true - image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:centos7_2-2" - propagate-environment: true - workdir: /data/job - timeout: 60 - - # Fedora 27 Tests - - command: | - echo "--- :arrow_down: Downloading Build Directory" - buildkite-agent artifact download "build.tar.gz" . --step ":fedora: Fedora 27 Build" - echo "+++ :microscope: Running Tests" - ./scripts/parallel-test.sh - label: ":fedora: Fedora 27 Tests" - agents: - queue: "automation-large-builder-fleet" - plugins: - ecr#v1.1.4: - login: true - account_ids: "436617320021" - no-include-email: true - region: "us-west-2" - docker#v2.1.0: - debug: true - image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:fedora27_2-2" - propagate-environment: true - workdir: /data/job - timeout: 60 - - - command: | - echo "--- :arrow_down: Downloading Build Directory" - buildkite-agent artifact download "build.tar.gz" . --step ":fedora: Fedora 27 Build" - echo "+++ :microscope: Running Tests" - ./scripts/serial-test.sh - label: ":fedora: Fedora 27 NP Tests" - agents: - queue: "automation-large-builder-fleet" - plugins: - ecr#v1.1.4: - login: true - account_ids: "436617320021" - no-include-email: true - region: "us-west-2" - docker#v2.1.0: - debug: true - image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:fedora27_2-2" - propagate-environment: true - workdir: /data/job - timeout: 60 - - # Ubuntu 16.04 Tests - - command: | - echo "--- :arrow_down: Downloading Build Directory" - buildkite-agent artifact download "build.tar.gz" . --step ":ubuntu: Ubuntu 16.04 Build" - echo "+++ :microscope: Running Tests" - ./scripts/parallel-test.sh - label: ":ubuntu: Ubuntu 16.04 Tests" - agents: - queue: "automation-large-builder-fleet" - plugins: - ecr#v1.1.4: - login: true - account_ids: "436617320021" - no-include-email: true - region: "us-west-2" - docker#v2.1.0: - debug: true - image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:ubuntu16_2-2" - propagate-environment: true - workdir: /data/job - timeout: 60 - - - command: | - echo "--- :arrow_down: Downloading Build Directory" - buildkite-agent artifact download "build.tar.gz" . --step ":ubuntu: Ubuntu 16.04 Build" - echo "+++ :microscope: Running Tests" - ./scripts/serial-test.sh - label: ":ubuntu: Ubuntu 16.04 NP Tests" - agents: - queue: "automation-large-builder-fleet" - plugins: - ecr#v1.1.4: - login: true - account_ids: "436617320021" - no-include-email: true - region: "us-west-2" - docker#v2.1.0: - debug: true - image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:ubuntu16_2-2" - propagate-environment: true - workdir: /data/job - timeout: 60 - - # Ubuntu 18.04 Tests - - command: | - echo "--- :arrow_down: Downloading Build Directory" - buildkite-agent artifact download "build.tar.gz" . --step ":ubuntu: Ubuntu 18.04 Build" - echo "+++ :microscope: Running Tests" - ./scripts/parallel-test.sh - label: ":ubuntu: Ubuntu 18.04 Tests" - agents: - queue: "automation-large-builder-fleet" - plugins: - ecr#v1.1.4: - login: true - account_ids: "436617320021" - no-include-email: true - region: "us-west-2" - docker#v2.1.0: - debug: true - image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:ubuntu18_2-2" - propagate-environment: true - workdir: /data/job - timeout: 60 - - - command: | - echo "--- :arrow_down: Downloading Build Directory" - buildkite-agent artifact download "build.tar.gz" . --step ":ubuntu: Ubuntu 18.04 Build" - echo "+++ :microscope: Running Tests" - ./scripts/serial-test.sh - label: ":ubuntu: Ubuntu 18.04 NP Tests" - agents: - queue: "automation-large-builder-fleet" - plugins: - ecr#v1.1.4: - login: true - account_ids: "436617320021" - no-include-email: true - region: "us-west-2" - docker#v2.1.0: - debug: true - image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:ubuntu18_2-2" - propagate-environment: true - workdir: /data/job - timeout: 60 - - # High Sierra Tests - - command: | - echo "--- :arrow_down: Downloading Build Directory" - buildkite-agent artifact download "build.tar.gz" . --step ":darwin: High Sierra Build" - echo "+++ :microscope: Running Tests" - ln -s "$(pwd)" /data/job - ./scripts/parallel-test.sh - label: ":darwin: High Sierra Tests" - agents: - - "role=tester-v2-1" - - "os=high-sierra" - timeout: 60 - - - command: | - echo "--- :arrow_down: Downloading Build Directory" - buildkite-agent artifact download "build.tar.gz" . --step ":darwin: High Sierra Build" - echo "+++ :microscope: Running Tests" - ln -s "$(pwd)" /data/job - ./scripts/serial-test.sh - label: ":darwin: High Sierra NP Tests" - agents: - - "role=tester-v2-1" - - "os=high-sierra" - timeout: 60 - - # Mojave Tests - - command: | - echo "--- :arrow_down: Downloading Build Directory" - buildkite-agent artifact download "build.tar.gz" . --step ":darwin: Mojave Build" - echo "+++ :microscope: Running Tests" - ln -s "$(pwd)" /data/job - ./scripts/parallel-test.sh - label: ":darwin: Mojave Tests" - agents: - - "role=tester-v2-1" - - "os=mojave" - timeout: 60 - - - command: | - echo "--- :arrow_down: Downloading Build Directory" - buildkite-agent artifact download "build.tar.gz" . --step ":darwin: Mojave Build" - echo "+++ :microscope: Running Tests" - ln -s "$(pwd)" /data/job - ./scripts/serial-test.sh - label: ":darwin: Mojave NP Tests" - agents: - - "role=tester-v2-1" - - "os=mojave" - timeout: 60 - - - wait - - - command: | # CentOS 7 Package Builder - echo "--- :arrow_down: Downloading build directory" - buildkite-agent artifact download "build.tar.gz" . --step ":centos: CentOS 7 Build" - tar -zxf build.tar.gz - echo "+++ :microscope: Starting package build" - yum install -y rpm-build - mkdir -p /root/rpmbuild/BUILD - mkdir -p /root/rpmbuild/BUILDROOT - mkdir -p /root/rpmbuild/RPMS - mkdir -p /root/rpmbuild/SOURCES - mkdir -p /root/rpmbuild/SPECS - mkdir -p /root/rpmbuild/SRPMS - cd /data/job/build/packages - bash generate_package.sh rpm - label: ":centos: CentOS 7 Package Builder" - agents: - queue: "automation-large-builder-fleet" - artifact_paths: - - "build/packages/*.rpm" - plugins: - ecr#v1.1.4: - login: true - account_ids: "436617320021" - no-include-email: true - region: "us-west-2" - docker#v2.1.0: - debug: true - image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:centos7_2-2" - propagate-environment: true - workdir: /data/job - env: - OS: "el7" - PKGTYPE: "rpm" - timeout: 60 - - - command: | # Fedora 27 Package Builder - echo "--- :arrow_down: Downloading build directory" - buildkite-agent artifact download "build.tar.gz" . --step ":fedora: Fedora 27 Build" - tar -zxf build.tar.gz - echo "+++ :microscope: Starting package build" - yum install -y rpm-build - mkdir -p /root/rpmbuild/BUILD - mkdir -p /root/rpmbuild/BUILDROOT - mkdir -p /root/rpmbuild/RPMS - mkdir -p /root/rpmbuild/SOURCES - mkdir -p /root/rpmbuild/SPECS - mkdir -p /root/rpmbuild/SRPMS - cd /data/job/build/packages - bash generate_package.sh rpm - label: ":fedora: Fedora 27 Package Builder" - agents: - queue: "automation-large-builder-fleet" - artifact_paths: - - "build/packages/*.rpm" - plugins: - ecr#v1.1.4: - login: true - account_ids: "436617320021" - no-include-email: true - region: "us-west-2" - docker#v2.1.0: - debug: true - image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:fedora27_2-2" - workdir: /data/job - env: - OS: "fc27" - PKGTYPE: "rpm" - timeout: 60 - - - command: | # Ubuntu 16.04 Package Builder - echo "--- :arrow_down: Downloading build directory" - buildkite-agent artifact download "build.tar.gz" . --step ":ubuntu: Ubuntu 16.04 Build" - tar -zxf build.tar.gz - echo "+++ :microscope: Starting package build" - cd /data/job/build/packages - bash generate_package.sh deb - label: ":ubuntu: Ubuntu 16.04 Package Builder" - agents: - queue: "automation-large-builder-fleet" - artifact_paths: - - "build/packages/*.deb" - plugins: - ecr#v1.1.4: - login: true - account_ids: "436617320021" - no-include-email: true - region: "us-west-2" - docker#v2.1.0: - debug: true - image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:ubuntu16_2-2" - propagate-environment: true - workdir: /data/job - env: - OS: "ubuntu-16.04" - PKGTYPE: "deb" - timeout: 60 - - - command: | # Ubuntu 18.04 Package Builder - echo "--- :arrow_down: Downloading build directory" - buildkite-agent artifact download "build.tar.gz" . --step ":ubuntu: Ubuntu 18.04 Build" - tar -zxf build.tar.gz - echo "+++ :microscope: Starting package build" - cd /data/job/build/packages - bash generate_package.sh deb - label: ":ubuntu: Ubuntu 18.04 Package Builder" - agents: - queue: "automation-large-builder-fleet" - artifact_paths: - - "build/packages/*.deb" - plugins: - ecr#v1.1.4: - login: true - account_ids: "436617320021" - no-include-email: true - region: "us-west-2" - docker#v2.1.0: - debug: true - image: "436617320021.dkr.ecr.us-west-2.amazonaws.com/ci:ubuntu18_2-2" - propagate-environment: true - workdir: /data/job - env: - OS: "ubuntu-18.04" - PKGTYPE: "deb" - timeout: 60 - - - command: | # macOS High Sierra Package Builder - echo "--- :arrow_down: Downloading build directory" - buildkite-agent artifact download "build.tar.gz" . --step ":darwin: High Sierra Build" - tar -zxf build.tar.gz - echo "+++ :microscope: Starting package build" - ln -s "$(pwd)" /data/job - cd /data/job/build/packages - bash generate_package.sh brew - label: ":darwin: High Sierra Package Builder" - agents: - - "role=builder-v2-1" - - "os=high-sierra" - artifact_paths: - - "build/packages/*.tar.gz" - - "build/packages/*.rb" - timeout: 60 - - - command: | # macOS Mojave Package Builder - echo "--- :arrow_down: Downloading build directory" - buildkite-agent artifact download "build.tar.gz" . --step ":darwin: Mojave Build" - tar -zxf build.tar.gz - echo "+++ :microscope: Starting package build" - ln -s "$(pwd)" /data/job - cd /data/job/build/packages - bash generate_package.sh brew - label: ":darwin: Mojave Package Builder" - agents: - - "role=builder-v2-1" - - "os=mojave" - artifact_paths: - - "build/packages/*.tar.gz" - - "build/packages/*.rb" - timeout: 60 - - - wait - - - command: | # Brew Updater - echo "--- :arrow_down: Downloading brew files" - buildkite-agent artifact download "build/packages/eosio.rb" . --step ":darwin: High Sierra Package Builder" - mv build/packages/eosio.rb build/packages/eosio_highsierra.rb - buildkite-agent artifact download "build/packages/eosio.rb" . --step ":darwin: Mojave Package Builder" - label: ":darwin: Brew Updater" - agents: - queue: "automation-large-builder-fleet" - artifact_paths: - - "build/packages/eosio_highsierra.rb" - - "build/packages/eosio.rb" - timeout: 5 - - - command: | # Git Submodule Regression Check - echo "+++ :microscope: Running git submodule regression check" && \ - ./scripts/submodule_check.sh - label: "Git Submodule Regression Check" - agents: - queue: "automation-large-builder-fleet" - timeout: 5 \ No newline at end of file diff --git a/.pipelinebranch b/.pipelinebranch deleted file mode 100644 index c1688f268bc..00000000000 --- a/.pipelinebranch +++ /dev/null @@ -1 +0,0 @@ -legacy-os diff --git a/pipeline.jsonc b/pipeline.jsonc new file mode 100644 index 00000000000..ffd02a7f27b --- /dev/null +++ b/pipeline.jsonc @@ -0,0 +1,10 @@ +{ + "eosio-lrt": + { + "pipeline-branch": "legacy-os" + }, + "eosio-nightly-builds": + { + "pipeline-branch": "legacy-os" + } +} \ No newline at end of file diff --git a/scripts/parallel-test.sh b/scripts/parallel-test.sh deleted file mode 100755 index fd53ca55198..00000000000 --- a/scripts/parallel-test.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash -set -e # exit on failure of any "simple" command (excludes &&, ||, or | chains) -# prepare environment -PATH=$PATH:~/opt/mongodb/bin -echo "Extracting build directory..." -tar -zxf build.tar.gz -echo "Starting MongoDB..." -~/bin/mongod --fork --dbpath ~/data/mongodb -f ~/etc/mongod.conf --logpath "$(pwd)"/mongod.log -cd /data/job/build -# run tests -echo "Running tests..." -CPU_CORES=$(getconf _NPROCESSORS_ONLN) -echo "$CPU_CORES cpu cores detected." -TEST_COUNT=$(ctest -N -LE _tests | grep -i 'Total Tests: ' | cut -d ':' -f 2 | awk '{print $1}') -[[ $TEST_COUNT > 0 ]] && echo "$TEST_COUNT tests found." || (echo "ERROR: No tests registered with ctest! Exiting..." && exit 1) -set +e # defer ctest error handling to end -echo "$ ctest -j $CPU_CORES -LE _tests --output-on-failure -T Test" -ctest -j $CPU_CORES -LE _tests --output-on-failure -T Test -EXIT_STATUS=$? -[[ "$EXIT_STATUS" == 0 ]] && set -e -echo "Done running parallelizable tests." -# upload artifacts -echo "Uploading artifacts..." -XML_FILENAME="test-results.xml" -mv $(pwd)/Testing/$(ls $(pwd)/Testing/ | grep '20' | tail -n 1)/Test.xml $XML_FILENAME -buildkite-agent artifact upload config.ini -buildkite-agent artifact upload genesis.json -cd .. -buildkite-agent artifact upload mongod.log -cd build -buildkite-agent artifact upload $XML_FILENAME -echo "Done uploading artifacts." -# ctest error handling -if [[ "$EXIT_STATUS" != 0 ]]; then - echo "Failing due to non-zero exit status from ctest: $EXIT_STATUS" - echo ' ^^^ scroll up for more information ^^^' - exit $EXIT_STATUS -fi \ No newline at end of file diff --git a/scripts/serial-test.sh b/scripts/serial-test.sh deleted file mode 100755 index 1d36e081712..00000000000 --- a/scripts/serial-test.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash -set -e # exit on failure of any "simple" command (excludes &&, ||, or | chains) -# prepare environment -PATH=$PATH:~/opt/mongodb/bin -echo "Extracting build directory..." -tar -zxf build.tar.gz -echo "Starting MongoDB..." -~/bin/mongod --fork --dbpath ~/data/mongodb -f ~/etc/mongod.conf --logpath "$(pwd)"/mongod.log -cd /data/job/build -# run tests -echo "Running tests..." -TEST_COUNT=$(ctest -N -L nonparallelizable_tests | grep -i 'Total Tests: ' | cut -d ':' -f 2 | awk '{print $1}') -[[ $TEST_COUNT > 0 ]] && echo "$TEST_COUNT tests found." || (echo "ERROR: No tests registered with ctest! Exiting..." && exit 1) -set +e # defer ctest error handling to end -echo "$ ctest -L nonparallelizable_tests --output-on-failure -T Test" -ctest -L nonparallelizable_tests --output-on-failure -T Test -EXIT_STATUS=$? -[[ "$EXIT_STATUS" == 0 ]] && set -e -echo "Done running non-parallelizable tests." -# upload artifacts -echo "Uploading artifacts..." -XML_FILENAME="test-results.xml" -mv $(pwd)/Testing/$(ls $(pwd)/Testing/ | grep '20' | tail -n 1)/Test.xml $XML_FILENAME -buildkite-agent artifact upload config.ini -buildkite-agent artifact upload genesis.json -cd .. -buildkite-agent artifact upload mongod.log -cd build -buildkite-agent artifact upload $XML_FILENAME -echo "Done uploading artifacts." -# ctest error handling -if [[ "$EXIT_STATUS" != 0 ]]; then - echo "Failing due to non-zero exit status from ctest: $EXIT_STATUS" - echo ' ^^^ scroll up for more information ^^^' - exit $EXIT_STATUS -fi \ No newline at end of file diff --git a/scripts/submodule_check.sh b/scripts/submodule_check.sh deleted file mode 100755 index b9ec13204fa..00000000000 --- a/scripts/submodule_check.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash - -REPO_DIR=`mktemp -d` -git clone "$BUILDKITE_REPO" "$REPO_DIR" -git submodule update --init --recursive -cd "$REPO_DIR" - -declare -A PR_MAP -declare -A BASE_MAP - -echo "getting submodule info for $BUILDKITE_BRANCH" -git checkout "$BUILDKITE_BRANCH" &> /dev/null -git submodule update --init &> /dev/null -while read -r a b; do - PR_MAP[$a]=$b -done < <(git submodule --quiet foreach --recursive 'echo $path `git log -1 --format=%ct`') - -echo "getting submodule info for $BUILDKITE_PULL_REQUEST_BASE_BRANCH" -git checkout "$BUILDKITE_PULL_REQUEST_BASE_BRANCH" &> /dev/null -git submodule update --init &> /dev/null -while read -r a b; do - BASE_MAP[$a]=$b -done < <(git submodule --quiet foreach --recursive 'echo $path `git log -1 --format=%ct`') - -for k in "${!BASE_MAP[@]}"; do - base_ts=${BASE_MAP[$k]} - pr_ts=${PR_MAP[$k]} - echo "submodule $k" - echo " timestamp on $BUILDKITE_BRANCH: $pr_ts" - echo " timestamp on $BUILDKITE_PULL_REQUEST_BASE_BRANCH: $base_ts" - if (( $pr_ts < $base_ts)); then - echo "$k is older on $BUILDKITE_BRANCH than $BUILDKITE_PULL_REQUEST_BASE_BRANCH; investigating..." - - if for c in `git log $BUILDKITE_BRANCH ^$BUILDKITE_PULL_REQUEST_BASE_BRANCH --pretty=format:"%H"`; do git show --pretty="" --name-only $c; done | grep -q "^$k$"; then - echo "ERROR: $k has regressed" - exit 1 - else - echo "$k was not in the diff; no regression detected" - fi - fi -done