Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Division by zero prevents project page load #2204

Closed
ngladitz opened this issue May 14, 2024 · 0 comments
Closed

Division by zero prevents project page load #2204

ngladitz opened this issue May 14, 2024 · 0 comments

Comments

@ngladitz
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant