FYI: https://github.com/bazelbuild/proposals/pull/16
--
László Csomor | Software Engineer | laszlo...@google.com
Google Germany GmbH | Erika-Mann-Str. 33 | 80636 München | Germany
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: HamburgGeschäftsführer: Paul Manicle, Halimah DeLaine Prado
- @jasharpe:FYI: Microsoft has fixed the bug that required this so we should be able to drop this once the next Windows Server release is out (a few months from now likely).I'm not sure if this means we can drop this from the new wrapper entirely. Depends on when it is usable.Thanks! What exactly did they fix: is it now possible to set the CWD to a path longer than MAX_PATH?Btw I think using a junction ("Design adequacy" > "step 9") will beat the purpose of `$TEST_SHORT_EXEC_PATH`.It wasn't a MAX_PATH issue, but an instability in Docker when passing commands above a certain length (around 107 characters or so).Ah I see. But it seems, according to MSDN, SetCurrentDirectoryW now also supports long paths.
If I understand correctly, this isn't true. We run test-setup.sh on remote Windows machines now, and would likely run whatever wrapper binary replaces test-setup.sh on remote Windows machines as well.That said, I don't see a reason why your proposal (which if I understand correctly is basically replacing test-setup.sh with a native program) wouldn't work with remote execution.
Out of curiosity, why bundle the binary rather than build it on the fly like the launchers are?Because we want to require no C++ compiler. The launchers are actually pre-built: Bazel just appends data at the end of a pre-built binary.
+Jeremy Sharpe- @jasharpe:FYI: Microsoft has fixed the bug that required this so we should be able to drop this once the next Windows Server release is out (a few months from now likely).I'm not sure if this means we can drop this from the new wrapper entirely. Depends on when it is usable.Thanks! What exactly did they fix: is it now possible to set the CWD to a path longer than MAX_PATH?Btw I think using a junction ("Design adequacy" > "step 9") will beat the purpose of `$TEST_SHORT_EXEC_PATH`.It wasn't a MAX_PATH issue, but an instability in Docker when passing commands above a certain length (around 107 characters or so).Ah I see. But it seems, according to MSDN, SetCurrentDirectoryW now also supports long paths.(Resolved.)If I understand correctly, this isn't true. We run test-setup.sh on remote Windows machines now, and would likely run whatever wrapper binary replaces test-setup.sh on remote Windows machines as well.That said, I don't see a reason why your proposal (which if I understand correctly is basically replacing test-setup.sh with a native program) wouldn't work with remote execution.@ulfjack pointed out that the stdin-based communication protocol between Bazel and the test wrapper raises questions about remote test execution.Do you know how Bazel interrupts remote actions when the user hits Ctrl+C?
Out of curiosity, why bundle the binary rather than build it on the fly like the launchers are?Because we want to require no C++ compiler. The launchers are actually pre-built: Bazel just appends data at the end of a pre-built binary.(Resolved.)--László Csomor | Software Engineer | laszlo...@google.comGoogle Germany GmbH | Erika-Mann-Str. 33 | 80636 München | GermanyRegistergericht und -nummer: Hamburg, HRB 86891Sitz der Gesellschaft: HamburgGeschäftsführer: Paul Manicle, Halimah DeLaine Prado
--
You received this message because you are subscribed to the Google Groups "bazel-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-dev+unsubscribe@googlegroups.com.
To post to this group, send email to baze...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-dev/CAJ5fxH%2B0avbm0u-eixtOZvhTVnWQbbccMaAqnQ3gNC0o-TFR_A%40mail.gmail.com.
https://github.com/laszlocsomor/proposals/commit/3594152692cfdcdb7e44d0863280ed4925572ae8#diff-81f744deb3c90920fd0c7787a74e5342R137
- @ulfjack:
Some of the steps will move out of the test wrapper script.
- @laszlocsomor:
Which ones?
https://github.com/laszlocsomor/proposals/commit/3594152692cfdcdb7e44d0863280ed4925572ae8#diff-81f744deb3c90920fd0c7787a74e5342R210
- @ulfjack:
Bazel does upload the test-setup.sh script to the remote machine right now.
https://github.com/laszlocsomor/proposals/commit/3594152692cfdcdb7e44d0863280ed4925572ae8#diff-81f744deb3c90920fd0c7787a74e5342R238
- @ulfjack:
We only run LCOV_MERGER if the test exits successfully.
https://github.com/laszlocsomor/proposals/commit/3594152692cfdcdb7e44d0863280ed4925572ae8#diff-81f744deb3c90920fd0c7787a74e5342R250
- @ulfjack:
Add explanation why you want to change that.
https://github.com/laszlocsomor/proposals/commit/3594152692cfdcdb7e44d0863280ed4925572ae8#diff-81f744deb3c90920fd0c7787a74e5342R262
- @ulfjack:
We need to sync with any remote execution implementations on this.
https://github.com/laszlocsomor/proposals/commit/3594152692cfdcdb7e44d0863280ed4925572ae8#diff-81f744deb3c90920fd0c7787a74e5342R271
- @ulfjack:
I'm in the process of making Bazel ensure that a test.xml exists, rather than relying on the test wrapper.
--
You received this message because you are subscribed to the Google Groups "Foundry Windows" group.
To unsubscribe from this group and stop receiving emails from it, send an email to foundry-windo...@google.com.
To post to this group, send email to foundry...@google.com.
To view this discussion on the web visit https://groups.google.com/a/google.com/d/msgid/foundry-windows/CAENczYakhyvLX0krQUzE4gBdQYgXpkhZ5-EnqUhz%2B9%3DHQQH-dQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/google.com/d/msgid/foundry-windows/CAJ5fxHKG2j4jX7mJrGS4uwjWSOvyrktRCOb-xNuemKG2nw4_Ww%40mail.gmail.com.
Yes, I agree. Solving genrules is a separate issue, we'll cross that bridge when we get there.
--
László Csomor | Software Engineer | laszlo...@google.com
Google Germany GmbH | Erika-Mann-Str. 33 | 80636 München | Germany
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: HamburgGeschäftsführer: Paul Manicle, Halimah DeLaine PradoOn Tue, Aug 7, 2018 at 5:02 PM Jeremy Sharpe <jsh...@google.com> wrote:Leaving aside Skylark, I'm guessing genrules will still require bash so we'll need to keep it in the Windows RBE toolchain. Still, this is a good step.On Mon, Aug 6, 2018 at 7:42 AM László Csomor <laszlo...@google.com> wrote:Come to think of it, I don't know how we could build a Linux version of Bazel while cross-compiling the test wrapper for Windows. Thus I don't know how to include the Windows test-wrapper in Linux Bazel binaries. (We could of course build the test wrapper separately, but then building a Bazel release requires an extra-build step.)