Repository navigation
parallel.test-macos-app-sandbox is flaky #54811
Description
Activity
- addedflaky-testIssues and PRs involving tests that fail intermittently in CI.Issues and PRs involving tests that fail intermittently in CI.
on Sep 6, 2024 - addedmacosIssues and PRs related to the macOS platform.Issues and PRs related to the macOS platform.
on Sep 6, 2024 Cannot reproduce locally on macOS
$ tools/test.py --repeat 9999 test/parallel/test-macos-app-sandbox.js -t 9 [02:34|% 100|+ 9999|- 0]: Done All tests passed.
It might be related to the disk space issues on macOS (nodejs/build#3887).
See #54802 (comment) for some thoughts -- the assertion failure is from spawning a child
codesignprocess:It's not impossible, but the test does a free disk space check:
node/test/parallel/test-macos-app-sandbox.js
Lines 20 to 22 in b77476d
if (!tmpdir.hasEnoughSpace(120 * 1024 * 1024)) { common.skip('Available disk space < 120MB'); } and also the copyfiles are not the lines failing (which would suggest the copies were successful?)
node/test/parallel/test-macos-app-sandbox.js
Lines 29 to 43 in b77476d
// Construct the app bundle and put the node executable in it: // node_sandboxed.app/ // └── Contents // ├── Info.plist // ├── MacOS // │ └── node fs.mkdirSync(appBundlePath); fs.mkdirSync(appBundleContentPath); fs.mkdirSync(path.join(appBundleContentPath, 'MacOS')); fs.copyFileSync( fixtures.path('macos-app-sandbox', 'Info.plist'), path.join(appBundleContentPath, 'Info.plist')); fs.copyFileSync( nodeBinary, appExecutablePath); The failing line 47 is spawning
codesignbut it's swallowing any messages from the process to indicate why it failed:node/test/parallel/test-macos-app-sandbox.js
Lines 46 to 54 in b77476d
// Sign the app bundle with sandbox entitlements: assert.strictEqual( child_process.spawnSync('/usr/bin/codesign', [ '--entitlements', fixtures.path( 'macos-app-sandbox', 'node_sandboxed.entitlements'), '--force', '-s', '-', appBundlePath, ]).status, 0); Maybe this could be using the utilities from
common/child_process(to take advantage of #54622)?Reacted by Pietro Marchini and Luigi Pinca- added a commit that references this issue
on Jan 4, 2025 - added a commit that references this issue
on Jan 7, 2025
Test
parallel.test-macos-app-sandboxPlatform
macOS x64
Console output
Build links
Additional information
No response