Skip to content

Mark gradient_test as flaky#1067

Open
mhucka wants to merge 2 commits into
tensorflow:masterfrom
mhucka:mark-flaky-gradient-test
Open

Mark gradient_test as flaky#1067
mhucka wants to merge 2 commits into
tensorflow:masterfrom
mhucka:mark-flaky-gradient-test

Conversation

@mhucka
Copy link
Copy Markdown
Member

@mhucka mhucka commented May 12, 2026

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.

mhucka added 2 commits May 12, 2026 02:17
The test in `gradient_test.py` fails in CI about 50% of the time at random.
@mhucka mhucka added area/health Involves general matters of project configuration, health, maintenance, and similar concerns area/devops Involves build systems, Make files, Bazel files, continuous integration, and/or other DevOps topics area/tests Involves tests and testing of the TFQ codebase labels May 12, 2026
@mhucka mhucka marked this pull request as ready for review May 12, 2026 02:34
Copy link
Copy Markdown
Contributor

@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 marks the gradient_test in the tensorflow_quantum/python/differentiators/BUILD file as flaky. Feedback indicates that combining a flaky designation with an 'eternal' timeout is problematic for CI efficiency and reliability, as it may block the merge queue and increase costs; it is recommended to address the root cause of the test's non-determinism or disable it until stabilized.

Comment thread tensorflow_quantum/python/differentiators/BUILD
@mhucka mhucka requested a review from MichaelBroughton May 12, 2026 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/devops Involves build systems, Make files, Bazel files, continuous integration, and/or other DevOps topics area/health Involves general matters of project configuration, health, maintenance, and similar concerns area/tests Involves tests and testing of the TFQ codebase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant