I know that bazel runs all commands in isolated sandboxes, however, I want to break them deliberately. Suppose I've got a project with the following layout:
.
├── BUILD
├── cpp
│ ├── BUILD
│ ├── foo.cpp
│ └── test_foo.cpp
├── python
│ ├── BUILD
│ ├── foo.py
│ └── test_foo.py
└── WORKSPACE
The file python/BUILD contains a py_test rule that runs some python tests that leave some artifacts (let's say some binary files).
The file cpp/BUILD contains a cc_test rule that runs some cpp tests that require the artifacts left by the python tests.
The question is how I can do this? It would be better if the possible solution would provide all advantages of the incremental build system e.g. not running the python tests if they are older than artifacts and so on.