Repository navigation
fix: General changes and fixes on the project - #36
Merged
Merged
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR updates ServerPulse to
0.5.5-SNAPSHOT, improves metrics sending reliability and safety, cleans up a few API/implementation details, and introduces a CI workflow to automatically create GitHub releases when the Gradle version changes.Changes
Versioning
0.5.2-SNAPSHOTto0.5.5-SNAPSHOTinbuild.gradle.kts.0.5.5-SNAPSHOTto keep it in sync.Metrics & database behavior
MetricsService: send line protocol asynchronously and log an error when InfluxDB reports a failure instead of assuming success.DatabaseService:startRetryTaskIfNeededa private helper instead of part of the publicIDatabaseServiceAPI.API / data model
AsyncMetricsSnapshot:commitedHeap→committedHeap(field, constructor parameter, getter).LineProtocolFormatter:getCommittedHeap()when writing theavailable_memoryfield, ensuring the metric name and accessor are consistent.IDatabaseService:startRetryTaskIfNeeded()method from the public interface (now internal toDatabaseService).Utility
ChatUtils:formatnull-safe by returning an empty string when the input message isnullinstead of throwing aNullPointerException.CI / Releases
.github/workflows/auto_release_on_version_change.yml:pushtomasterwhenbuild.gradle.ktschanges.v<version>HEAD.Create Release Assetsworkflow that attaches built JARs to the release.Potential impact / breaking changes
startRetryTaskIfNeeded()fromIDatabaseServiceis a source-breaking change for any external consumers that used that method; it remains available as a private implementation detail inDatabaseService.available_memory) is unchanged.