Skip to content

cli: the give-up line names the persistent lane build fault #3019

Backlog

Description

@yigitdot

Follow-up to #2371 / #3014.

#3014 attaches a LastBuildFault context to a GaveUp when a provider's lane build failed at least BUILD_RETRY_WARN_AT (6) times in a row with no lane built since. The full error chain shows it, but decdn get does not: crates/cli/src/main.rs prints stop_message(&e) for a give-up, and stop_message (crates/cli/src/commands/interrupt.rs) builds the line from GaveUp and ResumeFrom alone. With the CLI's default logging the WARN lines do not print either, so an RPC outage still ends as a bare no progress for 10m; rerun from <dir> to resume.

This waits for #3015, which also edits interrupt.rs.

Change

  • Make decdn_client::fault::LastBuildFault public again (re-export from lib.rs). fix(client): a lane build failing at the backoff cap logs WARN; GaveUp carries the last fault #3014 keeps it pub(crate) because nothing outside the crate reads it.
  • In stop_message, when err.downcast_ref::<LastBuildFault>() is Some, put it on the give-up line before the rerun advice. Keep GAVE_UP_EXIT and the escrow-in-flight wording as they are.
  • Add an interrupt/tests.rs case: a give-up with the context names the provider and the fault, and still exits GAVE_UP_EXIT.
  • Drop the sentence "The decdn CLI prints only its give-up line, without this context." from adr/appendix-observability.md.

Activity

  1. added
    rust
    area:cli
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clirust

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    • Status
      Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions