-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run OSD integ test ci-groups in parallel #5179
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ def test_with_integ_test(self, mock_temp: Mock, mock_test_recorder: Mock, mock_s | |
self.args.paths = {"opensearch-dashboards": "test-path"} | ||
self.args.component = "sql" | ||
self.args.test_run_id = "12345" | ||
self.args.ci_group = None | ||
|
||
mock_test_config = MagicMock() | ||
mock_test_config.integ_test = MagicMock() | ||
|
@@ -100,6 +101,7 @@ def test_with_integ_test_ci_groups(self, mock_temp: Mock, mock_test_recorder: Mo | |
self.args.paths = {"opensearch-dashboards": "test-path"} | ||
self.args.component = "sql" | ||
self.args.test_run_id = "12345" | ||
self.args.ci_group = '1' | ||
|
||
mock_test_config = MagicMock() | ||
mock_test_config.integ_test = {'test-configs': ['with-security'], 'ci-groups': 3} | ||
|
@@ -149,8 +151,6 @@ def test_with_integ_test_ci_groups(self, mock_temp: Mock, mock_test_recorder: Mo | |
results = runner.run() | ||
|
||
self.assertEqual(results["sql-ci-group-1"], mock_test_results) | ||
self.assertEqual(results["sql-ci-group-2"], mock_test_results) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we check his assertions for given ci-group number? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This test is checking the assertion when the |
||
self.assertEqual(results["sql-ci-group-3"], mock_test_results) | ||
|
||
mock_suite_object.result_data.__iter__.assert_called() | ||
mock_test_recorder_object.test_results_logs.generate_component_yml.assert_called() | ||
|
@@ -167,4 +167,4 @@ def test_with_integ_test_ci_groups(self, mock_temp: Mock, mock_test_recorder: Mo | |
mock_path, | ||
mock_test_recorder_object | ||
) | ||
mock_suite.assert_has_calls([expected_call, expected_call, expected_call], any_order=True) | ||
mock_suite.assert_has_calls([expected_call]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we dynamically assign this value as workflow params?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, can take it up in future improvements.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please create an issue for this? Also wondering if we can dynamically assign this value by fetching from test-manifest instead of hard coding to 9 here.
TL;DR: