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:
Trivikram Kamat authored and GitHub committed 2026-06-24 05:09:17 +00:00
1 parent 23c6db5d48
commit bfb2fa7756
2 files changed
+37 -15

No files matched your search

+37
View File
@@ -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)',
},
};
-15
View File
@@ -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)"
}
}