Skip to content

fix: stop workflow-run pagination at --since boundary before conclusion filter#1248

Merged
v1v merged 1 commit into
mainfrom
fix-1247-since-boundary-conclusion-1c086805e97742fb
Jun 22, 2026
Merged

fix: stop workflow-run pagination at --since boundary before conclusion filter#1248
v1v merged 1 commit into
mainfrom
fix-1247-since-boundary-conclusion-1c086805e97742fb

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

  • stop pagination immediately when a run is older than --since, before applying conclusion filtering
  • preserve existing filtering behavior for --conclusion and --until
  • add a regression test for the --since + --conclusion interaction where the boundary run does not match conclusion

Why

list_workflow_runs previously applied conclusion filtering before checking the --since boundary. If the first run older than --since had a non-matching conclusion, the function skipped that run and continued to the next page unnecessarily.

Testing

  • make test (fails in this environment because uv is unavailable)
  • /tmp/gh-aw/agent/venv/bin/python -m pytest tests/test_fetch_workflow_logs.py -q
  • /tmp/gh-aw/agent/venv/bin/python -m pytest tests/ -q

Closes #1247


What is this? | From workflow: Trigger Bug Hunter

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

Stop pagination as soon as workflow runs cross the --since boundary, even when the run does not match --conclusion.

Add a regression test covering the since+conclusion boundary case.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@v1v v1v marked this pull request as ready for review June 15, 2026 18:53
@v1v v1v requested a review from fr4nc1sc0-r4m0n June 15, 2026 18:53
@github-actions github-actions Bot added the small_boom Small PR blast radius; usually low human-review need label Jun 15, 2026

@fr4nc1sc0-r4m0n fr4nc1sc0-r4m0n left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@v1v v1v merged commit 27bb72e into main Jun 22, 2026
17 checks passed
@v1v v1v deleted the fix-1247-since-boundary-conclusion-1c086805e97742fb branch June 22, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

small_boom Small PR blast radius; usually low human-review need

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug-hunter] fetch-workflow-logs paginates past --since when --conclusion skips boundary run

2 participants