From c324ba8e7749d1271ec129649032b376a62d5407 Mon Sep 17 00:00:00 2001 From: Filip Pospisil Date: Wed, 15 Jan 2025 11:06:32 +0100 Subject: [PATCH] chore(ci): fix failing Ubuntu 24.04 pipelines --- .github/workflows/ci.yaml | 3 +++ .github/workflows/main-kaoto.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f6aa014c..252c3799 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -34,6 +34,9 @@ jobs: run: yarn build:prod - name: vsix package run: yarn vsce package --no-dependencies --yarn + - name: Allow unprivileged user namespace (ubuntu) + if: ${{ startsWith(matrix.os, 'ubuntu') }} + run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 - name: Run Unit tests on Linux run: xvfb-run -a yarn test:unit if: ${{ matrix.os == 'ubuntu-latest' }} diff --git a/.github/workflows/main-kaoto.yaml b/.github/workflows/main-kaoto.yaml index 01716f25..f70a65b3 100644 --- a/.github/workflows/main-kaoto.yaml +++ b/.github/workflows/main-kaoto.yaml @@ -53,6 +53,9 @@ jobs: - name: vsix package working-directory: vscode-kaoto run: yarn vsce package --no-dependencies --yarn + - name: Allow unprivileged user namespace (ubuntu) + if: ${{ startsWith(matrix.os, 'ubuntu') }} + run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 - name: Run Unit tests working-directory: vscode-kaoto run: xvfb-run -a yarn test:unit