Skip to content

Add review polling cancellation and progress, and fix timeout classification - #123

Open
Devnil434 wants to merge 7 commits into
prooflinedev:mainfrom
Devnil434:feat/abort-signal-onpoll-decode-fix
Open

Devnil434 wants to merge 7 commits into
prooflinedev:mainfrom
Devnil434:feat/abort-signal-onpoll-decode-fix

Conversation

@Devnil434

Copy link
Copy Markdown

Closes #121.

Changes

  • Add caller cancellation to review polling, pagination, and the transport requests and retry delays they use. Coverage file uploads also accept a signal.
  • Add an awaited onPoll hook for validated non-terminal snapshots. Check the deadline and cancellation before invoking the hook and while waiting for it.
  • Report a fully received malformed HTTP 200 response as invalid-response even at the deadline. Distinguish caller aborts, request timeouts, and immediate transport failures.

Verification

On Linux at 8a6a630, run:

pnpm install --frozen-lockfile
pnpm generate && git diff --exit-code
pnpm lint
pnpm typecheck
node check-claims.mjs
pnpm build
pnpm test

All 112 tests passed, including the polling callback, abort-ordering, pagination, and malformed-body regressions. Generation produced no tracked changes.

Proofline review

I ran Proofline on fork PR #1. Feedback led to preserving the first transport abort cause, bounding async callbacks, protecting the retained review from callback mutation, and improving cancellation tests. Run 9 reviewed 8a6a630 and lists 19 warnings, including carried-over findings. The callback validates the required top-level envelope and action flags, with deeper validation of nested metadata left as follow-up. Requests with a signal use the direct transport for generated methods that do not accept one. Calls without a signal still use the generated methods. The clone-deadline test could more directly assert the callback invocation count.

This branch has not been deployed

No deployments
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.

Support review polling cancellation and progress

1 participant