Skip to content

Commit

Permalink
remove bad generate tasks (#732)
Browse files Browse the repository at this point in the history
  • Loading branch information
malikchaya2 authored Jan 15, 2025
1 parent 94f01cb commit a83c6e5
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 61 deletions.
32 changes: 6 additions & 26 deletions evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ patch_aliases:
# cpu_architecture: x86_64
# operating_system: linux


buildvariants:
- name: ubuntu2004-container
display_name: Ubuntu 20.04 (Container)
Expand Down Expand Up @@ -64,8 +63,7 @@ buildvariants:
expansions:
module_prefix: hello
tasks:
- name: C_dependent_task
- name: A_bad_generator
- name: task_generator
- name: unit_tests
activate: false
disable: true
Expand Down Expand Up @@ -102,7 +100,7 @@ buildvariants:
- ubuntu2004-small
tasks:
- name: test-restart-on-fail
- name: my_first_generator
- name: task_generator
create_check_run:
path_to_outputs: "path"

Expand Down Expand Up @@ -154,25 +152,7 @@ task_groups:
- validate_commit_message2

tasks:
- name: C_dependent_task
# depends_on:
# - name: B_dependent_generated_task
commands:
- command: shell.exec
params:
shell: bash
working_dir: evergreen
script: |
echo "C_dependent_task"
- name: A_bad_generator
depends_on:
- name: C_dependent_task
commands:
- command: generate.tasks
params:
files:
- src/evergreen_bad_new.json
# Test how periodic build that only includes taskA interacts with patch_optional dep
# Test how periodic build that only includes taskA interacts with patch_optional dep
- name: taskA
depends_on:
- name: taskB
Expand All @@ -188,7 +168,7 @@ tasks:
script: echo ${task_name}
- name: gen_task_template
depends_on:
- name: my_first_generator
- name: task_generator
variant: release
commands:
- command: shell.exec
Expand Down Expand Up @@ -296,12 +276,12 @@ tasks:
echo "sleeping 3"
sleep 10
- name: my_first_generator
- name: task_generator
commands:
- command: generate.tasks
params:
files:
- src/evergreen.json
- src/generate.json
- name: test_release
depends_on:
- name: unit_tests
Expand Down
17 changes: 0 additions & 17 deletions evergreen_bad_new.json

This file was deleted.

18 changes: 0 additions & 18 deletions evergreen_bad_old.json

This file was deleted.

25 changes: 25 additions & 0 deletions generate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"buildvariants": [
{
"name": "ubuntu2004",
"tasks": [
{
"name": "task-to-add-via-generator"
}
]
}
],
"tasks": [
{
"name": "task-to-add-via-generator",
"commands": [
{
"command": "shell.exec",
"params": {
"script": "echo generated_task"
}
}
]
}
]
}

0 comments on commit a83c6e5

Please sign in to comment.