-
Notifications
You must be signed in to change notification settings - Fork 22
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
add a dumb timeout logic #83
base: main
Are you sure you want to change the base?
Conversation
XXX what to do for non-unix platforms?
note: the end of file change is an unrelated editor artifact. (nvi2)
@loganek please review when you have time. this is not urgent for me. |
Thanks for the change, and sorry for being late with the review. I'll try to get to it by end of this week. |
@loganek ping |
|
||
On a timeout, the test runner sends SIGTERM singal to the adapter process. | ||
When receiving the signal, the adapter process should clean up and exit | ||
as soon as possible. |
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.
Could you document the current timeout?
@@ -63,5 +70,5 @@ def _validate_dict(cls: Type[T], dict_config: Dict[str, Any]) -> None: | |||
class TestCase(NamedTuple): | |||
name: str | |||
config: Config | |||
result: Result | |||
result: Union[Result | SkippedResult | TimedoutResult] |
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've never seen this syntax before; IIRC it should be either Union[Result, SkippedResult, TimedoutResult]
or Result | SkippedResult | TimedoutResult
, see https://docs.python.org/3/library/typing.html#typing.Union
test_output = runtime.run_test(test_path, config.args, config.env, config.dirs) | ||
try: | ||
test_output = runtime.run_test(test_path, config.args, config.env, config.dirs) | ||
result: Union[Result | TimedoutResult] = _validate(validators, config, test_output) |
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.
issue: #42
a few notes on this implementation: