Skip to content

Commit

Permalink
.github: run test in privilege container to allow PTRACE
Browse files Browse the repository at this point in the history
  • Loading branch information
khancyr authored and peterbarker committed Feb 9, 2021
1 parent f4e6d63 commit 617ee37
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test_sitl_copter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ jobs:
autotest:
needs: build # don't try to launch the tests matrix if it doesn't build first, profit from caching for fast build
runs-on: ubuntu-20.04
container: ardupilot/ardupilot-dev-base:latest
container:
image: ardupilot/ardupilot-dev-base:latest
options: --privileged --cap-add=SYS_PTRACE --security-opt apparmor=unconfined --security-opt seccomp=unconfined
strategy:
fail-fast: false # don't cancel if a job from the matrix fails
matrix:
Expand Down Expand Up @@ -124,7 +126,9 @@ jobs:
build-gcc-heli:
needs: build # don't try to launch the tests matrix if it doesn't build first, profit from caching for fast build
runs-on: ubuntu-20.04
container: ardupilot/ardupilot-dev-base:latest
container:
image: ardupilot/ardupilot-dev-base:latest
options: --privileged --cap-add=SYS_PTRACE --security-opt apparmor=unconfined --security-opt seccomp=unconfined
steps:
# git checkout the PR
- uses: actions/checkout@v2
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test_sitl_plane.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ jobs:
autotest:
needs: build # don't try to launch the tests matrix if it doesn't build first, profit from caching for fast build
runs-on: ubuntu-20.04
container: ardupilot/ardupilot-dev-base:latest
container:
image: ardupilot/ardupilot-dev-base:latest
options: --privileged --cap-add=SYS_PTRACE --security-opt apparmor=unconfined --security-opt seccomp=unconfined
strategy:
fail-fast: false # don't cancel if a job from the matrix fails
matrix:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test_sitl_rover.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ jobs:
autotest:
needs: build # don't try to launch the tests matrix if it doesn't build first, profit from caching for fast build
runs-on: ubuntu-20.04
container: ardupilot/ardupilot-dev-base:latest
container:
image: ardupilot/ardupilot-dev-base:latest
options: --privileged --cap-add=SYS_PTRACE --security-opt apparmor=unconfined --security-opt seccomp=unconfined
strategy:
fail-fast: false # don't cancel if a job from the matrix fails
matrix:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test_sitl_sub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ jobs:
autotest:
needs: build # don't try to launch the tests matrix if it doesn't build first, profit from caching for fast build
runs-on: ubuntu-20.04
container: ardupilot/ardupilot-dev-base:latest
container:
image: ardupilot/ardupilot-dev-base:latest
options: --privileged --cap-add=SYS_PTRACE --security-opt apparmor=unconfined --security-opt seccomp=unconfined
strategy:
fail-fast: false # don't cancel if a job from the matrix fails
matrix:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test_sitl_tracker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ jobs:
autotest:
needs: build # don't try to launch the tests matrix if it doesn't build first, profit from caching for fast build
runs-on: ubuntu-20.04
container: ardupilot/ardupilot-dev-base:latest
container:
image: ardupilot/ardupilot-dev-base:latest
options: --privileged --cap-add=SYS_PTRACE --security-opt apparmor=unconfined --security-opt seccomp=unconfined
strategy:
fail-fast: false # don't cancel if a job from the matrix fails
matrix:
Expand Down

0 comments on commit 617ee37

Please sign in to comment.