Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom sandboxing implementation as linux usernamespace calls - port cachepot/#128 #1628

Merged
merged 4 commits into from
Mar 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: cargo ${{ matrix.cargo_cmd }}

test:
name: test ${{ matrix.os }} rust ${{ matrix.rustc || 'stable' }} ${{ matrix.extra_desc }}
name: test ${{ matrix.os }} rust ${{ matrix.rustc || 'stable' }} ${{ matrix.extra_desc }} ${{ matrix.dist_exec_strategy }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.allow_failure || false }}
timeout-minutes: 30
Expand All @@ -48,6 +48,15 @@ jobs:
rustc: 1.60.0
extra_desc: dist-server
extra_args: --no-default-features --features=dist-tests test_dist_ -- --test-threads 1
sccache_log: sccache=trace
dist_exec_strategy: docker
- os: ubuntu-22.04
rustc: 1.60.0
extra_desc: dist-worker
extra_args: --no-default-features --features=dist-tests test_dist_ -- --test-threads 1
sccache_log: sccache=trace
sccache_sandbox: userns
dist_exec_strategy: spawn
- os: ubuntu-20.04
rustc: stable
- os: ubuntu-20.04
Expand All @@ -68,10 +77,17 @@ jobs:
rustc: beta
env:
RUST_BACKTRACE: 1
DIST_EXEC_STRATEGY: ${{ matrix.dist_exec_strategy }}
SCCACHE_SANDBOX: ${{ matrix.sccache_sandbox }}
SCCACHE_LOG: ${{ matrix.sccache_log }}
steps:
- name: Clone repository
uses: actions/checkout@v3

- name: Install bubblewrap (needed for dist test suite)
if: contains(matrix.extra_desc, 'dist-worker')
run: sudo apt install bubblewrap -y

- name: Install rust
uses: ./.github/actions/rust-toolchain
with:
Expand Down