You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error return was dead weight — the only caller (GenReports) silently
discards it. CalculateUptime now returns (float64, time.Duration)
directly. Over-range periods return (-1, 0), producing "Not computed"
in JSON as before.
Removes ErrInvalidRange sentinel error and associated tests.
Covers all four setters (SetDownActionStatus, SetLoopStatus,
SetLastSuccessAt, SetNextCheckAt) including zero/omit, overdue
clamping, and concurrent access scenarios.
Two build-and-run integration tests tagged with //go:build integration:
- TestEndToEnd verifies the binary starts with a minimal config
- TestEndToEnd_StatsServer tests the full lifecycle: build, start with
stats server on a known port, query /stats.json for valid JSON with
expected fields, then clean shutdown via SIGINT.
Pattern follows existing version_integration_test.go convention.
We reviewed changes in 56ed78a...687f625 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
The reason will be displayed to describe this comment to others. Learn more.
Method 'startStatServer' differs only by capitalization to function 'StartStatServer' in /home/runner/go/src/pkg.deepsource.io/sample/internal/status/stat-server.go
Methods or fields of struct that have names different only by capitalization
could be confusing.
❌ Patch coverage is 82.58065% with 27 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.84%. Comparing base (56ed78a) to head (687f625). ⚠️ Report is 15 commits behind head on main.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.