Date: 2025-09-30
Repository: https://github.com/tensorflow/tensorflow
| Category | Present | Tooling/Mechanisms | Key Evidence (paths, snippets) | Confidence |
|---|---|---|---|---|
| Automated regression testing | Yes | Bazel test suites executed via CI scripts; Nightly test script | tensorflow/tools/ci_build/linux/cpu/run_py3_core.sh — runs bazel test with tag/size filters; tensorflow/tools/ci_build/linux/gpu/run_cc_core.sh — GPU tests; tensorflow/tools/ci_build/a100/nightly.sh — nightly runner invoking bazel test across GPU/TPU filters |
0.8 |
| Unit test coverage tracking | No evidence | No coverage configs or usage of bazel coverage, coverage.py, codecov, coveralls found | Searches returned none for: "bazel coverage", codecov, coveralls, coverage.py, .coveragerc | 0.7 |
| Unit test coverage threshold tracking | No | No thresholds or gates found in CI/scripts | No references in CI/workflows or scripts | 0.9 |
| Code style check | Yes | PyLint, clang-format, buildifier; GH Action presubmit for PyLint | .github/workflows/pylint-presubmit.yml; .pylintrc; .clang-format (Google style); ci/official/utilities/code_check_changed_files.bats (mentions buildifier, clang-format, pylint) | 0.95 |
| Integration testing | Yes | TensorFlow Lite testing harness and end-to-end model tests via Bazel | tensorflow/lite/testing/BUILD defines tflite_model_test, tflite_portable_test_suite, generated_test_models_all (end-to-end execution and validation) | 0.7 |
CI test scripts (CPU):
File: tensorflow/tools/ci_build/linux/cpu/run_py3_core.sh
Excerpt:
# Run bazel test command. Double test timeouts to avoid flakes.
bazel test --test_tag_filters=-no_oss,-oss_excluded,-oss_serial,-gpu,-tpu,-benchmark-test \
--test_lang_filters=py -k \
--jobs=${N_JOBS} --test_timeout 300,450,1200,3600 --build_tests_only --config=opt \
--test_output=errors --test_size_filters=small,medium -- \
//tensorflow/... -//tensorflow/compiler/... -//tensorflow/contrib/...
CI test scripts (GPU/C++):
File: tensorflow/tools/ci_build/linux/gpu/run_cc_core.sh
Excerpt:
export TF_NEED_ROCM=0
export TF_NEED_CUDA=1
bazel test --config=cuda --test_tag_filters=-no_oss,-oss_excluded,-oss_serial,-no_gpu,-benchmark-test \
-k --test_lang_filters=cc --jobs=${N_JOBS} --test_timeout 300,450,1200,3600 \
--build_tests_only --test_output=errors --local_test_jobs=8 --config=opt --test_size_filters=small,medium \
--run_under=//tensorflow/tools/ci_build/gpu_build:parallel_gpu_execute -- \
//tensorflow/... -//tensorflow/compiler/...
Nightly regression run:
File: tensorflow/tools/ci_build/a100/nightly.sh
Excerpt (invokes GPU-focused bazel tests overnight):
docker run ... tensorflow/tensorflow:devel-gpu bash -c "git pull; bazel test --config=cuda -c opt -k \
--test_tag_filters=gpu,-no_gpu,-benchmark-test,-no_oss,-oss_excluded,-oss_serial,-v1only,-no_gpu_presubmit,-no_cuda11 \
-- //tensorflow/... -//tensorflow/compiler/tf2tensorrt/... -//tensorflow/compiler/mlir/tosa/... -//tensorflow/compiler/mlir/lite/... -//tensorflow/lite/micro/examples/... -//tensorflow/core/tpu/... -//tensorflow/lite/..."
Interpretation: The presence of scripted Bazel test runners and a nightly script indicates automated regression testing is practiced (even though GitHub Actions do not run tests directly in this repo; tests are likely executed by external CI using these scripts).
.clang-format at repo root
BasedOnStyle: Google
DerivePointerAlignment: false
TensorFlow Lite comprehensive testing harness:
Additional unit test examples (Python) indicating rich test coverage though not necessarily integration by name: