ruTorrent icon indicating copy to clipboard operation
ruTorrent copied to clipboard

Test failures on Alpine Linux

Open ncopa opened this issue 9 months ago • 1 comments

Please complete the following tasks.

  • [x] Web browser cache cleared
  • [x] Link provided to install script if applicable
  • [x] Not using broken rtinst install script
  • [x] Web browser, ruTorrent, PHP and OS version provided

Tell us about your environment

ruTorrent: 5.2.5 php: php 8.4.7 OS: Alpine Linux edge

Tell us how you installed ruTorrent

when building the package for Alpine Linux

Describe the bug

npm warn Unknown builtin config "globalignorefile". This will stop working in the next major version of npm.
npm warn Unknown builtin config "python". This will stop working in the next major version of npm.
npm warn deprecated [email protected]: Use your platform's native DOMException instead
npm warn deprecated [email protected]: Use your platform's native atob() and btoa() methods instead
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-unicode-property-regex instead.

added 422 packages, and audited 423 packages in 9s

41 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
npm warn Unknown builtin config "globalignorefile". This will stop working in the next major version of npm.
npm warn Unknown builtin config "python". This will stop working in the next major version of npm.

> [email protected] test
> jest --testPathIgnorePatterns=rss

  console.error
    Error: Uncaught [ReferenceError: browserDetect is not defined]
        at reportException (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
        at processJavaScript (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:243:7)
        at HTMLScriptElementImpl._innerEval (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:176:5)
        at /tmp/src/ruTorrent-5.2.5/tests/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:115:12
        at ResourceQueue.push (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jsdom/lib/jsdom/browser/resources/resource-queue.js:53:16)
        at HTMLScriptElementImpl._fetchInternalScript (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:114:21)
        at HTMLScriptElementImpl._eval (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:170:12)
        at HTMLScriptElementImpl._attach (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:50:12)
        at HTMLBodyElementImpl._insert (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js:835:14)
        at HTMLBodyElementImpl._preInsert (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js:756:10)
        at HTMLBodyElementImpl._append (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js:862:17)
        at HTMLBodyElementImpl.appendChild (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js:598:17)
        at HTMLBodyElement.appendChild (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jsdom/lib/jsdom/living/generated/Node.js:411:60)
        at Object.appendChild (/tmp/src/ruTorrent-5.2.5/tests/js/rtorrent.spec.js:26:17)
        at Runtime._execModule (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jest-runtime/build/index.js:1439:24)
        at Runtime._loadModule (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jest-runtime/build/index.js:1022:12)
        at Runtime.requireModule (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jest-runtime/build/index.js:882:12)
        at jestAdapter (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:77:13)
        at processTicksAndRejections (node:internal/process/task_queues:105:5)
        at runTestInternal (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jest-runner/build/runTest.js:367:16)
        at runTest (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jest-runner/build/runTest.js:444:34)
        at Object.worker (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jest-runner/build/testWorker.js:106:12) {
      detail: ReferenceError: browserDetect is not defined
          at http://localhost/:16:15
          at Script.runInContext (node:vm:149:12)
          at Object.runInContext (node:vm:301:6)
          at processJavaScript (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:241:10)
          at HTMLScriptElementImpl._innerEval (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:176:5)
          at /tmp/src/ruTorrent-5.2.5/tests/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:115:12
          at ResourceQueue.push (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jsdom/lib/jsdom/browser/resources/resource-queue.js:53:16)
          at HTMLScriptElementImpl._fetchInternalScript (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:114:21)
          at HTMLScriptElementImpl._eval (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:170:12)
          at HTMLScriptElementImpl._attach (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:50:12)
          at HTMLBodyElementImpl._insert (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js:835:14)
          at HTMLBodyElementImpl._preInsert (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js:756:10)
          at HTMLBodyElementImpl._append (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js:862:17)
          at HTMLBodyElementImpl.appendChild (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js:598:17)
          at HTMLBodyElement.appendChild (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jsdom/lib/jsdom/living/generated/Node.js:411:60)
          at Object.appendChild (/tmp/src/ruTorrent-5.2.5/tests/js/rtorrent.spec.js:26:17)
          at Runtime._execModule (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jest-runtime/build/index.js:1439:24)
          at Runtime._loadModule (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jest-runtime/build/index.js:1022:12)
          at Runtime.requireModule (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jest-runtime/build/index.js:882:12)
          at jestAdapter (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:77:13)
          at processTicksAndRejections (node:internal/process/task_queues:105:5)
          at runTestInternal (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jest-runner/build/runTest.js:367:16)
          at runTest (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jest-runner/build/runTest.js:444:34)
          at Object.worker (/tmp/src/ruTorrent-5.2.5/tests/node_modules/jest-runner/build/testWorker.js:106:12),
      type: 'unhandled exception'
    }

      24 |   const scriptEl = document.createElement("script");
      25 |   scriptEl.textContent = readFileSync(src, { encoding: "utf-8" });
    > 26 |   document.body.appendChild(scriptEl);
         |                 ^
      27 | }
      28 | correctContent();
      29 |

      at VirtualConsole.<anonymous> (node_modules/jest-environment-jsdom/build/index.js:60:23)
      at reportException (node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:70:28)
      at processJavaScript (node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:243:7)
      at HTMLScriptElementImpl._innerEval (node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:176:5)
      at node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:115:12
      at ResourceQueue.push (node_modules/jsdom/lib/jsdom/browser/resources/resource-queue.js:53:16)
      at HTMLScriptElementImpl._fetchInternalScript (node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:114:21)
      at HTMLScriptElementImpl._eval (node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:170:12)
      at HTMLScriptElementImpl._attach (node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:50:12)
      at HTMLBodyElementImpl._insert (node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js:835:14)
      at HTMLBodyElementImpl._preInsert (node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js:756:10)
      at HTMLBodyElementImpl._append (node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js:862:17)
      at HTMLBodyElementImpl.appendChild (node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js:598:17)
      at HTMLBodyElement.appendChild (node_modules/jsdom/lib/jsdom/living/generated/Node.js:411:60)
      at Object.appendChild (js/rtorrent.spec.js:26:17)

