-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 --nozip_undeclared_test_outputs
on Windows
#16973
Fix --nozip_undeclared_test_outputs
on Windows
#16973
Conversation
5b0af74
to
fd6897b
Compare
Without this change, testing with `--nozip_undeclared_test_outputs` always fails with this error: ``` FATAL: MappedOutputFile(): CreateFileW() failed: (error: 3): The system cannot find the path specified. ```
fd6897b
to
ccd8f48
Compare
], ) | ||
self.AssertExitCode(exit_code, 0, stderr) | ||
# FIXME: The Windows test runner does not delete the undeclared outputs | ||
# after zipping, which differs from the behavior on other platforms. |
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.
Fixing this would require implementing recursive directory removal in the Windows runner. The code already exists in src/main/cpp/util/file_windows.cc
, let me know if you want me to copy it over.
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'm okay with fixing this separately.
], ) | ||
self.AssertExitCode(exit_code, 0, stderr) | ||
# FIXME: The Windows test runner does not delete the undeclared outputs | ||
# after zipping, which differs from the behavior on other platforms. |
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'm okay with fixing this separately.
@bazel-io flag |
(flagging for 6.1.0, not a regression) |
@bazel-io fork 6.1.0 |
Without this change, testing with `--nozip_undeclared_test_outputs` always fails with this error: ``` FATAL: MappedOutputFile(): CreateFileW() failed: (error: 3): The system cannot find the path specified. ``` Closes #16973. PiperOrigin-RevId: 494953454 Change-Id: I8338e897a9e4f4fdcd6dad511ee8e777182fefcd Co-authored-by: Fabian Meumertzheim <[email protected]>
Without this change, testing with
--nozip_undeclared_test_outputs
always fails with this error: