Skip to content

Silence eccentricity warnings in iFUB diameter test#491

Merged
Krastanov merged 1 commit intoJuliaGraphs:masterfrom
Krastanov-agent:silence-ifub-test-warnings
Feb 21, 2026
Merged

Silence eccentricity warnings in iFUB diameter test#491
Krastanov merged 1 commit intoJuliaGraphs:masterfrom
Krastanov-agent:silence-ifub-test-warnings

Conversation

@Krastanov-agent
Copy link
Copy Markdown
Contributor

@Krastanov-agent Krastanov-agent commented Feb 21, 2026

Comment from Stefan, the human: This particular test was creating many thousands of warnings that were expected. This change is only in a recently added test file.

The autogenerated summary from the bot:

Summary

  • The iFUB diameter test generates 50 random sparse Erdos-Renyi graphs (both directed and undirected) that are often disconnected. The naive diameter_naive reference calls eccentricity on every vertex, which emits an "Infinite path length detected" warning per unreachable vertex — producing ~2300 warnings per test run.
  • Wrap the test loop in with_logger(NullLogger()) to suppress these expected warnings, keeping the test logic and coverage unchanged.

Test plan

  • Pkg.test() passes with zero "Infinite path length detected" warnings
  • All existing tests continue to pass

🤖 Generated with Claude Code

The iFUB diameter test generates random sparse Erdos-Renyi graphs that
are often disconnected. The naive diameter reference implementation calls
eccentricity on every vertex, which emits a "Infinite path length
detected" warning per unreachable vertex -- producing ~2300 warnings per
test run. Wrap the loop in `with_logger(NullLogger())` to suppress them.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.26%. Comparing base (72bcb3b) to head (06c8e0d).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #491   +/-   ##
=======================================
  Coverage   97.26%   97.26%           
=======================================
  Files         122      122           
  Lines        7340     7340           
=======================================
  Hits         7139     7139           
  Misses        201      201           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Krastanov Krastanov merged commit 95fcf25 into JuliaGraphs:master Feb 21, 2026
11 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants