chore: migrate some dispatchers from CallMetadata to Progress (part 1)
This is a first PR in a series where we migrate all dispatchers to accept a Progress instead of a CallMetadata. The goal is to create a Progress instance in a Dispatcher based on a timeout, so that we can later abort all Progress instances when a client disconnects.
For a graduate rollout, interfaces will be marked one by one in the protocol.yml as progress: true, and this flag will be removed in the end.
Most of the server-side methods already accept a Progress, so migration is no-op. Some methods do not - in this case we assume the method is readonly, and dispatcher wraps it with progress.race().
Many server-side methods lost a timeout option in favor of a progress argument, mainly through changes to common types defined in types.ts.
Test results for "tests 1"
5 flaky
:warning: [firefox-library] › library/inspector/cli-codegen-1.spec.ts:986:7 › cli codegen › should not throw csp directive violation errors @firefox-ubuntu-22.04-node18:warning: [firefox-page] › page/page-wait-for-function.spec.ts:104:3 › should work with strict CSP policy @firefox-ubuntu-22.04-node18
:warning: [playwright-test] › ui-mode-test-watch.spec.ts:145:5 › should watch all @ubuntu-latest-node22-1
:warning: [chromium] › headerView.spec.tsx:46:1 › should toggle filters @web-components-html-reporter
:warning: [webkit-page] › page/elementhandle-bounding-box.spec.ts:22:3 › should work @webkit-ubuntu-22.04-node18
39467 passed, 823 skipped :heavy_check_mark::heavy_check_mark::heavy_check_mark:
Merge workflow run.