Truly independent web browser
CI: Also run the macOS AX tests on a Blacksmith runner
sideshowbarker84c7fc2a34cb
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex d2fc39c5cf2..5f349d4b8ec 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -101,15 +101,16 @@ jobs:build_preset: 'Sanitizer'clang_plugins: false- # The macOS AX tests need an unlocked GUI session that Accessibility can be granted in. Blacksmith's macOS runners- # boot screen-locked — so we can't run the tests there. Thus, we instead run the tests on a GH-hosted runner.+ # The macOS AX tests need an unlocked GUI session that Accessibility can be granted in. GH-hosted macOS runners always+ # boot with one, and Blacksmith's macOS runners usually do — but a few of those still boot screen-locked. So, we run+ # the tests on both, and a run that lands on a locked Blacksmith runner still gets results from the GH-hosted one.macOS-Accessibility:needs: macOS-Sanitizername: macOS, arm64, AX testing, ${{ fromJSON(matrix.runner_labels)[0] }}strategy:fail-fast: falsematrix:- runner_labels: ['["macos-26"]']+ runner_labels: ['["macos-26"]', '["blacksmith-12vcpu-macos-26"]']uses: ./.github/workflows/macos-accessibility-tests.ymlwith:runner_labels: ${{ matrix.runner_labels }}diff --git a/.github/workflows/macos-accessibility-tests.yml b/.github/workflows/macos-accessibility-tests.ymlindex a9ad4ee3477..ef718a16d23 100644--- a/.github/workflows/macos-accessibility-tests.yml+++ b/.github/workflows/macos-accessibility-tests.yml@@ -2,9 +2,10 @@ name: macOS accessibility tests# The macOS AX tests need an unlocked GUI (Aqua) login session, and an Accessibility grant for the process tree the# runner starts. GH-hosted machines have all that, but take a very long time to build Ladybird. Blacksmith's machines-# boot screen-locked — so don't have all that — but build Ladybird quickly. So, we re-use the Ladybird we already built-# on Blacksmith: packing it with Meta/package-macos-test-bundle.py, and uploading that to a (GH-hosted) screen-unlocked-# machine that doesn't build but instead just runs the tests (which just takes literally 2 minutes or less).+# build Ladybird quickly, and most of them now boot screen-unlocked too — but a few still boot screen-locked. So, we+# re-use the Ladybird we already built on Blacksmith: packing it with Meta/package-macos-test-bundle.py, and uploading+# that to both a GH-hosted machine and a Blacksmith machine. Neither builds; each just runs the tests, which takes a few+# minutes — and a run that lands on a locked Blacksmith machine still gets results from the GH-hosted one.on:workflow_call:inputs:@@ -66,11 +67,11 @@ jobs:echo "LADYBIRD_BINARY=${PWD}/Ladybird.app/Contents/MacOS/Ladybird" >> "$GITHUB_ENV"# Try to wake a display and clear the lock UI. And print the session state before and after — so a remedy that- # doesn't work is visible, rather than inferred. (Blacksmith's macOS runners boot with the session screen-locked- # and no active displays, which is what breaks the accessibility tests: macOS withholds a window's accessibility- # representation while the session is locked — so AXFocusedWindow answers with the application element itself and- # no AXWebArea is reachable under it. The window is real — the window server reports one on-screen — and the- # engine renders the page fine headlessly. So, the lock is the only thing in the way.)+ # doesn't work is visible, rather than inferred. (A few of Blacksmith's macOS runners still boot with the session+ # screen-locked and no active displays, which is what breaks the accessibility tests: macOS withholds a window's+ # accessibility representation while the session is locked — so AXFocusedWindow answers with the application+ # element itself and no AXWebArea is reachable under it. The window is real — the window server reports one+ # on-screen — and the engine renders the page fine headlessly. So, the lock is the only thing in the way.)- name: Wake the macOS session for the accessibility testscontinue-on-error: truerun: |