CategoryList:  {} {}
(node:294) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
FAIL js/rtorrent.spec.js
  ● xmlrpc calls › should parse getprops response

    TypeError: Cannot read properties of undefined (reading 'XMLRPCMountPoint')

      at new rTorrentStub (http:/localhost:201:28)
      at Object.<anonymous> (js/rtorrent.spec.js:46:18)

  ● xmlrpc calls › should parse gettotal response

    TypeError: Cannot read properties of undefined (reading 'XMLRPCMountPoint')

      at new rTorrentStub (http:/localhost:201:28)
      at Object.<anonymous> (js/rtorrent.spec.js:63:18)

  ● xmlrpc calls › should parse getopen response

    TypeError: Cannot read properties of undefined (reading 'XMLRPCMountPoint')

      at new rTorrentStub (http:/localhost:201:28)
      at Object.<anonymous> (js/rtorrent.spec.js:71:18)

  ● xmlrpc calls › should parse getsettings response

    TypeError: Cannot read properties of undefined (reading 'XMLRPCMountPoint')

      at new rTorrentStub (http:/localhost:201:28)
      at Object.<anonymous> (js/rtorrent.spec.js:79:18)

  ● xmlrpc calls › should parse getalltrackers response

    TypeError: Cannot read properties of undefined (reading 'XMLRPCMountPoint')

      at new rTorrentStub (http:/localhost:201:28)
      at Object.<anonymous> (js/rtorrent.spec.js:94:18)

  ● xmlrpc calls › should parse getfiles response

    TypeError: Cannot read properties of undefined (reading 'XMLRPCMountPoint')

      at new rTorrentStub (http:/localhost:201:28)
      at Object.<anonymous> (js/rtorrent.spec.js:110:18)

  ● xmlrpc calls › should parse getpeers response

    TypeError: Cannot read properties of undefined (reading 'XMLRPCMountPoint')

      at new rTorrentStub (http:/localhost:201:28)
      at Object.<anonymous> (js/rtorrent.spec.js:124:18)

  ● xmlrpc calls › should parse gettrackers response

    TypeError: Cannot read properties of undefined (reading 'XMLRPCMountPoint')

      at new rTorrentStub (http:/localhost:201:28)
      at Object.<anonymous> (js/rtorrent.spec.js:134:18)

  ● xmlrpc calls › should parse list response

    TypeError: Cannot read properties of undefined (reading 'XMLRPCMountPoint')

      at new rTorrentStub (http:/localhost:201:28)
      at Object.<anonymous> (js/rtorrent.spec.js:148:18)


  ● Test suite failed to run

    ReferenceError: browserDetect is not defined

      at http:/localhost:16:15
      at processJavaScript (node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:241:10)
      at HTMLScriptElementImpl._innerEval (node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:176:5)
      at node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:115:12
      at ResourceQueue.push (node_modules/jsdom/lib/jsdom/browser/resources/resource-queue.js:53:16)
      at HTMLScriptElementImpl._fetchInternalScript (node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:114:21)
      at HTMLScriptElementImpl._eval (node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:170:12)
      at HTMLScriptElementImpl._attach (node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:50:12)
      at HTMLBodyElementImpl._insert (node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js:835:14)
      at HTMLBodyElementImpl._preInsert (node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js:756:10)
      at HTMLBodyElementImpl._append (node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js:862:17)
      at HTMLBodyElementImpl.appendChild (node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js:598:17)
      at HTMLBodyElement.appendChild (node_modules/jsdom/lib/jsdom/living/generated/Node.js:411:60)
      at Object.appendChild (js/rtorrent.spec.js:26:17)

