![]() 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 |
||
---|---|---|
.. | ||
allow-retries | ||
config-map-discovery | ||
custom-result-category | ||
discovery | ||
exec-discovery | ||
exec-discovery-in-tree | ||
fake-externals | ||
googletest-cmd-wrapper | ||
googletest-crash | ||
googletest-discovery-failed | ||
googletest-format | ||
googletest-format-respect-gtest-sharding-env-vars | ||
googletest-sanitizer-error | ||
googletest-timeout | ||
ignore-fail | ||
lit-opts | ||
lld-features | ||
max-failures | ||
max-time | ||
parallelism-groups | ||
progress-bar | ||
py-config-discovery | ||
reorder | ||
show-result-codes | ||
show-used-features | ||
shtest-env | ||
shtest-format | ||
shtest-format-argv0 | ||
shtest-if-else | ||
shtest-inject | ||
shtest-keyword-parse-errors | ||
shtest-not | ||
shtest-output-printing | ||
shtest-pushd-popd | ||
shtest-recursive-substitution | ||
shtest-run-at-line | ||
shtest-shell | ||
shtest-timeout | ||
standalone-tests | ||
standalone-tests-with-excludes | ||
standalone-tests-with-suffixes | ||
test-data | ||
test-data-micro | ||
test_retry_attempts | ||
testrunner-custom-parsers | ||
unittest-adaptor | ||
unparsed-requirements | ||
use-llvm-tool | ||
use-llvm-tool-required | ||
xfail-cl | ||
xunit-output | ||
lit.cfg |