CDash icon indicating copy to clipboard operation
CDash copied to clipboard

Division by zero prevents project page load

Open ngladitz opened this issue 1 year ago • 0 comments

Bug report

Expected Behavior

Project page loads and displays.

Actual Behavior

Project page shows header but is otherwise blank.

CDash Version

3.3

Additional Information

Log shows:

[2024-05-14 10:01:46] testing.ERROR: Division by zero {"exception":"[object] (DivisionByZeroError(code: 0): Division by zero at /opt/CDash/app/cdash/public/api/v1/index.php:418)

The content of index.php at the location is:

            @$previouspercent =
                round(($loctested - $loctesteddiff) /
                    ($loctested - $loctesteddiff +
                        $locuntested - $locuntesteddiff)
                    * 100, 2);

I assume that means ($loctested - $loctesteddiff + $locuntested - $locuntesteddiff) happens to be 0.

No idea how to reproduce this. I've got multiple projects set up in my instance which all receive regular submissions. I only see this issue on a single of my projects at the moment. Maybe there was a broken / unexpected coverage report which breaks this.

ngladitz avatar May 14 '24 10:05 ngladitz