Skip to content

Commit

Permalink
refactor(e2e): Adopt ubuntu 24 for desktop e2e tests (#16463)
Browse files Browse the repository at this point in the history
disables security rule the caused electorn launch failures
  • Loading branch information
Vere-Grey authored Jan 20, 2025
1 parent ff58db9 commit cdfa740
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/test-suite-desktop-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ on:
- ".github/workflows/release*"
- ".github/workflows/template*"
push:
branches:
- release/2*
branches:
- release/2*
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
Expand All @@ -29,7 +29,7 @@ concurrency:
jobs:
run-desktop-tests:
if: github.repository == 'trezor/trezor-suite'
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
Expand All @@ -50,6 +50,13 @@ jobs:
CONTAINERS: "trezor-user-env-unix bitcoin-regtest"

steps:
# Electron requires unprivileged user namespaces to function properly.
# Disabling this security rule allows Electron to create sandboxed processes
# without requiring elevated privileges, which is essential for running the application.
# This is workaround until electron builder solves this issue in future release.
- name: Disable security rule 'Restricted unprivileged user namespaces'
run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0

- name: Checkout
uses: actions/checkout@v4
with:
Expand Down

0 comments on commit cdfa740

Please sign in to comment.