Skip to content

Commit bfb2fa7

Browse files
authored
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: #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>
1 parent 23c6db5 commit bfb2fa7

2 files changed

Lines changed: 37 additions & 15 deletions

File tree

test/wpt/status/hr-time.cjs

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
'use strict';
2+
3+
const os = require('node:os');
4+
5+
const isMacOS15X64 =
6+
os.platform() === 'darwin' &&
7+
process.arch === 'x64' &&
8+
os.release().startsWith('24.');
9+
10+
module.exports = {
11+
...(isMacOS15X64 ? {
12+
'basic.any.js': {
13+
fail: {
14+
note: 'Flaky on macos15-x64: Date.now() can shift relative to monotonic performance.now()',
15+
flaky: [
16+
'High resolution time has approximately the right relative magnitude',
17+
],
18+
},
19+
},
20+
} : {}),
21+
22+
'idlharness.any.js': {
23+
fail: {
24+
expected: [
25+
'Window interface: attribute performance',
26+
],
27+
},
28+
},
29+
30+
'idlharness-shadowrealm.window.js': {
31+
skip: 'ShadowRealm support is not enabled',
32+
},
33+
34+
'window-worker-timeOrigin.window.js': {
35+
skip: 'depends on URL.createObjectURL(blob)',
36+
},
37+
};

test/wpt/status/hr-time.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)