Skip to content

Conversation

MikhailShchatko
Copy link
Collaborator

@MikhailShchatko MikhailShchatko requested review from a team and zamj and removed request for a team August 19, 2022 13:29
let origin_suite = multiversion_name.unwrap_or(&params.suite_name);
let test_list = self.get_test_list(params, multiversion_name)?;
let required_stats_count = percent_of_tests(test_list.len(), REQUIRED_STATS_THRESHOLD);
if task_stats.test_map.len() < required_stats_count {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Since we are distributing tests without historic runtime data after we have processed test with historic data, we don't need this special logic anymore.

@MikhailShchatko MikhailShchatko requested review from zituo-jin and removed request for zamj August 19, 2022 13:31
running_tests[min_idx].push(test.clone());
}

for (i, test) in left_tests.iter().enumerate() {

Choose a reason for hiding this comment

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

Should we start at the running_tests with the minimal sum of run time when we start processing left_tests?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added.

}

for (i, test) in left_tests.iter().enumerate() {
running_tests[i % max_tasks].push(test.clone());

Choose a reason for hiding this comment

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

For the index, something like (index_minimal_sum_run_time_before_this_loop + i) % max_tasks.

@MikhailShchatko
Copy link
Collaborator Author

evergreen merge

@ghost ghost merged commit 9c0c749 into mongodb:master Aug 22, 2022
@MikhailShchatko MikhailShchatko deleted the DAG-1986 branch August 22, 2022 08:29
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