(node:293) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Panel:  
						<link href="./css/category-panel.css?v=525" rel="stylesheet" type="text/css">
						<div part="heading">
							<span class="text"></span><slot name="decorator" class="decorator"></slot>
						</div>
						<slot name="content"></slot>
					
Label:  
						<link href="./css/panel-label.css?v=525" rel="stylesheet" type="text/css">
						<div part="prefix" hidden=""></div>
						<div part="icon"></div>
						<div part="text"></div>
						<div part="count" style="display: none;">0</div>
						<div part="size" style="display: none;"></div>
					
FAIL js/category-list-elements.spec.js
  category-list
    ✓ should create (23 ms)
    ✕ should emit label-click (8 ms)
    ✓ should emit panel-close (9 ms)
  category-panel
    ✓ should create (1 ms)
    ✓ should open and close (3 ms)
  panel-label
    ✓ should create (1 ms)
    ✓ should display prefix attribute (2 ms)
    ✓ should display icon attribute (2 ms)

  ● category-list › should emit label-click

    TypeError: Cannot read properties of undefined (reading 'set')

      51 |     const plA = catList.panelLabelAttribs;
      52 |     const newLabelId = "clabel__some/label";
    > 53 |     plA.plabel.set(newLabelId, { text: "some/label" });
         |                ^
      54 |     catList.sync(plA, catList.panelAttribs);
      55 |     document.getElementById(newLabelId).dispatchEvent(e);
      56 |     const callArg2 = onClick.mock.calls[0][0];

      at Object.set (js/category-list-elements.spec.js:53:16)

