Skip to content

0.120.1: Analysis requests under Bun run past 5 minutes

Choose a tag to compare

@danielgwilson danielgwilson released this 09 Oct 23:44
· 206 commits to main since this release
9e4b9d2

humanish 0.120.1 lets an analysis request from a Bun process run longer than 5 minutes. Under Bun,
undici is Bun's built-in module, whose fetch ignores the analysis provider's dispatcher and
ended each request after 300 seconds, so an analysis whose model took longer, as a 34-participant
run's cohort requests did at 325 to 405 seconds, failed with analysis_provider_network_error.
The provider now passes timeout: false, which Bun reads and Node's undici ignores, and the
request's own timeoutMs ends it under either runtime. A TimeoutError from fetch is recorded
as provider_client_timeout.

This is a patch release: one fix, no command, flag, study field, bundle field or export changes.
The one new output is the provider_client_timeout error code, which replaces
provider_network_error for a TimeoutError from fetch.

Fixes

  • An analysis request from a Bun process can take longer than 5 minutes. The provider passes
    timeout: false to fetch, which Bun's built-in undici reads and Node's undici ignores; the
    request's timeoutMs ends it under either runtime. A TimeoutError from fetch is recorded as
    provider_client_timeout where it read provider_network_error (#1757, fixes #1756).

Checked before release

  • Under Bun 1.3.11, a local server that answers after 330 s, with the provider's own fetch init
    sent through Bun's fetch: the fix completes at 330 s with the answer; npm 0.120.0 fails at
    exactly 300 s with provider_network_error.
  • Two provider tests (the init carries timeout: false; a TimeoutError maps to
    provider_client_timeout) failed before the fix and pass after.
  • pnpm release:check on the release commit: exit 0, pack 972 files, shasum
    725c79c1676bd2788aa2b2207780b059de9bdab6.

Not verified

  • Bun 1.3.13 and a live analysis of more than 16 participants from Bun in this release's own
    checks. An adopter's run of a patched 0.120.0 under Bun 1.3.13 is the live evidence.
  • Why one live failure under Bun came at about 243 s rather than 300 s.
  • macOS and Windows.

Package

humanish@0.120.1: 972 files, the same file list, dependencies and engines as 0.120.0.