Align dependencies and tighten documentation & tests #41
Open
peter-lawrey wants to merge 15 commits intodevelopfrom
Open
Align dependencies and tighten documentation & tests #41peter-lawrey wants to merge 15 commits intodevelopfrom
peter-lawrey wants to merge 15 commits intodevelopfrom
Conversation
james-mcsherry
approved these changes
Nov 25, 2025
…ions and clarifying functionality
…or Chronicle Analytics
…nce to canonical-AGENTS.md
|
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.



This PR updates the dependency BOM, polishes documentation, and hardens the test suite around the Chronicle-Analytics library. Runtime behaviour of the core library is effectively unchanged, apart from potential transitive updates brought in via the refreshed BOM, and slightly richer behaviour in the example
mainclass.Functional changes
Dependency alignment
net.openhft:third-party-bomfrom3.27ea5to3.27ea7inpom.xml.Example application behaviour
AnalyticsExampleMain.mainnow also calls:showBuilder()shortExample()This makes the example program exercise more of the builder API and demonstrates additional usage patterns when the example is run.
Test robustness and correctness
ClientIdUtilTest.cleanupFile()now usesFiles.deleteIfExists(...)and logs a warning via SLF4J on failure, instead of silently ignoringFile.delete()failures. This improves cleanup reliability and observability in tests.GoogleAnalyticsTest.attemptToSendReset()now uses JUnit 5’sAssumptions.assumeFalsestatic import, keeping the assumption consistent with JUnit 5 style.GoogleAnalyticsTest.waitForNewSecond()replaces a pure spin-wait loop withThread.yield()to reduce unnecessary CPU burn while waiting for a new second.HttpUtilTest.hungHttpServer()now:InterruptedExceptionoccurs, improving thread-interruption handling in tests.VanillaAnalyticsBuilderTest:assertTrue(... instanceof ...)withassertInstanceOf(...)for clearer, type-safe assertions.analyticsinstance actually under test instead of a fresh builder call, closing a small correctness gap in the test.Non-functional changes
Documentation and AsciiDoc improvements
README.adoc:Add
:lang: en-GBand:source-highlighter: rougeattributes for consistent language and syntax highlighting.Mark the Java code block with
[source,java,opts=novalidate]to avoid AsciiDoc validation of the snippet.Fix wording and spacing in the introductory paragraph (“usage statistics”, spacing around sentences).
Correct the inline code formatting for the event parameter name from
app_version\`` to ``app_version` ``.Clarify the description of the
noopmodule:src/main/adoc/project-requirements.adocandsrc/main/adoc/security-review.adoc::source-highlighter: rougefor consistent code highlighting across project documents.${clientIdFileName}as$\{clientIdFileName}to prevent unintended variable substitution while keeping the literal value visible in the rendered docs.Code clean-ups
GoogleAnalytics3:eventType.sessionControl()block. This has no runtime effect but reduces noise around the payload assembly logic.VanillaAnalyticsBuilder:messages()into a multi-line method for readability without changing behaviour.Compatibility / risk
3.27ea7, which may update transitive dependencies; however, there are no direct API changes in this module to rely on new features.