tvm icon indicating copy to clipboard operation
tvm copied to clipboard

[CI Problem] test_solution_consistency fails intentionally-nondeterministic check in solve_linear_equations

Open OmarAzizi opened this issue 4 months ago • 1 comments

Branch/PR Failing

https://github.com/apache/tvm/pull/19966

Jenkins Link

https://ci.tlcpack.ai/blue/organizations/jenkins/tvm-cpu/detail/PR-19966/1/pipeline

Flakiness

test_solution_consistency is explicitly documented in the test file as "intentionally non-deterministic" (it seeds random fresh each run and prints the seed only on failure), so it is expected to be flaky by design; the seed for this particular failure wasn't captured in the CI log.

The failing PR only touches python/tvm/relax/frontend/onnx/onnx_frontend.py and its test file, with no relation to arith, so the failure looks environment/randomness-driven rather than caused by the PR's own changes.

Failure:

AssertionError: Expression x1 * 3 - x0 * 5 - 1 != x0 * 3 + 1 - x1 * 3 
is not true on {x1: I.Range(-20, 21), x0: I.Range(-20, 21)}
Counterexample: x0 = -13, x1 = -17

raised from _check(num_vars=2, num_formulas=1) in tests/python/arith/test_arith_solve_linear_equations.py::test_solution_consistency.

Triage

  • needs-triage
  • flaky

OmarAzizi avatar Jul 11 '26 20:07 OmarAzizi

Hi @tlopex

This test(and the arith.solve_linear_equations / arith.solve_linear_inequalities public API it exercised) has since been removed entirely by #20355, which retired the standalone equation/inequality solver along with tvm.testing.check_int_constraints_trans_consistency and both tests/python/arith/test_arith_solve_linear_equations.py and test_arith_solve_linear_inequality.py.

Since the code path and the test that surfaced this flakiness no longer exist on main, there's nothing left to fix here. Maybe we can close this issue now. Thanks.

cchung100m avatar Sep 17 '26 06:09 cchung100m