Skip to content
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

[3006.x] fix win_task ExecutionTimeLimit and result/error code interpretation #66442

Merged
merged 5 commits into from
Jul 2, 2024

Conversation

hurzhurz
Copy link
Contributor

What does this PR do?

  • win_task.info: fix interpretation of unset/unlimited ExecutionTimeLimit and other unknown values.
  • fix/optimize task result and error code interpretation

What issues does this PR fix or reference?

Fixes #66347, #66441

ExecutionTimeLimit: can be nothing or "PT0S" if not used
_reverse_lookup: if not found, return "invalid value" instead of the last dict element
correct high result/error code numbers that are returned as negative numbers by win32com.
handle unknown LastTaskResult result codes.
@hurzhurz hurzhurz requested a review from a team as a code owner April 26, 2024 08:30
@hurzhurz hurzhurz requested review from whytewolf and removed request for a team April 26, 2024 08:30
@dwoz
Copy link
Contributor

dwoz commented May 1, 2024

@hurzhurz is there any possibility you can write a regression test for this change?

@hurzhurz
Copy link
Contributor Author

hurzhurz commented May 2, 2024

@dwoz ok, I gave it a try and wrote some tests. please have a look

@twangboy twangboy added this to the Sulfur v3006.9 milestone Jun 28, 2024
Copy link
Contributor

@dmurphy18 dmurphy18 left a comment

Choose a reason for hiding this comment

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

rebased with latest and want to see tests pass

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.

None yet

4 participants