From 456bc79829b6d38c42f3a0fa265cd61282518b09 Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Sun, 21 Jun 2026 20:55:48 -0700 Subject: [PATCH] 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> --- test/wpt/status/hr-time.cjs | 37 ++++++++++++++++++++++++++++++++++++ test/wpt/status/hr-time.json | 15 --------------- 2 files changed, 37 insertions(+), 15 deletions(-) create mode 100644 test/wpt/status/hr-time.cjs delete mode 100644 test/wpt/status/hr-time.json diff --git a/test/wpt/status/hr-time.cjs b/test/wpt/status/hr-time.cjs new file mode 100644 index 00000000000000..c426eeeb8e9274 --- /dev/null +++ b/test/wpt/status/hr-time.cjs @@ -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)', + }, +}; diff --git a/test/wpt/status/hr-time.json b/test/wpt/status/hr-time.json deleted file mode 100644 index b787bcb7862cb6..00000000000000 --- a/test/wpt/status/hr-time.json +++ /dev/null @@ -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)" - } -}