Skip to content

[Bug][CI]: the native passthrough reset fixture escapes as an unhandled error under load #5073

Description

@lidge-jun

Client or integration

CI only; not a client-facing path.

Area

CI and release

Summary

tests/server/server-auth.test.ts line 4264 fails intermittently, and it does not fail as an assertion. The line is the fixture deliberately erroring its own stream:

(await source.promise).error(new Error("fixture upstream connection reset"));

The reported failure is that error surfacing as an unhandled error rather than being consumed by the code under test. When the runner is loaded, something that normally attaches to that stream in time does not, and the fixture's own reset escapes and fails the file.

It has now fired on three unrelated branches, which is why it belongs to the test rather than to the changes it interrupted:

Where Head Change under test
test 2/4 936a1c0f68 (#4989) Responses post-header reset recovery
test 2/4 686b18063d (#5024) request-owned main bearer pool ordering
macos 2/2 ecd3adae75 (dev) freeform streaming grammar and SOCKS5 content-coding

The third is on dev itself with no pull request in flight. I attributed the first occurrence to #4989 in a review comment and was wrong about it; that comment is corrected.

The cost is not only the rerun. A test that fails for a reason unrelated to the change under test teaches reviewers to rerun red CI, which is exactly the habit that lets a real failure through.

Reproduction

Not reproducible on demand. It requires the surrounding suite to be under enough load that the reset arrives before its consumer is attached. No local verification was attempted; this repository verifies on hosted CI.

Version

2.59.0 (dev), observed at ecd3adae75.

Operating system

Ubuntu and macOS, GitHub-hosted runners.

Provider and model

Not provider-specific.

Logs or error output

4263 |       expect((await reader.read()).done).toBe(false);
4264 |       (await source.promise).error(new Error("fixture upstream connection reset"));
                                              ^
error: fixture upstream connection reset
      at <anonymous> (tests/server/server-auth.test.ts:4264:40)

Screenshots and supporting files

Not applicable.

Redacted configuration

Not applicable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions