Skip to content

S3 body-phase error context: propagate s3://bucket/key prefix #1617

Closed

Description

@alpergundogdu

S3 body-phase error context (crates/cache/src/origin/s3.rs:636): body-phase stream errors lose the s3://bucket/key prefix that header-phase errors carry; deferred out of #271 (closed), untracked since.

Split from #1565.

Activity

  1. added
    rust
    prio:low
    on Aug 5, 2026
  2. github-actions commented on Aug 5, 2026

    @github-actions

    🎯 Triage report

    Scoped follow-up from the #1565 deferred-work roundup. Body-phase stream errors in crates/cache/src/origin/s3.rs (around line 636) drop the `(bucket/redacted) URI prefix that header-phase errors already include, making log correlation harder. The fix is purely additive: thread the bucket/key context into the body-phase error path. No design decisions required.

    📊 Assessment

    Dimension Value Reasoning
    Type Task Scoped clean-up/improvement item, not a bug report or feature request
    Labels technical, rust, low (already set) Accurate; no additions needed
    Coding agent Suitable Single file, specific line reference, clear success criteria (body-phase errors carry the same `(bucket/redacted) prefix as header-phase errors)

    🔗 Similar issues

    💡 Notes and suggestions

    Location: crates/cache/src/origin/s3.rs around line 636 — the body-phase StreamError / io::Error construction.

    Pattern to follow: Find the header-phase error construction in the same file to see how it attaches the (bucket/redacted) context string, then apply the same .context(format!("(redacted) (or equivalent map_err) to the body-phase error path.

    Success criteria:

    • Body-phase errors in S3Origin include the (bucket/redacted) prefix in their Display` output.
    • No new unwrap/expect/panic introduced (clippy denies these workspace-wide).
    • cargo nextest run -p decdn-cache passes.

    Tip: #[derive(Debug)] or thiserror chain preservation — make sure the original error is retained as the source, not discarded.

    Generated by Agentic Triage for #1617 · sonnet46 · 17 AIC · ⌖ 5.68 AIC · ⊞ 6K · ◷

    Add this agentic workflow to your repo

    To install this agentic workflow, run

    gh aw add githubnext/agentics/workflows/issue-triage.md@94ec5db57374c5b04a4b8eef8b4413f9af44d63f
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

prio:lowrust

Type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions