-
Notifications
You must be signed in to change notification settings - Fork 90
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
Fix/multitest parting revision #1097
Conversation
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.
I think if we change the splitting logic, we need to change merge logic too?
"reason": data["reason"], | ||
"strict": data["strict"], | ||
} | ||
for testcase in testcases_to_run: |
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.
why are we making this change, i think the original code is fine.
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.
ah i just want to remove extra if statements
testplan/common/report/base.py
Outdated
|
||
def disassemble(self): | ||
c = [] | ||
for u in copy.copy(list(self._index.keys())): |
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.
just a shallow copy?
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.
will fix 😵
@@ -392,6 +392,11 @@ def get_test_context(self): | |||
ctx = [] | |||
sorted_suites = self.cfg.test_sorter.sorted_testsuites(self.cfg.suites) | |||
|
|||
if hasattr(self.cfg, "xfail_tests") and self.cfg.xfail_tests: |
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.
set self.cfg.xfail_tests default value to {}
?
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.
(i'd like to pretend that) self.cfg is immutable 😄
testplan/runnable/base.py
Outdated
report.definition_name, | ||
category=report.category, | ||
) | ||
# here `report` must be an empty MultiTest report since |
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.
This part of comment needs a bit of refinement, to be more concise.
* impl round-robin-like parts merging * address review comments in #1097 * dedup * some refactor * add newsfrag; adjust comments
Bug / Requirement Description
Clearly and concisely describe the problem.Solution description
use testcase-level round-robin scheduling for multitest parting (maybe more to go)
Checklist: