test(runner): verify sandbox isolation with a hostile program suite
This commit is contained in:
1 parent
afee564bf4
commit
e858280d91
38 files changed
+1359
-168
No files matched your search
+2
-2
@@ -11,8 +11,8 @@ A separate Go service that runs untrusted candidate code in nsjail and checks it
|
||||
- `internal/judgetest/` and `testdata/judge/` are reference Python and Go solutions with their expected group results.
|
||||
- `internal/jobs/` keeps runs in memory, makes them idempotent by run ID, and bounds concurrent runs.
|
||||
- `internal/server/` is the HTTP API on the generated ogen server (`internal/api/`, from `codegen/ogen.yml`).
|
||||
- `internal/isolationtest/` and `testdata/hostile/` are the isolation tests and the shared hostile programs.
|
||||
- `internal/isolationtest/`, `testdata/hostile/`, and `scripts/run-a16.sh` are the A16 hostile-program suite in Python and Go, its report, and its run on the runner host.
|
||||
|
||||
From the repository root, `make -C runner check` runs formatting, build, unit tests, the generated code check, and lint; `make -C runner test-sandbox` builds the image and runs the isolation tests in a privileged dev container. Local start: `make -C deploy runner-dev-up` (development only).
|
||||
From the repository root, `make -C runner check` runs formatting, build, unit tests, the generated code check, and lint; `make -C runner test-sandbox` builds the image and runs the reference solutions and the A16 suite in a privileged dev container; `make -C runner test-a16` runs only the A16 suite with a report, and `make -C runner a16-bundle` builds it for the runner host. Local start: `make -C deploy runner-dev-up` (development only).
|
||||
|
||||
Production: the service runs only in the dedicated runner VM, never on the core host. More: [deployment](../docs/en/DEPLOY.md#code-runner), [architecture](../docs/en/ARCHITECTURE.md#code-runner), and [checks](../docs/en/TESTING.md#code-runner-tests).
|
||||
Reference in new issue
Block a user