Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump nock from 13.5.6 to 14.0.0 #452

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 27, 2025

Bumps nock from 13.5.6 to 14.0.0.

Release notes

Sourced from nock's releases.

v14.0.0

BREAKING CHANGES

  • drop support for Node < 18

Features

v14.0.0-beta.19

14.0.0-beta.19 (2024-12-04)

Bug Fixes

  • backport: memory leaks due to timer references outliving the timers (#2773) (#2773) (66eb7f4)
  • call fs.createReadStream lazily (#2357) (ba9fc42)
  • remove duplicates from activeMocks() and pendingMocks() (#2356) (7e957b3)
  • support literal query string (#2590) (4162fa8)
  • types: return type of BackOptions.afterRecord (#2782) (fc90bd3)

v14.0.0-beta.18

14.0.0-beta.18 (2024-11-25)

Bug Fixes

  • recorder: recompress fetch body on record (#2810) (be35f23)

v14.0.0-beta.17

14.0.0-beta.17 (2024-11-21)

Bug Fixes

  • fetch: add support for aborting requests using AbortSignal (#2809) (a143911)

v14.0.0-beta.16

14.0.0-beta.16 (2024-11-14)

Bug Fixes

  • fetch: support Content-Encoding response header (#2797) (451e69c)
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [nock](https://github.com/nock/nock) from 13.5.6 to 14.0.0.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](nock/nock@v13.5.6...v14.0.0)

---
updated-dependencies:
- dependency-name: nock
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the topic: infrastructure Related to project infrastructure label Jan 27, 2025
@per1234 per1234 added the type: enhancement Proposed improvement label Jan 27, 2025
Copy link
Contributor

@per1234 per1234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to cause a regression in the tests:

https://github.com/arduino/arduino-lint-action/actions/runs/12980463142/job/36200807004?pr=452#step:5:31

(node:1927) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 connect listeners added to [MockHttpSocket]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(Use `node --trace-warnings ...` to show where the warning was created)
aborted
Waiting 16 seconds before trying again
(node:1927) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 connect listeners added to [MockHttpSocket]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
aborted
Waiting 15 seconds before trying again
(node:1927) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 connect listeners added to [MockHttpSocket]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
aborted
Waiting 20 seconds before trying again
(node:1927) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 connect listeners added to [MockHttpSocket]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(node:1927) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 connect listeners added to [MockHttpSocket]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
aborted
Waiting 14 seconds before trying again
(node:1927) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 connect listeners added to [MockHttpSocket]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
aborted
Waiting 19 seconds before trying again
(node:1927) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 connect listeners added to [MockHttpSocket]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
aborted
Waiting 14 seconds before trying again
(node:1927) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 connect listeners added to [MockHttpSocket]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
FAIL __tests__/main.test.ts (62.9[38](https://github.com/arduino/arduino-lint-action/actions/runs/12980463142/job/36200807004?pr=452#step:5:39) s)
  installer tests
    ✕ Downloads version of arduino-lint if no matching version is installed (20008 ms)
    Gets the latest release of arduino-lint
      ✕ Gets the latest version of arduino-lint 1.0.0 using 1.0 and no matching version is installed (20002 ms)
      ✕ Gets latest version of the 1 major series using 1.x and no matching version is installed (20002 ms)

  ● installer tests › Downloads version of arduino-lint if no matching version is installed

    thrown: "Exceeded timeout of 20000 ms for a test.
    Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

      59 |   });
      60 |
    > 61 |   it("Downloads version of arduino-lint if no matching version is installed", async () => {
         |   ^
      62 |     const toolPath = await installer.getArduinoLint("1.0.0");
      63 |     const bindir = path.join(toolDir, "arduino-lint", "1.0.0", os.arch());
      64 |

      at __tests__/main.test.ts:61:3
      at Object.<anonymous> (__tests__/main.test.ts:38:1)

  ● installer tests › Gets the latest release of arduino-lint › Gets the latest version of arduino-lint 1.0.0 using 1.0 and no matching version is installed

    thrown: "Exceeded timeout of 20000 ms for a test.
    Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

      90 |     });
      91 |
    > 92 |     it("Gets the latest version of arduino-lint 1.0.0 using 1.0 and no matching version is installed", async () => {
         |     ^
      93 |       await installer.getArduinoLint("1.0");
      94 |       const bindir = path.join(toolDir, "arduino-lint", "1.0.0", os.arch());
      95 |

      at __tests__/main.test.ts:92:5
      at __tests__/main.test.ts:75:3
      at Object.<anonymous> (__tests__/main.test.ts:38:1)

  ● installer tests › Gets the latest release of arduino-lint › Gets latest version of the 1 major series using 1.x and no matching version is installed

    thrown: "Exceeded timeout of 20000 ms for a test.
    Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

      102 |     }, 20000);
      103 |
    > 104 |     it("Gets latest version of the 1 major series using 1.x and no matching version is installed", async () => {
          |     ^
      105 |       await installer.getArduinoLint("1.x");
      106 |       const bindir = path.join(toolDir, "arduino-lint", "1.0.0", os.arch());
      107 |

      at __tests__/main.test.ts:104:5
      at __tests__/main.test.ts:75:3
      at Object.<anonymous> (__tests__/main.test.ts:38:1)

The fault is consistently repeatable and did not occur when I triggered a workflow run from the main branch, so this is not caused by a transient network outage.


I tried increasing the test timeout duration to 600000 and after that the tests still failed, except this time throwing a different exception:

thrown: "Failed to download version 1.0.0: Error: aborted"

The breaking changes that caused the major version bump of Nock are described in the release notes as:

  • drop support for Node < 18

This project uses Node 20, so that is not relevant. In addition, I see this:

nock/nock#2813 (comment)

  1. drop support for delayConnection

However, that is only a deprecation and it is not used in this project anyway.


I ran the tests with NODE_DEBUG set to nock:* and the Node.js --trace-warnings flag to get more information, but I don't see anything interesting:

NOCK:BACK 1923: New nock back mode: dryrun
NOCK:RECORDER 1923: 0 restoring all the overridden http/https properties
NOCK:INTERCEPT 1923: restoring overridden ClientRequest
NOCK:INTERCEPT 1923: - ClientRequest was not overridden
NOCK:INTERCEPT 1923: Overriding ClientRequest
NOCK:INTERCEPT 1923: ClientRequest overridden
NOCK:COMMON 1923: options.hostname in the end: "api.github.com"
NOCK:COMMON 1923: options.host in the end: "api.github.com:443"
NOCK:INTERCEPT 1923: interceptors for "api.github.com:443"
NOCK:INTERCEPT 1923: filtering interceptors for basepath https://api.github.com:443
NOCK:COMMON 1923: options.host: api.github.com:443
NOCK:COMMON 1923: options.hostname in the end: "api.github.com"
NOCK:COMMON 1923: options.host in the end: "api.github.com:443"
NOCK:INTERCEPT 1923: Net connect  enabled for api.github.com:443
NOCK:COMMON 1923: options.hostname in the end: "github.com"
NOCK:COMMON 1923: options.host in the end: "github.com:443"
NOCK:INTERCEPT 1923: interceptors for "github.com:443"
NOCK:INTERCEPT 1923: filtering interceptors for basepath https://github.com:443
NOCK:COMMON 1923: options.host: github.com:443
NOCK:COMMON 1923: options.hostname in the end: "github.com"
NOCK:COMMON 1923: options.host in the end: "github.com:443"
NOCK:INTERCEPT 1923: Net connect  enabled for github.com:443
NOCK:COMMON 1923: options.hostname in the end: "objects.githubusercontent.com"
NOCK:COMMON 1923: options.host in the end: "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: interceptors for "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: filtering interceptors for basepath https://objects.githubusercontent.com:443
NOCK:COMMON 1923: options.host: objects.githubusercontent.com:443
NOCK:COMMON 1923: options.hostname in the end: "objects.githubusercontent.com"
NOCK:COMMON 1923: options.host in the end: "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: Net connect  enabled for objects.githubusercontent.com:443
(node:1923) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 connect listeners added to [MockHttpSocket]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at _addListener (node:events:592:17)
    at MockHttpSocket.addListener (node:events:610:10)
    at MockHttpSocket.Readable.on (node:internal/streams/readable:1128:35)
    at MockHttpSocket.once (node:events:654:8)
    at MockHttpSocket.Socket._read (node:net:720:10)
    at MockHttpSocket.Readable.read (node:internal/streams/readable:739:12)
    at MockHttpSocket.Socket.read (node:net:777:39)
    at maybeReadMore_ (node:internal/streams/readable:893:12)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
aborted
Waiting 10 seconds before trying again
NOCK:COMMON 1923: options.hostname in the end: "github.com"
NOCK:COMMON 1923: options.host in the end: "github.com:443"
NOCK:INTERCEPT 1923: interceptors for "github.com:443"
NOCK:INTERCEPT 1923: filtering interceptors for basepath https://github.com:443
NOCK:COMMON 1923: options.host: github.com:443
NOCK:COMMON 1923: options.hostname in the end: "github.com"
NOCK:COMMON 1923: options.host in the end: "github.com:443"
NOCK:INTERCEPT 1923: Net connect  enabled for github.com:443
NOCK:COMMON 1923: options.hostname in the end: "objects.githubusercontent.com"
NOCK:COMMON 1923: options.host in the end: "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: interceptors for "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: filtering interceptors for basepath https://objects.githubusercontent.com:443
NOCK:COMMON 1923: options.host: objects.githubusercontent.com:443
NOCK:COMMON 1923: options.hostname in the end: "objects.githubusercontent.com"
NOCK:COMMON 1923: options.host in the end: "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: Net connect  enabled for objects.githubusercontent.com:443
(node:1923) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 connect listeners added to [MockHttpSocket]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at _addListener (node:events:592:17)
    at MockHttpSocket.addListener (node:events:610:10)
    at MockHttpSocket.Readable.on (node:internal/streams/readable:1128:35)
    at MockHttpSocket.once (node:events:654:8)
    at MockHttpSocket.Socket._read (node:net:720:10)
    at MockHttpSocket.Readable.read (node:internal/streams/readable:739:12)
    at MockHttpSocket.Socket.read (node:net:777:39)
    at maybeReadMore_ (node:internal/streams/readable:893:12)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
aborted
Waiting 12 seconds before trying again
NOCK:COMMON 1923: options.hostname in the end: "github.com"
NOCK:COMMON 1923: options.host in the end: "github.com:443"
NOCK:INTERCEPT 1923: interceptors for "github.com:443"
NOCK:INTERCEPT 1923: filtering interceptors for basepath https://github.com:443
NOCK:COMMON 1923: options.host: github.com:443
NOCK:COMMON 1923: options.hostname in the end: "github.com"
NOCK:COMMON 1923: options.host in the end: "github.com:443"
NOCK:INTERCEPT 1923: Net connect  enabled for github.com:443
NOCK:COMMON 1923: options.hostname in the end: "objects.githubusercontent.com"
NOCK:COMMON 1923: options.host in the end: "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: interceptors for "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: filtering interceptors for basepath https://objects.githubusercontent.com:443
NOCK:COMMON 1923: options.host: objects.githubusercontent.com:443
NOCK:COMMON 1923: options.hostname in the end: "objects.githubusercontent.com"
NOCK:COMMON 1923: options.host in the end: "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: Net connect  enabled for objects.githubusercontent.com:443
(node:1923) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 connect listeners added to [MockHttpSocket]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at _addListener (node:events:592:17)
    at MockHttpSocket.addListener (node:events:610:10)
    at MockHttpSocket.Readable.on (node:internal/streams/readable:1128:35)
    at MockHttpSocket.once (node:events:654:8)
    at MockHttpSocket.Socket._read (node:net:720:10)
    at MockHttpSocket.Readable.read (node:internal/streams/readable:739:12)
    at MockHttpSocket.Socket.read (node:net:777:39)
    at maybeReadMore_ (node:internal/streams/readable:893:12)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
NOCK:SCOPE:API.GITHUB.COM 1923: reply.headers: {}
NOCK:SCOPE:API.GITHUB.COM 1923: reply.rawHeaders: []
NOCK:COMMON 1923: options.hostname in the end: "api.github.com"
NOCK:COMMON 1923: options.host in the end: "api.github.com:443"
NOCK:INTERCEPT 1923: interceptors for "api.github.com:443"
NOCK:INTERCEPT 1923: filtering interceptors for basepath https://api.github.com:443
NOCK:INTERCEPT 1923: matched base path (1 interceptor)
NOCK:COMMON 1923: options.host: api.github.com
NOCK:COMMON 1923: options.hostname in the end: "api.github.com"
NOCK:COMMON 1923: options.host in the end: "api.github.com:443"
NOCK:INTERCEPT 1923: interceptors for "api.github.com:443"
NOCK:INTERCEPT 1923: filtering interceptors for basepath https://api.github.com:443
NOCK:INTERCEPT 1923: matched base path (1 interceptor)
NOCK:INTERCEPT 1923: using 1 interceptors
NOCK:REQUEST_OVERRIDER 1923: request write
NOCK:REQUEST_OVERRIDER 1923: request end
NOCK:REQUEST_OVERRIDER 1923: ending
NOCK:SCOPE:API.GITHUB.COM 1923: attempting match {"protocol":"https:","hostname":"api.github.com","hash":"","search":"","pathname":"/repos/arduino/arduino-lint/git/refs/tags","path":"/repos/arduino/arduino-lint/git/refs/tags","href":"https://api.github.com/repos/arduino/arduino-lint/git/refs/tags","method":"GET","host":"api.github.com:443","port":443,"proto":"https","headers":{"accept":"application/json","authorization":"Basic UEFUOg==","connection":"close","user-agent":"arduino-lint-action"}}, body = ""
NOCK:SCOPE:API.GITHUB.COM 1923: query matching skipped
NOCK:SCOPE:API.GITHUB.COM 1923: matching https://api.github.com:443/repos/arduino/arduino-lint/git/refs/tags to GET https://api.github.com:443/repos/arduino/arduino-lint/git/refs/tags: true
NOCK:SCOPE:API.GITHUB.COM 1923: interceptor identified, starting mocking
NOCK:SCOPE:API.GITHUB.COM 1923: response.rawHeaders: []
NOCK:SCOPE:API.GITHUB.COM 1923: emitting response
NOCK:COMMON 1923: options.hostname in the end: "github.com"
NOCK:COMMON 1923: options.host in the end: "github.com:443"
NOCK:INTERCEPT 1923: interceptors for "github.com:443"
NOCK:INTERCEPT 1923: filtering interceptors for basepath https://github.com:443
NOCK:COMMON 1923: options.host: github.com:443
NOCK:COMMON 1923: options.hostname in the end: "github.com"
NOCK:COMMON 1923: options.host in the end: "github.com:443"
NOCK:INTERCEPT 1923: Net connect  enabled for github.com:443
NOCK:COMMON 1923: options.hostname in the end: "objects.githubusercontent.com"
NOCK:COMMON 1923: options.host in the end: "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: interceptors for "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: filtering interceptors for basepath https://objects.githubusercontent.com:443
NOCK:COMMON 1923: options.host: objects.githubusercontent.com:443
NOCK:COMMON 1923: options.hostname in the end: "objects.githubusercontent.com"
NOCK:COMMON 1923: options.host in the end: "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: Net connect  enabled for objects.githubusercontent.com:443
(node:1923) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 connect listeners added to [MockHttpSocket]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at _addListener (node:events:592:17)
    at MockHttpSocket.addListener (node:events:610:10)
    at MockHttpSocket.Readable.on (node:internal/streams/readable:1128:35)
    at MockHttpSocket.once (node:events:654:8)
    at MockHttpSocket.Socket._read (node:net:720:10)
    at MockHttpSocket.Readable.read (node:internal/streams/readable:739:12)
    at MockHttpSocket.Socket.read (node:net:777:39)
    at maybeReadMore_ (node:internal/streams/readable:893:12)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
aborted
Waiting 14 seconds before trying again
NOCK:COMMON 1923: options.hostname in the end: "github.com"
NOCK:COMMON 1923: options.host in the end: "github.com:443"
NOCK:INTERCEPT 1923: interceptors for "github.com:443"
NOCK:INTERCEPT 1923: filtering interceptors for basepath https://github.com:443
NOCK:COMMON 1923: options.host: github.com:443
NOCK:COMMON 1923: options.hostname in the end: "github.com"
NOCK:COMMON 1923: options.host in the end: "github.com:443"
NOCK:INTERCEPT 1923: Net connect  enabled for github.com:443
NOCK:COMMON 1923: options.hostname in the end: "objects.githubusercontent.com"
NOCK:COMMON 1923: options.host in the end: "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: interceptors for "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: filtering interceptors for basepath https://objects.githubusercontent.com:443
NOCK:COMMON 1923: options.host: objects.githubusercontent.com:443
NOCK:COMMON 1923: options.hostname in the end: "objects.githubusercontent.com"
NOCK:COMMON 1923: options.host in the end: "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: Net connect  enabled for objects.githubusercontent.com:443
(node:1923) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 connect listeners added to [MockHttpSocket]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at _addListener (node:events:592:17)
    at MockHttpSocket.addListener (node:events:610:10)
    at MockHttpSocket.Readable.on (node:internal/streams/readable:1128:35)
    at MockHttpSocket.once (node:events:654:8)
    at MockHttpSocket.Socket._read (node:net:720:10)
    at MockHttpSocket.Readable.read (node:internal/streams/readable:739:12)
    at MockHttpSocket.Socket.read (node:net:777:39)
    at flow (node:internal/streams/readable:1283:53)
    at resume_ (node:internal/streams/readable:1[26](https://github.com/per1234/arduino-lint-action/actions/runs/12986430712/job/36213242893#step:5:27)2:3)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
aborted
Waiting 14 seconds before trying again
NOCK:COMMON 1923: options.hostname in the end: "github.com"
NOCK:COMMON 1923: options.host in the end: "github.com:443"
NOCK:INTERCEPT 1923: interceptors for "github.com:443"
NOCK:INTERCEPT 1923: filtering interceptors for basepath https://github.com:443
NOCK:COMMON 1923: options.host: github.com:443
NOCK:COMMON 1923: options.hostname in the end: "github.com"
NOCK:COMMON 1923: options.host in the end: "github.com:443"
NOCK:INTERCEPT 1923: Net connect  enabled for github.com:443
NOCK:COMMON 1923: options.hostname in the end: "objects.githubusercontent.com"
NOCK:COMMON 1923: options.host in the end: "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: interceptors for "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: filtering interceptors for basepath https://objects.githubusercontent.com:443
NOCK:COMMON 1923: options.host: objects.githubusercontent.com:443
NOCK:COMMON 1923: options.hostname in the end: "objects.githubusercontent.com"
NOCK:COMMON 1923: options.host in the end: "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: Net connect  enabled for objects.githubusercontent.com:443
(node:1923) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 connect listeners added to [MockHttpSocket]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at _addListener (node:events:592:17)
    at MockHttpSocket.addListener (node:events:610:10)
    at MockHttpSocket.Readable.on (node:internal/streams/readable:11[28](https://github.com/per1234/arduino-lint-action/actions/runs/12986430712/job/36213242893#step:5:29):35)
    at MockHttpSocket.once (node:events:654:8)
    at MockHttpSocket.Socket._read (node:net:720:10)
    at MockHttpSocket.Readable.read (node:internal/streams/readable:739:12)
    at MockHttpSocket.Socket.read (node:net:777:39)
    at maybeReadMore_ (node:internal/streams/readable:893:12)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
NOCK:SCOPE:API.GITHUB.COM 1923: reply.headers: {}
NOCK:SCOPE:API.GITHUB.COM 1923: reply.rawHeaders: []
NOCK:COMMON 1923: options.hostname in the end: "api.github.com"
NOCK:COMMON 1923: options.host in the end: "api.github.com:443"
NOCK:INTERCEPT 1923: interceptors for "api.github.com:443"
NOCK:INTERCEPT 1923: filtering interceptors for basepath https://api.github.com:443
NOCK:INTERCEPT 1923: matched base path (1 interceptor)
NOCK:COMMON 1923: options.host: api.github.com
NOCK:COMMON 1923: options.hostname in the end: "api.github.com"
NOCK:COMMON 1923: options.host in the end: "api.github.com:443"
NOCK:INTERCEPT 1923: interceptors for "api.github.com:443"
NOCK:INTERCEPT 1923: filtering interceptors for basepath https://api.github.com:443
NOCK:INTERCEPT 1923: matched base path (1 interceptor)
NOCK:INTERCEPT 1923: using 1 interceptors
NOCK:REQUEST_OVERRIDER 1923: request write
NOCK:REQUEST_OVERRIDER 1923: request end
NOCK:REQUEST_OVERRIDER 1923: ending
NOCK:SCOPE:API.GITHUB.COM 1923: attempting match {"protocol":"https:","hostname":"api.github.com","hash":"","search":"","pathname":"/repos/arduino/arduino-lint/git/refs/tags","path":"/repos/arduino/arduino-lint/git/refs/tags","href":"https://api.github.com/repos/arduino/arduino-lint/git/refs/tags","method":"GET","host":"api.github.com:443","port":443,"proto":"https","headers":{"accept":"application/json","authorization":"Basic UEFUOg==","connection":"close","user-agent":"arduino-lint-action"}}, body = ""
NOCK:SCOPE:API.GITHUB.COM 1923: query matching skipped
NOCK:SCOPE:API.GITHUB.COM 1923: matching https://api.github.com:443/repos/arduino/arduino-lint/git/refs/tags to GET https://api.github.com:443/repos/arduino/arduino-lint/git/refs/tags: true
NOCK:SCOPE:API.GITHUB.COM 1923: interceptor identified, starting mocking
NOCK:SCOPE:API.GITHUB.COM 1923: response.rawHeaders: []
NOCK:SCOPE:API.GITHUB.COM 1923: emitting response
NOCK:COMMON 1923: options.hostname in the end: "github.com"
NOCK:COMMON 1923: options.host in the end: "github.com:443"
NOCK:INTERCEPT 1923: interceptors for "github.com:443"
NOCK:INTERCEPT 1923: filtering interceptors for basepath https://github.com:443
NOCK:COMMON 1923: options.host: github.com:443
NOCK:COMMON 1923: options.hostname in the end: "github.com"
NOCK:COMMON 1923: options.host in the end: "github.com:443"
NOCK:INTERCEPT 1923: Net connect  enabled for github.com:443
NOCK:COMMON 1923: options.hostname in the end: "objects.githubusercontent.com"
NOCK:COMMON 1923: options.host in the end: "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: interceptors for "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: filtering interceptors for basepath https://objects.githubusercontent.com:443
NOCK:COMMON 1923: options.host: objects.githubusercontent.com:443
NOCK:COMMON 1923: options.hostname in the end: "objects.githubusercontent.com"
NOCK:COMMON 1923: options.host in the end: "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: Net connect  enabled for objects.githubusercontent.com:443
(node:1923) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 connect listeners added to [MockHttpSocket]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at _addListener (node:events:592:17)
    at MockHttpSocket.addListener (node:events:610:10)
    at MockHttpSocket.Readable.on (node:internal/streams/readable:1128:35)
    at MockHttpSocket.once (node:events:654:8)
    at MockHttpSocket.Socket._read (node:net:720:10)
    at MockHttpSocket.Readable.read (node:internal/streams/readable:739:12)
    at MockHttpSocket.Socket.read (node:net:777:39)
    at maybeReadMore_ (node:internal/streams/readable:893:12)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
aborted
Waiting 12 seconds before trying again
NOCK:COMMON 1923: options.hostname in the end: "github.com"
NOCK:COMMON 1923: options.host in the end: "github.com:443"
NOCK:INTERCEPT 1923: interceptors for "github.com:443"
NOCK:INTERCEPT 1923: filtering interceptors for basepath https://github.com:443
NOCK:COMMON 1923: options.host: github.com:443
NOCK:COMMON 1923: options.hostname in the end: "github.com"
NOCK:COMMON 1923: options.host in the end: "github.com:443"
NOCK:INTERCEPT 1923: Net connect  enabled for github.com:443
NOCK:COMMON 1923: options.hostname in the end: "objects.githubusercontent.com"
NOCK:COMMON 1923: options.host in the end: "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: interceptors for "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: filtering interceptors for basepath https://objects.githubusercontent.com:443
NOCK:COMMON 1923: options.host: objects.githubusercontent.com:443
NOCK:COMMON 1923: options.hostname in the end: "objects.githubusercontent.com"
NOCK:COMMON 1923: options.host in the end: "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: Net connect  enabled for objects.githubusercontent.com:443
(node:1923) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 connect listeners added to [MockHttpSocket]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at _addListener (node:events:592:17)
    at MockHttpSocket.addListener (node:events:610:10)
    at MockHttpSocket.Readable.on (node:internal/streams/readable:1128:35)
    at MockHttpSocket.once (node:events:654:8)
    at MockHttpSocket.Socket._read (node:net:720:10)
    at MockHttpSocket.Readable.read (node:internal/streams/readable:739:12)
    at MockHttpSocket.Socket.read (node:net:777:39)
    at maybeReadMore_ (node:internal/streams/readable:893:12)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
aborted
Waiting 13 seconds before trying again
NOCK:COMMON 1923: options.hostname in the end: "github.com"
NOCK:COMMON 1923: options.host in the end: "github.com:443"
NOCK:INTERCEPT 1923: interceptors for "github.com:443"
NOCK:INTERCEPT 1923: filtering interceptors for basepath https://github.com:443
NOCK:COMMON 1923: options.host: github.com:443
NOCK:COMMON 1923: options.hostname in the end: "github.com"
NOCK:COMMON 1923: options.host in the end: "github.com:443"
NOCK:INTERCEPT 1923: Net connect  enabled for github.com:443
NOCK:COMMON 1923: options.hostname in the end: "objects.githubusercontent.com"
NOCK:COMMON 1923: options.host in the end: "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: interceptors for "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: filtering interceptors for basepath https://objects.githubusercontent.com:443
NOCK:COMMON 1923: options.host: objects.githubusercontent.com:443
NOCK:COMMON 1923: options.hostname in the end: "objects.githubusercontent.com"
NOCK:COMMON 1923: options.host in the end: "objects.githubusercontent.com:443"
NOCK:INTERCEPT 1923: Net connect  enabled for objects.githubusercontent.com:443
(node:1923) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 connect listeners added to [MockHttpSocket]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at _addListener (node:events:592:17)
    at MockHttpSocket.addListener (node:events:610:10)
    at MockHttpSocket.Readable.on (node:internal/streams/readable:1128:35)
    at MockHttpSocket.once (node:events:654:8)
    at MockHttpSocket.Socket._read (node:net:720:10)
    at MockHttpSocket.Readable.read (node:internal/streams/readable:739:12)
    at MockHttpSocket.Socket.read (node:net:777:39)
    at maybeReadMore_ (node:internal/streams/readable:893:12)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
FAIL __tests__/main.test.ts (80.162 s)
  installer tests
    ✕ Downloads version of arduino-lint if no matching version is installed (2[29](https://github.com/per1234/arduino-lint-action/actions/runs/12986430712/job/36213242893#step:5:30)13 ms)
    Gets the latest release of arduino-lint
      ✕ Gets the latest version of arduino-lint 1.0.0 using 1.0 and no matching version is installed (28755 ms)
      ✕ Gets latest version of the 1 major series using 1.x and no matching version is installed (25614 ms)
  ● installer tests › Downloads version of arduino-lint if no matching version is installed
    thrown: "Failed to download version 1.0.0: Error: aborted"
      59 |   });
      60 |
    > 61 |   it("Downloads version of arduino-lint if no matching version is installed", async () => {
         |   ^
      62 |     const toolPath = await installer.getArduinoLint("1.0.0");
      63 |     const bindir = path.join(toolDir, "arduino-lint", "1.0.0", os.arch());
      64 |
      at __tests__/main.test.ts:61:3
      at Object.<anonymous> (__tests__/main.test.ts:[38](https://github.com/per1234/arduino-lint-action/actions/runs/12986430712/job/36213242893#step:5:39):1)

I don't have time to investigate this further so for now I will put this on hold. Hopefully a solution might appear (e.g., via a new release with a bug fix, or a discussion in the Nock issue tracker) as more people update to the new version of Nock.


Update: this issue looks relevant: nock/nock#2830

Copy link
Contributor Author

dependabot bot commented on behalf of github Feb 7, 2025

Superseded by #456.

@dependabot dependabot bot closed this Feb 7, 2025
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/nock-14.0.0 branch February 7, 2025 01:48
@per1234 per1234 added conclusion: duplicate Has already been submitted and removed status: on hold Do not proceed at this time labels Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: infrastructure Related to project infrastructure type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant