Skip to content

Commit 57984d6

Browse files
authored
Mark gradient_test as flaky (#1067)
The test in `gradient_test.py` fails randomly in CI about 50% of the time. This then wastes maintainer time looking at the logs, re-running the checks on PRs, and babysitting things. It's especially annoying when it happens during merge queue events. This PR simply marks that test as flaky using Bazel's feature for that purpose. That should in turn cause Bazel to retry the failed test.
1 parent 21021f6 commit 57984d6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • tensorflow_quantum/python/differentiators

tensorflow_quantum/python/differentiators/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ py_test(
134134
name = "gradient_test",
135135
timeout = "eternal",
136136
srcs = ["gradient_test.py"],
137+
flaky = True,
137138
python_version = "PY3",
138139
deps = [
139140
":adjoint",

0 commit comments

Comments
 (0)