Repository navigation
fix(token-report): list workflows past gh's default 50 - #1435
Merged
Merged
Conversation
`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
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]>
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.
token_report.pylisted workflows withgh workflow listand no--limit. gh then returns at most 50 workflows and gives no sign that it stopped. On a repo with more than 50 workflows, anytend-*workflow past the 50th silently drops out ofreview-runs' Step 2 spend report. Step 1's census still counts that workflow's runs, becauselist_recent_runs.pyalready passes--limit 200and warns at that limit (#1293). So the two steps disagree about which workflows make up the fleet.This PR gives
token_report.pythe sameWORKFLOW_LIMIT = 200, and the same warning when the listing reaches it. The new testtest_the_workflow_listing_asks_past_gh_s_default_and_warns_at_the_limitfailed before the fix: the recorded call wasworkflow list --json name. Thetoken_reportandlist_recent_runssuites pass (43 tests).The listing lines don't overlap with #1397's edits to
token_report.py.