Support artifacts list/download filter by path/state - #934
Open
lizrabuya wants to merge 12 commits into
Open
Conversation
…ts and make sure that if ArtifactID is specified, path and state filter can't be specified
lizrabuya
marked this pull request as ready for review
August 4, 2026 07:42
Contributor
There was a problem hiding this comment.
I didn't find a concrete issue in the filter plumbing, pagination, or command validation. This adds new artifact-selection behavior to both list and download, so it would still benefit from a human sanity-check.
Want to dig deeper?
Paste this into your agent to explore the findings from this review's Buildkite build:
Download the buildsworth logs from build 11631, then answer my questions about the findings.
Install the reading-buildsworth-logs skill to run this.
About buildsworth
Model: gpt-5.6-sol with xhigh thinking.
How to request a review: Comment @buildsworth-bk review on the PR, or request buildsworth-bk as a reviewer.
Risk labels (how buildsworth classifies risk) — buildsworth classifies risk itself from the diff. To let it approve, grant L2 approval by mentioning @buildsworth-bk (see L2 approval grant):
- L1 — Low risk (dep bumps, docs/copy, lockfiles, small presentational fixes). buildsworth may approve by default.
- L2 — Standard risk (new UI, additive API fields, refactors). Approved only with an L2 grant; otherwise comment-only.
- L3 — High risk (auth, migrations, payments, secrets, perf-critical paths). Human review always required.
JoeColeman95
approved these changes
Aug 4, 2026
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.
Description
Adds
--pathand--statefilters tobk artifacts listandbk artifacts download,so users can drill into a build's artifacts by glob or state instead of downloading
everything or looking up an ID first. Uses the new
Path/Statefields onArtifactListOptionsin go-buildkite v5.10.0.Changes
go-buildkiteto v5.10.0 to pick upPath/StateonArtifactListOptions.--pathand--statethrough to the Buildkite API on bothlistanddownload.--path/--statecombined with a positional artifact ID. The check runsbefore build resolution (no wasted API calls) and the error carries a suggestion
pointing users at the correct usage.
--state Finished→finished) before it hits the API.log/rspec*.jsonexample; identical wording across both files.No artifacts found matching path 'coverage/**' and state 'finished'.— via ashared
writeNoArtifactsMessagehelper reused by both commands.cmd/artifacts/list.goandcmd/artifacts/download.gocovering the new filter plumbing, pagination, validation, filter-aware
empty-result messaging, and table rendering.
Examples
Testing
go test ./...)go fmt ./...)Disclosures / Credits
Claude Code assisted with help-text/error-message polish, extracting the shared writeNoArtifactsMessage helper, and drafting the unit tests under cmd/artifacts. I reviewed and directed each change before committing.