Repository navigation
Closed
Labels
P1I'll work on this now. (Assignee required)area-WindowsWindows-specific issues and feature requestscategory: misc > testingplatform: windowsteam-OSSIssues for the Bazel OSS team: installation, release processBazel packaging, websitetype: feature request
Description
Description of the problem / feature request:
Design and implement a way to run tests without requiring tools/test/test-setup.sh.
Current functionality includes:
- setting up environment variables, including making execution-root-relative paths absolute
- handling signals by post-processing the test's output and transforming into an XML file
- running the test either in a subshell or directly as a subprocess, and streaming its output to stdout
- zipping up undeclared output files and writing the undeclared outputs manifest
I think the most complicated item is signal handling: on Windows, Bazel calls TerminateProcess when the user interrupts the test, which kills the test process without a chance to clean up. We may need to run two processes per test on Windows, one running the test and the other doing the cleanup work as soon as the first process is terminated.
Feature requests: what underlying problem are you trying to solve with this feature?
Motivation: #4319
Deliverables: (must be added to / linked from this GH issue):
- doc explaining current test-setup.sh functionality
- design doc explaining proposed Windows native approach and how the approach implements all important features of test-setup.sh
- log of outcome of manual testing on a clean Windows installation without Bash
- commits implementing this feature nativly on Windows
- commits adding integration and regression tests for all features of test-setup.sh
- commit dropping test-setup.sh usage on Windows and using only the new code path
Signals:
- running the newly added tests
- manual testing: running "bazel test //foo:bar_test" on a clean Windows installation without Bash
What operating system are you running Bazel on?
Windows 10
What's the output of bazel info release?
release 0.15.0
Metadata
Metadata
Assignees
Labels
P1I'll work on this now. (Assignee required)area-WindowsWindows-specific issues and feature requestscategory: misc > testingplatform: windowsteam-OSSIssues for the Bazel OSS team: installation, release processBazel packaging, websitetype: feature request
Activity
laszlocsomor commentedon Jul 18, 2018
laszlocsomor/proposals@332fa53
I won't merge this branch, instead I'll embed the text in the eventual design doc.
windows,tests: design Bash-less test execution
windows,tests: design Bash-less test execution
windows,tests: design Bash-less test execution
Windows: add skeleton for Bash-less test wrapper
Windows: add skeleton for Bash-less test wrapper
Windows: add skeleton for Bash-less test wrapper
Windows: add skeleton for Bash-less test wrapper
Create BUILD.tools for //tools/test package.
test wrapper: add empty implementation
149 remaining items
files_equal_test: rewrite as genrule + sh_test
Windows: fix jasmine_node_test on Windows with TW
files_equal_test: rewrite as genrule + sh_test (#2035)
files_equal_test: rewrite as genrule + sh_test (#2035)
files_equal_test: rewrite as genrule + sh_test (#2035)
files_equal_test: rewrite as genrule + sh_test (#2035)
files_equal_test: rewrite as genrule + sh_test (bazel-contrib#2035)
Initial Toolchain Support
Fix tests in //api_proto on Windows (bazel-contrib#610)
laszlocsomor commentedon Nov 29, 2019
Closing this, since Bazel 1.0 rolled out Bash-less test execution.
test execution: close before attempting to delete
unittest.bzl: supports Windows (#84)
diff_test: add rule and tests (#136)