Skip to content

Conversation

@alexnovak
Copy link
Contributor

8.6.0 compatibility for 374f82f

This allows us to run nonlocal tests while supplying the --nobuild_runfile_manifests flag

Addresses bazelbuild#23980

When testing a large number of targets against a build farm, runfile manifests can start to pile up pretty quickly on the client, and take up a large amount of disk space. The runfile manifests are also unnecessary when performing tests with the sandboxed or remote spawn strategies, only (to my understanding) local or standalone.

This change modifies the test wrappers to error early if the runfile directory can't be found, and instructs the user to build with runfile manifests, or change their execution strategy.

We still need to be able to actually get the runfile directory when the input manifest isn't present. To address this, we also change the behavior of getRunfilesDirectory to just return the runfilesTreeArtifact's path.

Closes bazelbuild#27412.

PiperOrigin-RevId: 845855359
Change-Id: I761a79b1354879bce3622da4bacb3d5f04515a4f
@alexnovak alexnovak requested a review from a team as a code owner January 14, 2026 01:13
@github-actions github-actions bot added team-Configurability platforms, toolchains, cquery, select(), config transitions awaiting-review PR is awaiting review from an assigned reviewer labels Jan 14, 2026
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request allows running non-local tests with the --nobuild_runfile_manifests flag, which is a backport for version 8.6.0. The changes correctly modify how the runfiles directory path is determined to not rely on the manifest. Additionally, checks are added to the test setup scripts for both Unix and Windows to provide a clear error message when local execution strategies are used without a runfiles tree. The accompanying test updates accurately reflect these new behaviors. The implementation is clean, consistent, and looks correct.

@alexnovak
Copy link
Contributor Author

thank you gemini that's very kind

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review PR is awaiting review from an assigned reviewer team-Configurability platforms, toolchains, cquery, select(), config transitions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant