Skip to content

Conversation

MikhailShchatko
Copy link
Collaborator

@MikhailShchatko MikhailShchatko commented Aug 26, 2022

When --burn-in is passed, only burn_in tasks are generated. Otherwise all the other tasks are generated.

@MikhailShchatko MikhailShchatko requested review from a team, zituo-jin and zamj and removed request for a team August 26, 2022 13:14
@MikhailShchatko MikhailShchatko force-pushed the DAG-1992 branch 2 times, most recently from a161ae1 to 9bfe93c Compare August 26, 2022 15:22
@MikhailShchatko
Copy link
Collaborator Author

MikhailShchatko commented Aug 29, 2022

Example of patch where burn_in and other tasks are generated separately: https://spruce.mongodb.com/version/6308dc350305b95cf9de852b

Note: It is not allowed to use generate.tasks more than once in a single evergreen task.

Copy link
Contributor

@zamj zamj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM after adding tests

// handle them.
if task.name == BURN_IN_TESTS {
if self.gen_burn_in {
if self.gen_burn_in {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add some tests for this logic to make sure we're skipping the tasks when we should be?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This particular function seems hard to test or split. I've added end-to-end test for this logic.

Also added a comment to make it more clear:
https://github.com/mongodb/mongo-task-generator/pull/47/files#diff-7ff815b68943f08bef79f083c09e55ca8c18db8e25033034b12fa31f1d43dab4R64-R65

Let me know if you have better ideas.

@zamj
Copy link
Contributor

zamj commented Aug 29, 2022

We should update the docs as well for this option

@MikhailShchatko MikhailShchatko requested a review from zamj August 30, 2022 10:51
Copy link
Contributor

@zamj zamj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT mod my comments

Comment on lines 179 to 180
task to the required buildvariant, that will generate another required buildvariants on the fly
based on another non-required buildvariants with only necessary burn-in tasks.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit] This way we can burn_in on the the requested buildvariant as well other, additional variants to ensure there is no difference between variants.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@MikhailShchatko
Copy link
Collaborator Author

evergreen merge

@ghost ghost merged commit 0c90822 into mongodb:master Sep 5, 2022
@MikhailShchatko MikhailShchatko deleted the DAG-1992 branch September 5, 2022 06:52
zamj pushed a commit to zamj/mongo-task-generator that referenced this pull request Sep 6, 2022
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants