[client] Don't abort UI debug bundle when up/down fails#5780
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough
Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
|
| log.Warnf("failed to bring service up: %v", err) | ||
| } else { | ||
| log.Info("Service brought up for debug") | ||
| time.Sleep(time.Second * 10) |
There was a problem hiding this comment.
It's running in a goroutine, and it's just moved. The sleep was already there
| log.Warnf("failed to bring service down: %v", err) | ||
| } else { | ||
| state.needsRestoreUp = !state.wasDown | ||
| time.Sleep(time.Second) |
There was a problem hiding this comment.
It's running in a goroutine, and it's just moved. The sleep was already there
| log.Warnf("failed to bring service back up: %v", err) | ||
| } else { | ||
| state.needsRestoreUp = false | ||
| time.Sleep(time.Second * 3) |
There was a problem hiding this comment.
It's running in a goroutine, and it's just moved. The sleep was already there



Describe your changes
Mirror the CLI fix from #5657 for the UI debug bundle: when Up/Down/SetLogLevel/SetSyncResponsePersistence calls fail during debug collection, log a warning and continue instead of aborting the entire bundle.
configureServiceForDebug, so the bundle is still generated even if service state changes failrestoreServiceStateerror logging fromErrorftoWarnffor consistencyIssue ticket number and link
Stack
Checklist
Documentation
Select exactly one:
Docs PR URL (required if "docs added" is checked)
Paste the PR link from https://github.com/netbirdio/docs here:
https://github.com/netbirdio/docs/pull/__
Summary by CodeRabbit
Bug Fixes
Chores