🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by Keyu Tao Thu, 05 Nov 2026 20:00
Bug#1153120: node-playwright: test runner fails with "rimraf: callback function required" on trixie
#3362
Author: Keyu Tao
Date: Thu, 05 Nov 2026 20:00
79 lines
4335 bytes
Package: node-playwright
Version: 1.38.0+ds-3
Severity: important
X-Debbugs-Cc: me@taoky.moe

Dear Maintainer,

The playwright test runner fails when cleanup on Debian 13 (trixie). A
reproducer:

const { chromium } = require('playwright');

(async () => {
    const browser = await chromium.launch({
        headless: true,
        executablePath: '/usr/bin/chromium',
    });
    const page = await browser.newPage();
    await page.goto('https://example.com');
    console.log(await page.title());
    await page.locator('a').first().click();
    await browser.close();
})();

The stack trace error reported:

node:internal/process/promises:391
    triggerUncaughtException(err, true /* fromPromise */);
    ^

AssertionError [ERR_ASSERTION]: rimraf: callback function required
    at rimraf2 (/usr/share/nodejs/playwright-core/lib/utilsBundleImpl/index.js:12698:14)
    at /usr/share/nodejs/playwright-core/lib/utils/fileUtils.js:43:31
    at new Promise (<anonymous>)
    at /usr/share/nodejs/playwright-core/lib/utils/fileUtils.js:42:12
    at Array.map (<anonymous>)
    at removeFolders (/usr/share/nodejs/playwright-core/lib/utils/fileUtils.js:41:33)
    at cleanup (/usr/share/nodejs/playwright-core/lib/utils/processLauncher.js:114:55)
    at ChildProcess.<anonymous> (/usr/share/nodejs/playwright-core/lib/utils/processLauncher.js:154:5)
    at Object.onceWrapper (node:events:639:26)
    at ChildProcess.emit (node:events:524:28) {
  generatedMessage: false,
  code: 'ERR_ASSERTION',
  actual: 'undefined',
  expected: 'function',
  operator: '=='
}

It seems that playwright packaged does not match rimraf in trixie, while
rimraf wants callback function, playwright in trixie needs rimraf to
return a Promise.

I noticed that bug #1138720 reports a similar bug about rimraf and
playwright. However, it's about a build failure with newer rimraf, and
different from this runtime failure.

Playwright in sid works properly.

-- System Information:
Debian Release: 13.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.115+deb13.1-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages node-playwright depends on:
ii  nodejs  20.19.2+dfsg-1+deb13u3

Versions of packages node-playwright recommends:
ii  chromium  156.0.8078.79-1~deb13u1

node-playwright suggests no packages.

-- no debconf information
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads