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
8 changes: 3 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ concurrency:

jobs:
changes:
# Path detection is a lightweight job; keep the larger runners for builds.
runs-on: blacksmith-2vcpu-ubuntu-2404
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set.outputs.matrix }}
any: ${{ steps.set.outputs.any }}
Expand Down Expand Up @@ -134,7 +133,7 @@ jobs:
build:
needs: changes
if: ${{ needs.changes.outputs.any == 'true' }}
runs-on: blacksmith-4vcpu-ubuntu-2404
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.changes.outputs.matrix) }}
Expand Down Expand Up @@ -217,8 +216,7 @@ jobs:
audit:
needs: changes
if: ${{ needs.changes.outputs.any == 'true' }}
# Audits read lockfiles and do not compile dependencies.
runs-on: blacksmith-2vcpu-ubuntu-2404
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.changes.outputs.matrix) }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/sdk-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ concurrency:
jobs:
node-sweep:
name: Node sweep (12 examples)
runs-on: blacksmith-4vcpu-ubuntu-2404
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:

browser:
name: Browser over EIP-6963 (anvil)
runs-on: blacksmith-4vcpu-ubuntu-2404
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:

real-metamask:
name: Real wallets in a browser (MetaMask, Wallet Standard)
runs-on: blacksmith-4vcpu-ubuntu-2404
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand Down
6 changes: 5 additions & 1 deletion e2e/browser/run.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ process.on("unhandledRejection", async (e) => { console.error(e); await teardown
// A hung page must not hang CI: every await below is bounded by this.
const deadline = setTimeout(() => { console.error("test:browser timed out after 90s"); process.exit(3); }, 90_000);
deadline.unref();
proc = spawn(chrome, ["--headless=new", "--remote-debugging-port=0", `--user-data-dir=${profile}`, "--no-first-run", "--disable-gpu", "about:blank"], { stdio: ["ignore", "ignore", "pipe"] });
// --no-sandbox: GitHub-hosted Ubuntu 24.04 blocks the unprivileged user
// namespaces Chrome's sandbox needs, so Chrome exits before printing the
// DevTools URL and the run hangs until the deadline. Playwright (used by the
// real-wallet job) passes the same flag by default.
proc = spawn(chrome, ["--headless=new", "--no-sandbox", "--remote-debugging-port=0", `--user-data-dir=${profile}`, "--no-first-run", "--disable-gpu", "about:blank"], { stdio: ["ignore", "ignore", "pipe"] });
const wsUrl = await new Promise((resolve) => { proc.stderr.on("data", (d) => { const m = String(d).match(/ws:\/\/[^\s]+/); if (m) resolve(m[0]); }); });
ws = new WebSocket(wsUrl);
await new Promise((r) => (ws.onopen = r));
Expand Down
Loading