![]() There are a variety of issues with using GTest sharding by default for users of `lit` using the Google Test formatter as mentioned in https://github.com/llvm/llvm-project/issues/56492 and https://github.com/llvm/llvm-project/issues/56491. Currently, there is no way for users to explicitly control the sharding behavior, even with the environment variables that GTest provides. This patch teaches the `googletest` formatter to actually respect `GTEST_TOTAL_SHARDS` and `GTEST_SHARD_INDEX` environment variables if they are set. In practice, we could go one step further and not do any of the post-processing of the JSON files if `GTEST_TOTAL_SHARDS` is `1` for example, but that it left as a follow-up if desired. There may be preferred alternative approaches to disabling sharding entirely through another mechanism, such as a lit config variable. Differential Revision: https://reviews.llvm.org/D133542 |
||
---|---|---|
.. | ||
Inputs | ||
unit | ||
.coveragerc | ||
allow-retries.py | ||
boolean-parsing.py | ||
check-tested-lit-timeout-ability | ||
custom-result-category.py | ||
discovery.py | ||
googletest-cmd-wrapper.py | ||
googletest-crash.py | ||
googletest-discovery-failed.py | ||
googletest-format-respect-gtest-sharding-env-vars.py | ||
googletest-format.py | ||
googletest-sanitizer-error.py | ||
googletest-timeout.py | ||
ignore-fail.py | ||
lit-opts.py | ||
lit.cfg | ||
lit.site.cfg.in | ||
lld-features.py | ||
max-failures.py | ||
max-time.py | ||
parallelism-groups.py | ||
progress-bar.py | ||
reorder.py | ||
selecting.py | ||
shell-parsing.py | ||
show-result-codes.py | ||
show-used-features.py | ||
shtest-encoding.py | ||
shtest-env.py | ||
shtest-format-argv0.py | ||
shtest-format.py | ||
shtest-if-else.py | ||
shtest-inject.py | ||
shtest-keyword-parse-errors.py | ||
shtest-not.py | ||
shtest-output-printing.py | ||
shtest-pushd-popd.py | ||
shtest-recursive-substitution.py | ||
shtest-run-at-line.py | ||
shtest-shell.py | ||
shtest-timeout.py | ||
test-data-micro.py | ||
test-data.py | ||
test-output-micro-resultdb.py | ||
test-output-micro.py | ||
test-output-resultdb.py | ||
test-output.py | ||
unittest-adaptor.py | ||
unparsed-requirements.py | ||
usage.py | ||
use-llvm-tool.py | ||
xfail-cl.py | ||
xunit-output.py |