Map(31) {
  'Flattenable' => { prefix: '', text: 'Flattenable' },
  'Flattenable/Path' => { prefix: '└', text: 'Path' },
  'Flattenable/Path/Label' => { prefix: ' └', text: 'Label' },
  'Misc' => { prefix: '', text: 'Misc' },
  'Misc/Other' => { prefix: '└', text: 'Other' },
  'Misc/Other/Less' => { prefix: ' ├', text: 'Less' },
  'Misc/Other/More' => { prefix: ' └', text: 'More' },
  'aaa' => { prefix: '', text: 'aaa' },
  'aaa/ccc' => { prefix: '└', text: 'ccc' },
  'aaa/ccc/aaa' => { prefix: ' ├', text: 'aaa' },
  'aaa/ccc/bbb' => { prefix: ' ├', text: 'bbb' },
  'aaa/ccc/ccc' => { prefix: ' ├', text: 'ccc' },
  'aaa/ccc/ddd' => { prefix: ' ├', text: 'ddd' },
  'aaa/ccc/eee' => { prefix: ' ├', text: 'eee' },
  'aaa/ccc/fff' => { prefix: ' ├', text: 'fff' },
  'aaa/ccc/ggg' => { prefix: ' └', text: 'ggg' },
  'bbb' => { prefix: '', text: 'bbb' },
  'bbb/ccc' => { prefix: '└', text: 'ccc' },
  'bbb/ccc/aaa' => { prefix: ' ├', text: 'aaa' },
  'bbb/ccc/bbb' => { prefix: ' ├', text: 'bbb' },
  'bbb/ccc/ccc' => { prefix: ' ├', text: 'ccc' },
  'bbb/ccc/ddd' => { prefix: ' ├', text: 'ddd' },
  'bbb/ccc/ggg' => { prefix: ' └', text: 'ggg' },
  'ccc' => { prefix: '', text: 'ccc' },
  'ccc/ccc' => { prefix: '└', text: 'ccc' },
  'ccc/ccc/aaa' => { prefix: ' ├', text: 'aaa' },
  'ccc/ccc/bbb' => { prefix: ' ├', text: 'bbb' },
  'ccc/ccc/ccc' => { prefix: ' ├', text: 'ccc' },
  'ccc/ccc/ddd' => { prefix: ' ├', text: 'ddd' },
  'ccc/ccc/eee' => { prefix: ' ├', text: 'eee' },
  'ccc/ccc/ggg' => { prefix: ' └', text: 'ggg' }
}
Map(28) {
  'Flattenable/Path/Label' => { prefix: '', text: 'Flattenable/Path/Label' },
  'Misc/Other' => { prefix: '', text: 'Misc/Other' },
  'Misc/Other/Less' => { prefix: ' ├', text: 'Less' },
  'Misc/Other/More' => { prefix: ' └', text: 'More' },
  'aaa' => { prefix: '', text: 'aaa' },
  'aaa/ccc' => { prefix: '', text: 'aaa/ccc' },
  'aaa/ccc/aaa' => { prefix: ' ├', text: 'aaa' },
  'aaa/ccc/bbb' => { prefix: ' ├', text: 'bbb' },
  'aaa/ccc/ccc' => { prefix: ' ├', text: 'ccc' },
  'aaa/ccc/ddd' => { prefix: ' ├', text: 'ddd' },
  'aaa/ccc/eee' => { prefix: ' ├', text: 'eee' },
  'aaa/ccc/fff' => { prefix: ' ├', text: 'fff' },
  'aaa/ccc/ggg' => { prefix: ' └', text: 'ggg' },
  'bbb' => { prefix: '', text: 'bbb' },
  'bbb/ccc' => { prefix: '', text: 'bbb/ccc' },
  'bbb/ccc/aaa' => { prefix: ' ├', text: 'aaa' },
  'bbb/ccc/bbb' => { prefix: ' ├', text: 'bbb' },
  'bbb/ccc/ccc' => { prefix: ' ├', text: 'ccc' },
  'bbb/ccc/ddd' => { prefix: ' ├', text: 'ddd' },
  'bbb/ccc/ggg' => { prefix: ' └', text: 'ggg' },
  'ccc' => { prefix: '', text: 'ccc' },
  'ccc/ccc' => { prefix: '', text: 'ccc/ccc' },
  'ccc/ccc/aaa' => { prefix: ' ├', text: 'aaa' },
  'ccc/ccc/bbb' => { prefix: ' ├', text: 'bbb' },
  'ccc/ccc/ccc' => { prefix: ' ├', text: 'ccc' },
  'ccc/ccc/ddd' => { prefix: ' ├', text: 'ddd' },
  'ccc/ccc/eee' => { prefix: ' ├', text: 'eee' },
  'ccc/ccc/ggg' => { prefix: ' └', text: 'ggg' }
}
Map(27) {
  'Flattenable/Path/Label' => { prefix: '', text: 'Flattenable/Path/Label' },
  'Misc/Other/Less' => { prefix: '', text: 'Misc/Other/Less' },
  'Misc/Other/More' => { prefix: '', text: 'Misc/Other/More' },
  'aaa' => { prefix: '', text: 'aaa' },
  'aaa/ccc' => { prefix: '', text: 'aaa/ccc' },
  'aaa/ccc/aaa' => { prefix: '', text: 'aaa/ccc/aaa' },
  'aaa/ccc/bbb' => { prefix: '', text: 'aaa/ccc/bbb' },
  'aaa/ccc/ccc' => { prefix: '', text: 'aaa/ccc/ccc' },
  'aaa/ccc/ddd' => { prefix: '', text: 'aaa/ccc/ddd' },
  'aaa/ccc/eee' => { prefix: '', text: 'aaa/ccc/eee' },
  'aaa/ccc/fff' => { prefix: '', text: 'aaa/ccc/fff' },
  'aaa/ccc/ggg' => { prefix: '', text: 'aaa/ccc/ggg' },
  'bbb' => { prefix: '', text: 'bbb' },
  'bbb/ccc' => { prefix: '', text: 'bbb/ccc' },
  'bbb/ccc/aaa' => { prefix: '', text: 'bbb/ccc/aaa' },
  'bbb/ccc/bbb' => { prefix: '', text: 'bbb/ccc/bbb' },
  'bbb/ccc/ccc' => { prefix: '', text: 'bbb/ccc/ccc' },
  'bbb/ccc/ddd' => { prefix: '', text: 'bbb/ccc/ddd' },
  'bbb/ccc/ggg' => { prefix: '', text: 'bbb/ccc/ggg' },
  'ccc' => { prefix: '', text: 'ccc' },
  'ccc/ccc' => { prefix: '', text: 'ccc/ccc' },
  'ccc/ccc/aaa' => { prefix: '', text: 'ccc/ccc/aaa' },
  'ccc/ccc/bbb' => { prefix: '', text: 'ccc/ccc/bbb' },
  'ccc/ccc/ccc' => { prefix: '', text: 'ccc/ccc/ccc' },
  'ccc/ccc/ddd' => { prefix: '', text: 'ccc/ccc/ddd' },
  'ccc/ccc/eee' => { prefix: '', text: 'ccc/ccc/eee' },
  'ccc/ccc/ggg' => { prefix: '', text: 'ccc/ccc/ggg' }
}
Map(31) {
  'Flattenable' => { prefix: '', text: 'Flattenable' },
  'Flattenable/Path' => { prefix: '', text: 'Flattenable/Path' },
  'Flattenable/Path/Label' => { prefix: '', text: 'Flattenable/Path/Label' },
  'Misc' => { prefix: '', text: 'Misc' },
  'Misc/Other' => { prefix: '', text: 'Misc/Other' },
  'Misc/Other/Less' => { prefix: '', text: 'Misc/Other/Less' },
  'Misc/Other/More' => { prefix: '', text: 'Misc/Other/More' },
  'aaa' => { prefix: '', text: 'aaa' },
  'aaa/ccc' => { prefix: '', text: 'aaa/ccc' },
  'aaa/ccc/aaa' => { prefix: '', text: 'aaa/ccc/aaa' },
  'aaa/ccc/bbb' => { prefix: '', text: 'aaa/ccc/bbb' },
  'aaa/ccc/ccc' => { prefix: '', text: 'aaa/ccc/ccc' },
  'aaa/ccc/ddd' => { prefix: '', text: 'aaa/ccc/ddd' },
  'aaa/ccc/eee' => { prefix: '', text: 'aaa/ccc/eee' },
  'aaa/ccc/fff' => { prefix: '', text: 'aaa/ccc/fff' },
  'aaa/ccc/ggg' => { prefix: '', text: 'aaa/ccc/ggg' },
  'bbb' => { prefix: '', text: 'bbb' },
  'bbb/ccc' => { prefix: '', text: 'bbb/ccc' },
  'bbb/ccc/aaa' => { prefix: '', text: 'bbb/ccc/aaa' },
  'bbb/ccc/bbb' => { prefix: '', text: 'bbb/ccc/bbb' },
  'bbb/ccc/ccc' => { prefix: '', text: 'bbb/ccc/ccc' },
  'bbb/ccc/ddd' => { prefix: '', text: 'bbb/ccc/ddd' },
  'bbb/ccc/ggg' => { prefix: '', text: 'bbb/ccc/ggg' },
  'ccc' => { prefix: '', text: 'ccc' },
  'ccc/ccc' => { prefix: '', text: 'ccc/ccc' },
  'ccc/ccc/aaa' => { prefix: '', text: 'ccc/ccc/aaa' },
  'ccc/ccc/bbb' => { prefix: '', text: 'ccc/ccc/bbb' },
  'ccc/ccc/ccc' => { prefix: '', text: 'ccc/ccc/ccc' },
  'ccc/ccc/ddd' => { prefix: '', text: 'ccc/ccc/ddd' },
  'ccc/ccc/eee' => { prefix: '', text: 'ccc/ccc/eee' },
  'ccc/ccc/ggg' => { prefix: '', text: 'ccc/ccc/ggg' }
}
(node:291) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
PASS js/panel.spec.js
  Panel label selection
    ✓ should switch (3 ms)
    ✓ should toggle
    ✓ should range select (1 ms)
    ✓ should adjust view to current (2 ms)
    ✓ should adjust current to view (1 ms)
  Category list statistic
    ✓ should accumulate torrent statistic (4 ms)
    ✓ should collect torrent label tree (3 ms)
    ✓ should accumulate torrent view (1 ms)

