Skip to content

Commit 3a1f265

Browse files
SERVER-74832 Resmoke description field does not work for suites that get split up (#63)
1 parent 626024e commit 3a1f265

File tree

7 files changed

+25
-2
lines changed

7 files changed

+25
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 0.7.6 - 2022-05-02
4+
* Pass suite description and matrix_suite to subsuites
5+
36
## 0.7.5 - 2022-04-25
47
* Upgrade build artifact for github runner service
58

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "mongo-task-generator"
33
description = "Dynamically split evergreen tasks into subtasks for testing the mongodb/mongo project."
44
license = "Apache-2.0"
5-
version = "0.7.5"
5+
version = "0.7.6"
66
repository = "https://github.com/mongodb/mongo-task-generator"
77
authors = ["Decision Automation Group <[email protected]>"]
88
edition = "2018"

src/resmoke/resmoke_suite.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ pub struct ResmokeExecutor {
8181
/// Configuration of a resmoke test suite.
8282
#[derive(Serialize, Deserialize, Debug, Clone)]
8383
pub struct ResmokeSuiteConfig {
84+
#[serde(skip_serializing_if = "Option::is_none")]
85+
pub matrix_suite: Option<bool>,
86+
#[serde(skip_serializing_if = "Option::is_none")]
87+
pub description: Option<String>,
8488
pub test_kind: String,
8589
pub selector: ResmokeSelector,
8690
pub executor: ResmokeExecutor,
@@ -238,6 +242,10 @@ mod tests {
238242
#[test]
239243
fn test_replica_set_fixture_should_return_repl() {
240244
let config_yaml = "
245+
description: Suite description
246+
247+
matrix_suite: true
248+
241249
test_kind: js_test
242250
243251
selector:

src/task_types/multiversion.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,10 @@ mod tests {
298298
#[test]
299299
fn test_multiversion_iterator() {
300300
let suite_config_yaml = "
301+
description: Suite description
302+
303+
matrix_suite: true
304+
301305
test_kind: js_test
302306
303307
selector:

src/task_types/resmoke_config_writer.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,10 @@ mod tests {
315315
_suite_name: &str,
316316
) -> anyhow::Result<crate::resmoke::resmoke_suite::ResmokeSuiteConfig> {
317317
let sample_config = "
318+
description: Suite description
319+
320+
matrix_suite: true
321+
318322
test_kind: js_test
319323
320324
selector:

tests/mocks/resmoke.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ def multiversion_config():
1313

1414
def suiteconfig():
1515
print("""
16+
description: Suite description
17+
18+
matrix_suite: true
19+
1620
test_kind: js_test
1721
1822
selector:

0 commit comments

Comments
 (0)