--filter ignores matching jobs

Open
#5 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
rust
Domain
cli

Research direction

Start by reproducing the reported command: treeherder-cli --filter "macosx.*gtest" --include-intermittent, then compare its results with the underlying Treeherder API response. Trace where default state narrowing occurs relative to regex filtering. Done means matching jobs are returned even when they are in progress or unscheduled, while existing sheriff workflows remain usable.

Written by the indexing model from the issue text.

Description

Retro after a session with claude:

treeherder-cli --filter ignored matching jobs. treeherder-cli --filter "macosx.*gtest" --include-intermittent returned "No jobs found" when the underlying Treeherder API showed those jobs in mixed states. Looks like the filter is applied after a default state-narrowing pass that drops in-progress / unscheduled tasks. I had to drop to raw curl + python to enumerate. The CLI behaviour is fine for sheriff workflows but surprising for "show me everything matching the regex".

Dominant language
Rust
Stars
1
Forks
2
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from padenot/treeherder-cli

All issues in padenot/treeherder-cli

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.