--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/3abf2880-ee5f-4069-a385-7f3a08d98247%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAOu%2B0LUbCi9OZy4SoypF%3D7biwMJvWW5MywXiO0cyE_2X5BLasQ%40mail.gmail.com.
Is there any way to use a non-embedded version of only a few of the tools? For example, I have a customized //tools/test:test-setup.sh I want to keep, but it would be nice to not have copies of all the other files in //tools too.
Currently, it's easy to keep using a custom CROSSTOOL with --crosstool_top=//tools/cpp:toolchain. Would adding similar flags for some of the other major components in //tools make sense? Or maybe some kind of "local_overlay_repository" which can use WORKSPACE-relative paths?
Cool. Just thought of one other thing - we rely on workspace configurations checked into tools/bazel.rc in our local repo. Is this going to cause a problem there or will Bazel still respect a local tools directory?
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CANK5_0pzMGJ%3Dt_p_o2GLUL_r%2Bep-YdqRjRREqw%3DtWbhFP%2B0%3DYQ%40mail.gmail.com.
I went to actually try adding local_repository(name='bazel_tools', path='.') to my WORKSPACE and ran into a problem: it needs an absolute path. I tried changing that, and then ran into the problem of needing a lot more packages copied into both the tools directory in my repository and other places (like third_party) because Bazel no longer looks for those in the package_path. It seems like there isn't a good way any more to use a tools directory checked in to the same repository as the code. Am I missing something?
On Wed, Oct 14, 2015 at 4:30 AM, Lukács T. Berki <lbe...@google.com> wrote:On Tue, Oct 13, 2015 at 11:10 PM, Brian Silverman <bsilve...@gmail.com> wrote:Is there any way to use a non-embedded version of only a few of the tools? For example, I have a customized //tools/test:test-setup.sh I want to keep, but it would be nice to not have copies of all the other files in //tools too.No, unfortunately, it's currently an all-or-nothing affair. Ulf brought up the idea of having different repositories for different languages (i.e. direct subdirectories if //tools), but I'd first like to sort all the issues out with the migration to a separate tools repository. It was a fiddly migration and I'm not very confident yet that I know of all the issues.Currently, it's easy to keep using a custom CROSSTOOL with --crosstool_top=//tools/cpp:toolchain. Would adding similar flags for some of the other major components in //tools make sense? Or maybe some kind of "local_overlay_repository" which can use WORKSPACE-relative paths?By local_overlay_repository you mean some rule that would replace only part of another repository (in this case, bazel_tools)? TBH, that sounds a bit hackish to me. Separate repositories for separate languages is the way to go.Adding more *_top flags... well, that's certainly a solution and we'll probably end up being there, but I'd rather put it off as long as possible, because having this many command line options is not fun.Adding just one would fix the problem for the only one I actually have a use case for changing: --test_runtime (defaults to Constants.TOOLS_REPOSITORY + "//tools/test:runtime"). If I write that patch, would you be willing to merge it?
On Tue, Oct 20, 2015 at 7:48 PM, Brian Silverman <bsilve...@gmail.com> wrote:
> The main things it does are set up a separate network namespace and support
> running the test on another machine over SSH.
Is this for use with --run_under, or is this a separate mechanism?
> I need the separate network
> namespace because I have third-party tests which otherwise become flaky
> because they all bind to the same ports.
We had a contribution which sets up network NS's for sandboxed
execution. Is this a request to have this wired up with some option or
testtag?
> I also have it re-mount the source tree and /tmp read-only to catch tests
> which try to write there (had issues in the past with third-party tests
> being flaky when run in parallel because they did that...). It also sets
isn't this fixed with sandboxing?
> GTEST_SHARD_INDEX and GTEST_TOTAL_SHARDS based on the Bazel environment
> variables so sharding works with googletest.
We should fix Bazel so gtest sharding works out of the box.