Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/test-suite-registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,20 @@
},
"status": "mapped"
},
{
"id": "id.browser.conformance",
"paths": ["pkgs/id/browser/test/indexeddb_conformance.test.ts"],
"invocation": "cd pkgs/id/browser && npm test (node --experimental-transform-types --test test/indexeddb_conformance.test.ts; requires a Chromium/Chrome binary on PATH or CHROMIUM_BIN)",
"venue": {
"workflow": ".github/workflows/id-browser-tests.yml",
"job_step": "browser-tests / Run the id browser IndexedDB conformance suite",
"state": "active",
"dispatchable": true
},
"status": "mapped",
"related_issues": [17818, 9082, 17808],
"notes": "Wired by #17818: the IndexedDB adapter conformance suite (#9082) was run by no workflow and unregistered. Its verdict requires a real browser engine (headless Chromium over CDP); the dedicated id-browser-tests.yml runs on ubuntu-latest, whose image ships google-chrome — an accepted findChromium candidate — and the step asserts the suite file and a browser binary exist before running, so a browser-less runner fails loudly instead of passing silently."
},
{
"id": "id.roc.library",
"paths": ["pkgs/id/examples/roc-world/**", "pkgs/id/examples/roc-cap-demo/roc-cap-demo-test.sh"],
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/id-browser-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# CI tier policy: see .github/ci-policy.md
#
# Runs the pkgs/id/browser IndexedDB conformance suite (#9082) on
# dispatch and nightly, following the house pattern for test
# workflows (pkarr-worker-tests.yml). Main tier only: not a merge
# gate. Filed from issue #17818: the suite previously had no
# workflow running it at all.
#
# The suite's verdict requires a real browser engine: it drives
# headless Chromium over CDP and throws when no Chromium binary is
# found. Its findChromium accepts google-chrome / google-chrome-stable,
# which the GitHub-hosted ubuntu image ships preinstalled, so this
# venue needs no browser install and no nix shell. The run step
# first fails if the suite file or any accepted browser binary is
# missing, so a green run can never be a silently skipped suite or
# a browser-less false pass.

on:
workflow_dispatch:
schedule:
# Nightly instead of on every push to main (Drew, 2026-11-16; see
# .github/ci-policy.md "Nightly main CI").
- cron: "23 7 * * *"

permissions:
contents: read

concurrency:
group: id-browser-tests-${{ github.event_name == 'push' && github.run_id || github.ref }}
cancel-in-progress: true

jobs:
browser-tests:
name: "full (main tier): id browser indexeddb conformance"
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- name: Set up Node
uses: actions/[email protected]
with:
node-version: 24
- name: Run the id browser IndexedDB conformance suite
working-directory: pkgs/id/browser
run: |
if [ ! -f test/indexeddb_conformance.test.ts ]; then
echo "::error::pkgs/id/browser/test/indexeddb_conformance.test.ts is missing — the conformance suite was not run."
exit 1
fi
if ! command -v chromium >/dev/null 2>&1 && ! command -v chromium-browser >/dev/null 2>&1 && ! command -v google-chrome >/dev/null 2>&1 && ! command -v google-chrome-stable >/dev/null 2>&1; then
echo "::error::No Chromium/Chrome binary on PATH — the conformance verdict requires a real browser engine; refusing to report a pass."
exit 1
fi
npm test