-
Notifications
You must be signed in to change notification settings - Fork 103
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 osq runtime tests on windows #1665
run osq runtime tests on windows #1665
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.
Nice refactor. I love bringing some of the tests into windows.
// This this is only enabled on non-Windows platforms because suspending we have not yet | ||
// figured out how to suspend a process on windows via golang. |
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.
(nit) grammar seems wrong. I think I know what you mean, but I'm not totally sure
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.
updated
// these tests have to be run as admin on windows | ||
|
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.
Is it worth baking this into an if
with a either an error or skip?
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 added it to the test main func, it just logs to stdout, the alternative was to added it to ever single test, which seemed tedious
// This test causes time outs on windows, so it is only run on non-windows platforms. | ||
// Should investigate why this is the case. |
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 wonder if this timeout is related to our prod issue, or unrelated. I think it's reasonable to refactor (as this PR does) and pick that up next PR
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.
was thinking the same, merge this then try to dig into this test
This PR enables osq runtime tests on windows. When running the tests locally on windows, I've only been able to get them to work when running as administrator. I think that's okay?
Thera are a few tests added to
runtime_posix_test.go
that would not run or were flakey on windows.I spent a few hours trying to figure out why the
TestRestart
test would not work consistently on windows, but I was stumped. If anybody has an ideas there, it would be great.