mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
test: mark hr-time WPT flaky on macos15-x64
The basic.any.js test compares elapsed performance.now() with elapsed Date.now(). On macos15-x64 CI, Date.now() can shift relative to the monotonic clock and exceed the test's 30 ms tolerance. Convert the status file to .cjs so the flaky expectation is scoped to macOS 15 on x64. Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> PR-URL: https://github.com/nodejs/node/pull/64054 Refs: https://github.com/nodejs/reliability/issues?q=%22wpt%2Ftest-hr-time%22 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Jason Zhang <xzha4350@gmail.com>
This commit is contained in:
1 parent
23c6db5d48
commit
bfb2fa7756
2 files changed
+37
-15
No files matched your search
@@ -0,0 +1,37 @@
|
||||
'use strict';
|
||||
|
||||
const os = require('node:os');
|
||||
|
||||
const isMacOS15X64 =
|
||||
os.platform() === 'darwin' &&
|
||||
process.arch === 'x64' &&
|
||||
os.release().startsWith('24.');
|
||||
|
||||
module.exports = {
|
||||
...(isMacOS15X64 ? {
|
||||
'basic.any.js': {
|
||||
fail: {
|
||||
note: 'Flaky on macos15-x64: Date.now() can shift relative to monotonic performance.now()',
|
||||
flaky: [
|
||||
'High resolution time has approximately the right relative magnitude',
|
||||
],
|
||||
},
|
||||
},
|
||||
} : {}),
|
||||
|
||||
'idlharness.any.js': {
|
||||
fail: {
|
||||
expected: [
|
||||
'Window interface: attribute performance',
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
'idlharness-shadowrealm.window.js': {
|
||||
skip: 'ShadowRealm support is not enabled',
|
||||
},
|
||||
|
||||
'window-worker-timeOrigin.window.js': {
|
||||
skip: 'depends on URL.createObjectURL(blob)',
|
||||
},
|
||||
};
|
||||
@@ -1,15 +0,0 @@
|
||||
{
|
||||
"idlharness.any.js": {
|
||||
"fail": {
|
||||
"expected": [
|
||||
"Window interface: attribute performance"
|
||||
]
|
||||
}
|
||||
},
|
||||
"idlharness-shadowrealm.window.js": {
|
||||
"skip": "ShadowRealm support is not enabled"
|
||||
},
|
||||
"window-worker-timeOrigin.window.js": {
|
||||
"skip": "depends on URL.createObjectURL(blob)"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user