Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
167 changes: 18 additions & 149 deletions evergreen.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@

stepback: true

include:
- filename: evergreen.yml
module: trigger-sandbox

pre_error_fails_task: true
pre: &pre
- command: git.get_project
Expand All @@ -18,29 +14,6 @@ patch_aliases:
task: ".*"

buildvariants:
- name: ubuntu2004-container
display_name: Ubuntu 20.04 (Container)
run_on:
- evg-container
expansions:
goos: linux
goarch: amd64
IS_DOCKER: true
GOROOT: /usr/local/go
mongodb_url: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2004-5.0.14.tgz
decompress: tar zxvf
tasks:
- name: unit_tests
activate: false
- name: validate_commit_message
- name: patch_only_task
- name: batchtime_task
- name: test_passing_param_to_child
- name: test-receiving-parent-param
- name: test-restart-on-fail
- name: test_release
- name: test_release2

- name: bynns single task thing
display_name: single task test
run_on:
Expand All @@ -62,9 +35,6 @@ buildvariants:
- "!README.md"
- "!evergreen.yml"
tags: [commit-queue-variant, whaat]
modules:
- trigger-sandbox
- trigger-sandbox2
run_on:
- ubuntu1604-large
expansions:
Expand All @@ -91,38 +61,13 @@ buildvariants:
execution_tasks:
- validate_commit_message

- display_name: Test Tags
name: release
run_on:
- ubuntu2004-small
tasks:
- name: group1

- name: test-selection
display_name: "Test Selection"
run_on: ubuntu2204-small
tasks:
- test-selection-example
paths:
- "README.md"
- name: git-env-test
display_name: "Giv Env Test"
modules:
- trigger-sandbox
- trigger-sandbox2
run_on:
- ubuntu2004-small
tasks:
- name: test-restart-on-fail
- name: task_generator
create_check_run:
path_to_outputs: "path"
- name: unit_tests
activate: false
display_tasks:
- name: display_task2
execution_tasks:
- unit_tests

- name: cron-test
cron: "*/5 * * * *"
Expand All @@ -140,13 +85,6 @@ buildvariants:
- name: validate_commit_message2
- name: test-restart-on-fail

- name: akhi_test_validation
display_name: "Test Empty Task Validation"
run_on:
- ubuntu2204-small
tasks:
- name: test_empty_task_error

functions:
create virtualenv:
- command: shell.exec
Expand All @@ -169,20 +107,25 @@ post:
params:
file_location: src/test_selection_results.json

task_groups:
- name: group1
max_hosts: 1
setup_group:
- command: git.get_project
params:
directory: src
tasks:
- test-restart-on-fail
- validate_commit_message
- validate_commit_message2

tasks:
# Test how periodic build that only includes taskA interacts with patch_optional dep.
- name: test-selection-example
commands:
# Run the test_selection.get command to get the recommended list of tests.
- command: test_selection.get
params:
tests_file: src/test_selection_input.json
output_file: src/test_selection_output.json
- command: shell.exec
params:
script: cat src/test_selection_output.json
# Generate dummy test results from the recommended list of tests.
- command: subprocess.exec
params:
binary: python3
working_dir: src
args: ["generate_test_results.py", "test_selection_output.json"]

- name: taskA
depends_on:
- name: taskB
Expand All @@ -196,11 +139,6 @@ tasks:
- command: shell.exec
params:
script: echo ${task_name}
- name: gen_task_template
depends_on:
- name: task_generator
variant: release
commands:
- command: shell.exec
params:
working_dir: src
Expand Down Expand Up @@ -278,48 +216,12 @@ tasks:

echo "$commit_message_content"
fi
- name: test-restart
priority: 3
commands:
- command: shell.exec
params:
script: |
echo "sleeping"
ls src
sleep 10
. src/task.sh
echo "triggering restart"
post_evergreen_status failed test "test desc" false true
- command: shell.exec
params:
script: |
echo "sleeping 2"
sleep 10
- command: shell.exec
params:
script: |
echo "sleeping 3"
sleep 10

- name: task_generator
commands:
- command: generate.tasks
params:
files:
- src/generate.json
- name: test_release
depends_on:
- name: unit_tests
variant: "*"
- name: test_release2
depends_on:
- name: test_release
commands:
- command: shell.exec
params:
working_dir: src
script: |
echo "i am a script"
- name: patch_only_task
patch_only: true
commands:
Expand All @@ -334,40 +236,7 @@ tasks:
params:
working_dir: src
script: |
echo "i am become checkrun"
- name: test-selection-example
commands:
# Run the test_selection.get command to get the recommended list of tests.
- command: test_selection.get
params:
tests_file: src/test_selection_input.json
output_file: src/test_selection_output.json
- command: shell.exec
params:
script: cat src/test_selection_output.json
# Generate dummy test results from the recommended list of tests.
- command: subprocess.exec
params:
binary: python3
working_dir: src
args: ["generate_test_results.py", "test_selection_output.json"]
- name: test_empty_task_error
#commands:
#- command: shell.exec
#params:
#script: |
#echo "test - test_empty_task_error"
# Intentionally leaving this task with no commands to trigger the error

modules:
- name: trigger-sandbox
repo: git@github.com:evergreen-ci/commit-queue-sandbox.git
prefix: ${workdir}/src
branch: test-trigger
- name: trigger-sandbox2
repo: git@github.com:evergreen-ci/commit-queue-sandbox.git
prefix: ${workdir}/src
branch: test-trigger2
echo "i am introducing a change"

build_baron_settings:
ticket_create_project: "EVG"
Expand Down