Skip to content

feat(artifacts): download one flow's artifacts with --result-id or --… - #338

Merged
finalerock44 merged 1 commit into
devfrom
feat/artifacts-result-filter
Nov 18, 2026
Merged

finalerock44 merged 1 commit into
devfrom
feat/artifacts-result-filter

Conversation

@finalerock44

Copy link
Copy Markdown
Contributor

…flow

A full run's artifacts can run to hundreds of MB when only one flow's files are needed. dcd artifacts gains two mutually exclusive flags, both requiring --download-artifacts:

  • --result-id : only that result's flow run, meaning its first attempt and every retry on that one device.
  • --flow <file|name>: resolved to a result from the upload's results, by file path (with or without ./), file name, or name without extension. When it matches more than one result, e.g. one per device in a matrix, it fails and lists the result ids to pick from.

The id is sent to the API as an optional filter (a resultId query param on the bundle route, a resultId body field on the inline route) and only when set, so unfiltered downloads are unchanged. An API without the filter would ignore it and return the whole upload. The CLI accepts a filtered bundle only when the API names it as one, and otherwise fails instead of saving the wrong ZIP. The dcd_download_artifacts MCP tool takes the same two options as resultId and flow.

What & why

Type of change

  • fix — bug fix
  • feat — new feature
  • perf — performance improvement
  • refactor — code change that's neither a fix nor a feature
  • docs — documentation only
  • chore / ci / build / test — tooling, no user-facing change
  • Breaking change (title has ! or PR notes a BREAKING CHANGE:)

Checklist

  • PR title follows the Conventional Commits format (see comment above)
  • pnpm lint passes
  • pnpm typecheck passes
  • pnpm build passes
  • I have not bumped the version or edited CHANGELOG.md (the release workflow handles this)
  • I have signed the CLA (the bot will prompt on first contribution)
  • Docs / README.md / STYLE_GUIDE.md updated if behaviour or output changed

How to test

@finalerock44 finalerock44 self-assigned this Nov 18, 2026
@claude

claude Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

🤖 Generated with Claude Code

Base automatically changed from fix/zip-integrity-check to dev November 18, 2026 16:45
…flow

A full run's artifacts can run to hundreds of MB when only one flow's
files are needed. dcd artifacts gains two mutually exclusive flags, both
requiring --download-artifacts:

- --result-id <id>: only that result's flow run, meaning its first attempt
  and every retry on that one device.
- --flow <file|name>: resolved to a result from the upload's results, by
  file path (with or without ./), file name, or name without extension.
  When it matches more than one result, e.g. one per device in a matrix,
  it fails and lists the result ids to pick from.

The id is sent to the API as an optional filter (a resultId query param
on the bundle route, a resultId body field on the inline route) and only
when set, so unfiltered downloads are unchanged. An API without the filter
would ignore it and return the whole upload. The CLI accepts a filtered
bundle only when the API names it as one, and otherwise fails instead of
saving the wrong ZIP. The dcd_download_artifacts MCP tool takes the same
two options as resultId and flow.
@finalerock44
finalerock44 force-pushed the feat/artifacts-result-filter branch from 0207131 to 05f546f Compare November 18, 2026 16:47
@finalerock44
finalerock44 merged commit 3659af3 into dev Nov 18, 2026
9 checks passed
@finalerock44
finalerock44 deleted the feat/artifacts-result-filter branch November 18, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant