Propagate silently swallowed runtime failures - #69
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
Propagate silently swallowed runtime failures#69devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
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
Audited
try?/ empty-catch/let _ =sites and fixed the ones where a real failure was indistinguishable from success, empty output, or a normal end-of-stream. Intentional best-effort cleanup (try? removeItem, log rotation, etc.) was left alone.Streaming transport lost its setup and read errors.
UnixSocketHTTP.streamreturned throughonCompletewhether it had connected or not, and aread()error was treated as EOF:onFailuredefaults to a no-op so existing callers are unchanged; the Docker consumers now use it — log streams yield anERRORline, andbuild/pushImageyield Docker's own{"errorDetail":…}frame (whichAppStorealready renders asERROR: …) instead of ending as an empty successful stream.Docker log reads.
logs(containerID:)turned any non-2xx into[]; it now throwsHTTPError.status. Consequently:AppStore.fetchLogs/fetchEnvsetactionErrorinstead of(try? …) ?? [], so the detail view no longer shows "no logs" for a failed request./containers/{id}/logsreturns 500 rather than an empty raw stream.AppStore.streamPodLogsyields a failure line whenkubectlcannot even launch (previouslycatch { continuation.finish() }).TLS proxy degradation was unobservable.
refreshTLSProxyLockedswallowed both issuance and start failures, so HTTPS could silently fall back to HTTP-only for new domains. The reason is now retained and surfaced end-to-end:NetworkingStatus.httpsProxyError→ XPC dictionary →DorydNetworkingStatus→HealthReporter'snetwork.resourcescheck (nowwarnwith adory repair domains --applyaction). The rollback path also clearstlsProxywhen restarting the previous listener fails, sostatus()can't report an HTTPS mode backed by a stopped proxy.Health repair fallback hid the daemon's error.
runRepairTargetusedif …, let result = try? await dorydClient.repairSubsystem(target), so a thrown daemon error fell through to the CLI path and vanished. The CLI fallback still runs (the daemon may not be running), but its failure message now carries the daemon reason.Terminal
dockerinstall reported success unconditionally.HostDockerCLI.install()returnedtrueas long as the bundled helper existed, even if the symlink or every profile write failed;symlink/addToPathnow report their outcome andinstall()returns whetherdockeris linked and on PATH.Other: Finder materialization retry keeps the last underlying error (
materializationIncomplete(items:reason:)instead of a bareproviderUnavailable), and the non-Linuxdory-agentsmoke build now decodes the dispatcher probe response and fails on an RPC error instead oflet _ = dispatch(…)printing "dispatcher OK".Validation
cargo check/cargo fmt --checkpass fordory-core(the changedmain.rsarm iscfg(not(target_os = "linux")), checked by temporarily flipping the cfg locally). Swift build/tests need Apple Silicon macOS + Xcode perCONTRIBUTING.mdand could not run here —scripts/build.sh/scripts/test.shwere not executed.Link to Devin session: https://app.devin.ai/sessions/214208f8367e42aa9e53c1dab4fb99c6
Requested by: @Augani