Skip to content

Commit 2b1af5b

Browse files
chore: add tag to performance variant (#4414)
Co-authored-by: Bailey Pearson <bailey.pearson@mongodb.com>
1 parent 59573b3 commit 2b1af5b

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

.evergreen/config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3200,7 +3200,7 @@ tasks:
32003200
- func: download and merge coverage
32013201
depends_on:
32023202
- name: '*'
3203-
variant: '*'
3203+
variant: '* !performance-tests'
32043204
status: '*'
32053205
patch_optional: true
32063206
- name: run-custom-csfle-tests-5.0
@@ -4825,6 +4825,8 @@ buildvariants:
48254825
- run-spec-benchmark-tests-node-server-timeoutMS-0
48264826
- run-spec-benchmark-tests-node-server-monitorCommands-true
48274827
- run-spec-benchmark-tests-node-server-logging
4828+
tags:
4829+
- performance
48284830
- name: rhel8-custom-dependency-tests
48294831
display_name: Custom Dependency Version Test
48304832
run_on: rhel80-large

.evergreen/generate_evergreen_tasks.js

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,14 @@ const coverageTask = {
718718
func: 'download and merge coverage'
719719
}
720720
],
721-
depends_on: [{ name: '*', variant: '*', status: '*', patch_optional: true }]
721+
depends_on: [
722+
{
723+
name: '*',
724+
variant: '* !performance-tests',
725+
status: '*',
726+
patch_optional: true
727+
}
728+
]
722729
};
723730

724731
SINGLETON_TASKS.push(coverageTask);
@@ -768,7 +775,8 @@ function addPerformanceTasks() {
768775
name: 'performance-tests',
769776
display_name: 'Performance Test',
770777
run_on: 'rhel90-dbx-perf-large',
771-
tasks: tasks.map(({ name }) => name)
778+
tasks: tasks.map(({ name }) => name),
779+
tags: ['performance']
772780
});
773781
}
774782
addPerformanceTasks();
@@ -872,15 +880,17 @@ for (const variant of BUILD_VARIANTS.filter(
872880
}
873881

874882
const fileData = yaml.load(fs.readFileSync(`${__dirname}/config.in.yml`, 'utf8'));
875-
fileData.tasks = (fileData.tasks || [])
876-
.concat(BASE_TASKS)
877-
.concat(TASKS)
878-
.concat(SINGLETON_TASKS)
879-
.concat(AUTH_DISABLED_TASKS)
880-
.concat(AWS_LAMBDA_HANDLER_TASKS)
881-
.concat(MONGOCRYPTD_CSFLE_TASKS);
882-
883-
fileData.buildvariants = (fileData.buildvariants || []).concat(BUILD_VARIANTS);
883+
fileData.tasks = [
884+
...(fileData.tasks ?? []),
885+
...BASE_TASKS,
886+
...TASKS,
887+
...SINGLETON_TASKS,
888+
...AUTH_DISABLED_TASKS,
889+
...AWS_LAMBDA_HANDLER_TASKS,
890+
...MONGOCRYPTD_CSFLE_TASKS
891+
];
892+
893+
fileData.buildvariants = [...(fileData.buildvariants ?? []), ...BUILD_VARIANTS];
884894

885895
fs.writeFileSync(
886896
`${__dirname}/config.yml`,

0 commit comments

Comments
 (0)