fix(dispatch-check): paginate the complete task feed #1247
No reviewers
Labels
No labels
bump
major
bump
minor
bump
patch
kind/bug
kind/chore
kind/docs
kind/feature
priority/critical
priority/high
priority/low
priority/medium
size/L
size/M
size/S
size/XL
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
frankenbit/release-toolkit!1247
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rigger/1227-dispatch-pagination"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refs #1227
Contract
/actions/tasksfeed withpage=N&limit=M, starting at page 1.workflow_runspage.{}, as could-not-grade.task_feed_pages,task_feed_rows, and terminal-pagetask_feed_totalso the whole-read cost is visible.Measured live evidence
6c5f99f3a74c052f4f0007efa877300b321110c3; the branch was created from that exact main tip.rt dispatch-check 6c5f99f3 --owner frankenbit --repo release-toolkitcompleted with exit 0.task_feed_pages=503,task_feed_rows=25068,task_feed_total=25068. Pages include the terminal empty page.Controls
len(rows) < requested limitmadeTestDispatchReadsUseCanonicalEndpointsfail (rc 1).TestListActionTasksRejectsMalformedPageInsteadOfTreatingItAsEmptyfail (rc 1).Verification
go test -count=1 ./...passed.go test -race -count=1 ./...passed.go vet ./...,go build ./..., and golangci-lint passed.bats --print-output-on-failure tests/: 161/161 passed.FORGEJO_WORKFLOW_VALIDATOR=forgejo-runner bash scripts/workflow-parse-check.sh .:PARSED=30 TOTAL=30, passed.scripts/contract-paths-check.sh docs/architecture/contracts: passed.shellcheck --severity=warningoverscripts/: passed.git diff --check: passed.Artifact snapshot
68ffdb01c8b0a0f0ad3aeeb7bfc926a13596b2f5.main; its moving base pointer is intentionally omitted from this body. The implementation snapshot base is recorded separately below.6c5f99f3a74c052f4f0007efa877300b321110c3; no rebase was performed while the repository allows an outdated branch.Approved exact head
68ffdb01c8(server base66ce9d76eb). Ran go test ./..., go vet ./..., go build ./..., golangci-lint, Bats 161/161, register-check, fragment-check, and diff-check. Independently verified the dispatch feed reads page=1&limit=M through a short non-empty page to an explicit empty workflow_runs page; malformed HTTP-200 {} returns ErrUnexpectedResponse with no partial feed; CLI reports page/row/total counts. Mutation of short-page termination failed the canonical feed test, malformed-page leniency failed the refusal test, and removal of feed-count output failed the CLI count assertion. No findings.