(node:292) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
FAIL js/category-list.spec.js
  Category list
    ✓ should restore selection and searches on config (4 ms)
    ✓ should allow (plugins) to add panel before config (1 ms)
    ✓ should notify selection change (2 ms)
    ✕ should show torrent statistic (2 ms)

  ● Category list › should show torrent statistic

    expect(received).toBe(expected) // Object.is equality

    Expected: "3"
    Received: "0"

      175 |     list.syncAfterScan();
      176 |     const actAttribs = list.panelLabelAttribs.pstate.get("-_-_-act-_-_-");
    > 177 |     expect(actAttribs.count).toBe("3");
          |                              ^
      178 |     expect(actAttribs.size).toBe(
      179 |       list.byteSizeToStringFn((500 << 20) + (12 << 20) + (1 << 30))
      180 |     );

      at Object.toBe (js/category-list.spec.js:177:30)

Test Suites: 3 failed, 1 passed, 4 total
Tests:       11 failed, 18 passed, 29 total
Snapshots:   0 total
Time:        0.907 s
Ran all test suites.

Steps to reproduce

FROM alpine:edge

RUN apk upgrade -U -a && apk add php84 curl tar nodejs npm
RUN curl --silent -L https://github.com/Novik/ruTorrent/archive/v5.2.5.tar.gz | tar -zxv

WORKDIR /ruTorrent-5.2.5/tests
RUN npm install --package-lock=false
# js rss tests are broken upstream for now
RUN npm test -- --testPathIgnorePatterns="rss"

Expected behavior

tests pass

Additional context

Whappens when building the Alpine Linux package

ncopa avatar May 21 '25 20:05 ncopa

We don't maintain the rutorrent tests. We just added to them to help developers test their code.

stickz avatar May 21 '25 20:05 stickz

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 18 '25 01:12 stale[bot]