Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

ci: allow Chromium sandbox on the ubuntu-26.04 runners (#4343)

Martin Adámek3169dd214f0b
diff --git a/.github/workflows/test-ci.yml b/.github/workflows/test-ci.yml
index ae7f21244..485a827e0 100644
--- a/.github/workflows/test-ci.yml
+++ b/.github/workflows/test-ci.yml
@@ -29,7 +29,7 @@ jobs:
matrix:
# tests on windows are extremely unstable
# os: [ ubuntu-22.04, windows-2019 ]
- os: [ ubuntu-22.04 ]
+ os: [ ubuntu-26.04 ]
node-version: [ 22, 24, 26 ]
steps:
@@ -59,6 +59,10 @@ jobs:
- name: Install Puppeteer Chrome
run: pnpm exec puppeteer browsers install chrome
+ # the ubuntu-26.04 runner's AppArmor blocks unprivileged user namespaces, so Puppeteer's sandboxed Chromium fails with "No usable sandbox!"
+ - name: Allow Chromium sandbox
+ run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
+
- name: Build
run: pnpm ci:build
diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml
index c8df25793..5f066ecaa 100644
--- a/.github/workflows/test-e2e.yml
+++ b/.github/workflows/test-e2e.yml
@@ -66,6 +66,11 @@ jobs:
timeout-minutes: 10
run: pnpm exec playwright install --with-deps
+ # the ubuntu-26.04 runner's AppArmor blocks unprivileged user namespaces, so Puppeteer's sandboxed Chromium fails with "No usable sandbox!"
+ - name: Allow Chromium sandbox
+ if: (matrix.storage != 'PLATFORM')
+ run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
+
- name: Build
run: pnpm ci:build