From 73f4e9f8f2b09622cddc1d50bd7c3f19c6b8dffe Mon Sep 17 00:00:00 2001 From: Darangi Date: Wed, 18 Dec 2019 20:23:24 +0100 Subject: [PATCH] update CI for linux to fix setuid_sandbox error --- script/bootstrap | 4 ---- script/vsts/platforms/linux.yml | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/script/bootstrap b/script/bootstrap index 8c6b9b261..e61357e1a 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -34,10 +34,6 @@ if (dependenciesFingerprint.isOutdated()) { if (process.platform === 'win32') deleteMsbuildFromPath() -if(process.platform === 'linux') { - childProcess.execSync('sysctl kernel.unprivileged_userns_clone=1') -} - installScriptDependencies(ci) installApm(ci) childProcess.execFileSync( diff --git a/script/vsts/platforms/linux.yml b/script/vsts/platforms/linux.yml index 04ed248bf..2c0a84fc3 100644 --- a/script/vsts/platforms/linux.yml +++ b/script/vsts/platforms/linux.yml @@ -57,6 +57,11 @@ jobs: - script: script/lint displayName: Run linter + - script: | + sudo chown root chrome-sandbox + chmod 4755 chrome-sandbox + displayName: Tweaking chrome-sandbox binary + - script: script/build --no-bootstrap --create-debian-package --create-rpm-package --compress-artifacts env: GITHUB_TOKEN: $(GITHUB_TOKEN)