Skip to content

10.7.0 broke the Yarn tests #21907

@arcanis

Description

@arcanis
  • Version: 10.7.0
  • Platform: OSX
  • Subsystem: http.request

The 10.7.0 release is causing the Yarn test suite to fail (which prevents us from releasing the 1.9, but also might cause issues with everyone already using Yarn), something related to timeouts:

TypeError: sock.setTimeout is not a function
    at setSocketTimeout (_http_client.js:739:10)
    at ClientRequest.setTimeout (_http_client.js:725:5)
    at setReqTimeout (/Users/mael/yarn/node_modules/request/request.js:817:16)
    at ClientRequest.<anonymous> (/Users/mael/yarn/node_modules/request/request.js:860:9)
    at ClientRequest.emit (events.js:187:15)
    at tickOnSocket (_http_client.js:645:7)
    at onSocketNT (_http_client.js:684:5)
    at process._tickCallback (internal/process/next_tick.js:63:19)

A single commit has been pushed to this file between the 10.6.0 and the 10.7.0 and it happens to change the timeout behavior, which would be consistent with the reported error: 949e885 (cc @killagu).

The repro: clone [email protected]:yarnpkg/yarn and run:

$> yarn install
$> yarn test-only integration-deduping -t 'install should dedupe dependencies avoiding conflicts 8'

I realize it's not a great repro, I'm still working on finding a shorter one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    httpIssues or PRs related to the http subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions