Baunsgaard opened a new pull request, #2487:
URL: https://github.com/apache/systemds/pull/2487

   CholeskyTest reconstructs A from its Cholesky factor and asserts that the 
1x1 residual D = sum(A-B) is approximately zero. The output was read back with 
dmlOut.keySet().iterator().next(), which assumes at least one cell is present. 
When the residual is exactly 0.0, the sparse text writer omits the cell 
entirely, so the result map comes back empty and the iterator throws 
NoSuchElementException. A perfect reconstruction therefore caused the test to 
error out instead of pass.
   
   This is not data-dependent flakiness: the input matrix is already seeded, so 
A is identical on every run. The variability comes from the reduction order of 
sum(A-B), which differs across Spark partitions and CP threads. Because 
floating-point addition is not associative, the residual lands on either an 
exact 0.0 (empty output) or a tiny non-zero value depending on execution, which 
is why only some runs (notably testLargeCholeskyDenseSP) failed. The fix treats 
an empty output as 0.0, making the assertion robust to both outcomes, and drops 
the now-unused MatrixValue import.
   
   Error: 
https://github.com/apache/systemds/actions/runs/27172521960/job/80214522399 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to