Skip to content

refactor(runtime-alerts): Re-home legacy alert package#1169

Open
leumor wants to merge 1 commit intodevelopfrom
bugfix/runtime-alerts-package-rehome-prep
Open

refactor(runtime-alerts): Re-home legacy alert package#1169
leumor wants to merge 1 commit intodevelopfrom
bugfix/runtime-alerts-package-rehome-prep

Conversation

@leumor
Copy link
Collaborator

@leumor leumor commented Mar 24, 2026

Summary

  • move the legacy network.crypta.node.useralerts cluster into network.crypta.runtime.alerts
  • move UserAlertManagerStoreAlertSink alongside the alert cluster and update main/test references, Javadocs, and SpotBugs excludes
  • add root-build stale-output pruning so non-clean builds no longer package deleted node.useralerts classes into cryptad.jar

How to test

  • ./gradlew compileJava compileTestJava
  • ./gradlew test --tests 'network.crypta.runtime.alerts.*' --tests 'network.crypta.node.PeerAlertCoordinatorTest' --tests 'network.crypta.node.subsystem.NodeServicesSubsystemTest' --tests 'network.crypta.node.subsystem.NodeStorageSubsystemTest' --tests 'network.crypta.runtime.endpoints.ClientEndpointsTest' --tests 'network.crypta.runtime.admin.LegacyWelcomeActionPortTest' --tests 'network.crypta.clients.http.UserAlertsToadletTest' --tests 'network.crypta.node.updater.NodeUpdateManagerTest' --tests 'network.crypta.node.updater.UpdateOverMandatoryManagerTest'
  • ./gradlew buildJar
  • rg -n "network\\.crypta\\.node\\.useralerts|network\\.crypta\\.node\\.runtime\\.UserAlertManagerStoreAlertSink" .

Notes

  • buildJar was verified against a dirty incremental output state to confirm the legacy alert classes are pruned from both build/classes/java/main and build/libs/cryptad.jar.
  • The remaining compile warning in LongTermPushRepullTestTest is pre-existing and unrelated to this change.

Move the legacy user alert cluster and its package-local tests from network.crypta.node.useralerts into network.crypta.runtime.alerts, and relocate UserAlertManagerStoreAlertSink alongside them.

Update main-source and test references, Javadocs, and SpotBugs exclusions to the new package, and add root-build stale-output pruning so non-clean builds stop packaging deleted node.useralerts classes into cryptad.jar.
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
5.6% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

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.

1 participant