Name Date Size #Lines LOC

..--

compile_pip_requirements/H25-Apr-2025-182151

compile_pip_requirements_test_from_external_repo/H25-Apr-2025-6749

custom_commands/H25-Apr-2025-7449

ignore_root_user_error/H25-Apr-2025-166109

local_toolchains/H25-Apr-2025-9572

pip_parse/H25-Apr-2025-10171

py_cc_toolchain_registered/H25-Apr-2025-8469

BUILD.bazelH A D25-Apr-20254.1 KiB149124

README.mdH A D25-Apr-2025996 2216

bazel_from_envH A D25-Apr-2025137 71

custom_commands_test.pyH A D25-Apr-20251.1 KiB329

integration_test.bzlH A D25-Apr-20255.6 KiB133124

runner.pyH A D25-Apr-20254.4 KiB132103

README.md

1# Bazel-in-Bazel integration tests
2
3The tests in this directory are Bazel-in-Bazel integration tests. These are
4necessary because our CI has a limit of 80 jobs, and our test matrix uses most
5of those for more important end-to-end tests of user-facing examples.
6
7The tests in here are more for testing internal aspects of the rules that aren't
8easily tested as tests run by Bazel itself (basically anything that happens
9prior to the analysis phase).
10
11## Adding a new directory
12
13When adding a new diretory, a couple files need to be updated to tell the outer
14Bazel to ignore the nested workspace.
15
16* Add the directory to the `--deleted_packages` flag. Run `pre-commit` and it
17  will do this for you. This also allows the integration test to see the
18  nested workspace files correctly.
19* Update `.bazelignore` and add `tests/integration/<directory>/bazel-<name>`.
20  This prevents Bazel from following infinite symlinks and freezing.
21* Add a `rules_python_integration_test` target to the BUILD file.
22