Skip to content

fix(token-report): list workflows past gh's default 50 - #1435

Merged
max-sixty merged 1 commit into
mainfrom
fix/token-report-workflow-limit
Sep 27, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/token-report-workflow-limit

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

token_report.py listed workflows with gh workflow list and no --limit. gh then returns at most 50 workflows and gives no sign that it stopped. On a repo with more than 50 workflows, any tend-* workflow past the 50th silently drops out of review-runs' Step 2 spend report. Step 1's census still counts that workflow's runs, because list_recent_runs.py already passes --limit 200 and warns at that limit (#1293). So the two steps disagree about which workflows make up the fleet.

This PR gives token_report.py the same WORKFLOW_LIMIT = 200, and the same warning when the listing reaches it. The new test test_the_workflow_listing_asks_past_gh_s_default_and_warns_at_the_limit failed before the fix: the recorded call was workflow list --json name. The token_report and list_recent_runs suites pass (43 tests).

The listing lines don't overlap with #1397's edits to token_report.py.

`token_report.py` called `gh workflow list` with no `--limit`, so on a repo
with more than 50 workflows any `tend-*` workflow past the 50th dropped out
of the spend without a warning, while `list_recent_runs.py`'s census, which
already passes `--limit 200` (#1293), still counted its runs. Pass the same
limit and warn at it the same way.
@max-sixty
max-sixty merged commit 0a320d1 into main Sep 27, 2026
11 checks passed
@max-sixty
max-sixty deleted the fix/token-report-workflow-limit branch September 27, 2026 07:45
max-sixty pushed a commit to max-sixty/worktrunk that referenced this pull request Sep 30, 2026
Upgrades the generated Tend workflows from 0.3.4 to 0.3.5
([compare](max-sixty/tend@0.3.4...0.3.5)).
The regenerated YAML changes little on its own: the action pin moves to
`max-sixty/tend/[email protected]`, and most of the behavior change arrives
through the new action's bundled skills and scripts.

What maintainers will notice:

- **Bot PRs get their review findings applied.** The review workflow now
decides whether to apply its own findings by who authored the PR, so a
review on a bot-authored PR follows through with a fix instead of
stopping at the comment (max-sixty/tend#1433).
- **Relayed PR-review mentions are named after the PR.** `tend-mention`
runs triggered through `tend-mention-relay` now get the PR title as
their run name rather than the event type, and the notifications poll
uses that name to tell which PR a live run is handling
(max-sixty/tend#1450). The relay job also skips when `TEND_ENABLED` is
`false`, instead of dispatching a run that does nothing
(max-sixty/tend#1452).
- **CI waits run to completion instead of a fixed cap.** CI polling and
integration-test waits now wait for checks to settle instead of timing
out at about 9 minutes, so a slow matrix reports its real result rather
than "unverified" (max-sixty/tend#1448, max-sixty/tend#1451).
- **Fewer truncated listings.** Pagination now reads every page of
notifications, failed-run jobs, and workflow listings
(max-sixty/tend#1435, max-sixty/tend#1442, max-sixty/tend#1457). The
inline pagination helpers in `tend-mention` and `tend-notifications` now
use `gh api --paginate --slurp`.
- **Weekly dependency review matches Dependabot and Renovate PRs
again.** It now matches on the `app/…` author login that `gh` reports
(max-sixty/tend#1441).
- **Nightly and review behavior.** Repo overlays can now skip advisory
checks, review findings are ranked by severity, and the nightly issue
sweep rotates across issues (max-sixty/tend#1450). `ci-fix` recurrence
comments now lead with what changed (max-sixty/tend#1446).

Also bumps the pinned `uv` from 0.12.17 to 0.12.19 in the pre-check
steps. `.config/tend.yaml` has no model pin, so there was no model to
update.

Co-authored-by: worktrunk-bot <[email protected]>
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.

2 participants