feat(tak): show local server status - #6599
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughTAK server lifecycle state now includes support, startup, and startup-error reporting. Service shutdown and retry behavior handles pending and failed starts. Settings display localized status text, client counts, status indicators, previews, and screenshot coverage. ChangesTAK server lifecycle and settings status
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@core/service/src/commonTest/kotlin/org/meshtastic/core/service/MeshServiceOrchestratorTest.kt`:
- Around line 206-220: Update testTakServerCanRetryAfterFailedStart and the
related second lifecycle test to make the manager’s first start invocation fail,
then verify the subsequent retry succeeds and the expected start/stop calls
occur. Explicitly verify takServerManager.start and takServerManager.stop for
the second orchestrator start/stop cycle so both lifecycle paths prove their
side effects.
In
`@core/takserver/src/commonMain/kotlin/org/meshtastic/core/takserver/TAKServerManager.kt`:
- Around line 104-111: Serialize TAKServerManager lifecycle attempts so start
admission cannot overlap an invalidated startup: update TAKServerManager.kt
lines 104-111 to coordinate start and stop, and lines 132-158 to use a
per-attempt server handle or await prior startup cleanup before retrying,
ensuring stale completion cannot stop a newer listener. In
TAKServerManagerTest.kt lines 223-233, first drive start A into its pending
state through the production lifecycle path, then stop, start B, complete A, and
verify B remains active.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: f8845805-20ce-40c1-a11d-4f367bdb20c5
⛔ Files ignored due to path filters (8)
screenshot-tests/src/screenshotTestDebug/reference/org/meshtastic/screenshots/feature/SettingsScreenshotTestsKt/ScreenshotTakServerSectionConnected_Dark_d19fbf1f_0.pngis excluded by!**/*.png,!**/*.pngscreenshot-tests/src/screenshotTestDebug/reference/org/meshtastic/screenshots/feature/SettingsScreenshotTestsKt/ScreenshotTakServerSectionConnected_Light_b29dc7a7_0.pngis excluded by!**/*.png,!**/*.pngscreenshot-tests/src/screenshotTestDebug/reference/org/meshtastic/screenshots/feature/SettingsScreenshotTestsKt/ScreenshotTakServerSectionDisabled_Dark_d19fbf1f_0.pngis excluded by!**/*.png,!**/*.pngscreenshot-tests/src/screenshotTestDebug/reference/org/meshtastic/screenshots/feature/SettingsScreenshotTestsKt/ScreenshotTakServerSectionDisabled_Light_b29dc7a7_0.pngis excluded by!**/*.png,!**/*.pngscreenshot-tests/src/screenshotTestDebug/reference/org/meshtastic/screenshots/feature/SettingsScreenshotTestsKt/ScreenshotTakServerSectionEnabled_Dark_d19fbf1f_0.pngis excluded by!**/*.png,!**/*.pngscreenshot-tests/src/screenshotTestDebug/reference/org/meshtastic/screenshots/feature/SettingsScreenshotTestsKt/ScreenshotTakServerSectionEnabled_Light_b29dc7a7_0.pngis excluded by!**/*.png,!**/*.pngscreenshot-tests/src/screenshotTestDebug/reference/org/meshtastic/screenshots/feature/SettingsScreenshotTestsKt/ScreenshotTakServerSectionFailed_Dark_d19fbf1f_0.pngis excluded by!**/*.png,!**/*.pngscreenshot-tests/src/screenshotTestDebug/reference/org/meshtastic/screenshots/feature/SettingsScreenshotTestsKt/ScreenshotTakServerSectionFailed_Light_b29dc7a7_0.pngis excluded by!**/*.png,!**/*.png
📒 Files selected for processing (13)
.skills/compose-ui/strings-index.txtcore/resources/src/commonMain/composeResources/values/strings.xmlcore/service/src/commonMain/kotlin/org/meshtastic/core/service/MeshServiceOrchestrator.ktcore/service/src/commonTest/kotlin/org/meshtastic/core/service/MeshServiceOrchestratorTest.ktcore/takserver/src/commonMain/kotlin/org/meshtastic/core/takserver/TAKServer.ktcore/takserver/src/commonMain/kotlin/org/meshtastic/core/takserver/TAKServerManager.ktcore/takserver/src/commonTest/kotlin/org/meshtastic/core/takserver/FakeTAKServerManager.ktcore/takserver/src/commonTest/kotlin/org/meshtastic/core/takserver/TAKServerManagerTest.ktcore/takserver/src/iosMain/kotlin/org/meshtastic/core/takserver/TAKServerIos.ktfeature/settings/src/commonMain/kotlin/org/meshtastic/feature/settings/radio/component/TAKConfigItemList.ktfeature/settings/src/commonMain/kotlin/org/meshtastic/feature/settings/radio/component/TAKConfigPreviews.ktfeature/settings/src/commonTest/kotlin/org/meshtastic/feature/settings/radio/component/TakServerStatusTest.ktscreenshot-tests/src/screenshotTest/kotlin/org/meshtastic/screenshots/feature/SettingsScreenshotTests.kt
Summary
Screenshots
Listening for ATAK:
Startup failure with retry guidance:
Verification
Summary by CodeRabbit
New Features
Bug Fixes