feat(runner): compile Go and check answers per test group
This commit is contained in:
1 parent
e95c681165
commit
afee564bf4
61 files changed
+2592
-143
No files matched your search
+3
-2
@@ -2,12 +2,13 @@
|
||||
|
||||
[Русский](README.md) | English
|
||||
|
||||
A separate Go service that runs untrusted candidate code in nsjail and checks it against public and hidden tests. It currently supports Python 3 and the `exact` and `tokens` checkers. The backend calls it through the internal `api/runner/` contract over TLS with a bearer token; no backend use case calls it yet.
|
||||
A separate Go service that runs untrusted candidate code in nsjail and checks it against public and hidden tests. It supports Python 3 and Go (a separate compile phase with a prebuilt standard library) and the `exact`, `tokens`, `numbers`, and `custom` (a family program in nsjail) checkers. The backend calls it through the internal `api/runner/` contract over TLS with a bearer token; no backend use case calls it yet.
|
||||
|
||||
- `cmd/runner/` is the entry point and the container `healthcheck`.
|
||||
- `internal/sandbox/` holds nsjail, cgroup v2, seccomp, run directories, and stopping on limits.
|
||||
- `internal/judge/` holds languages, the syntax check step, and test and group outcomes.
|
||||
- `internal/checker/` holds the checker interface and the `exact` and `tokens` comparisons.
|
||||
- `internal/checker/` holds the checker interface and the `exact`, `tokens`, and `numbers` comparisons; the custom checker lives in `internal/judge/`.
|
||||
- `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.
|
||||
|
||||
Reference in new issue
Block a user