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
@@ -737,7 +737,7 @@ Cleanup before the rollout removed only the Docker build cache (`docker builder
|
||||
|
||||
## Code runner
|
||||
|
||||
The `runner/Dockerfile` image holds the Go supervisor, nsjail, and Python from `python:alpine`; pip and ensurepip are removed. The base images are the `GO_IMAGE` and `RUNTIME_IMAGE` arguments, so a release build can pin their digests. The supervisor runs as root inside its own host or VM because it needs namespaces, user mapping, and writes to its delegated cgroup. Candidate programs run as uid 99999 without capabilities.
|
||||
The `runner/Dockerfile` image holds the Go supervisor, nsjail, Python from `python:alpine`, and, for Go solutions, the `compile` and `link` tools with a standard library prebuilt from `GO_IMAGE`; pip and ensurepip are removed. The base images are the `GO_IMAGE` and `RUNTIME_IMAGE` arguments, so a release build can pin their digests. The supervisor runs as root inside its own host or VM because it needs namespaces, user mapping, and writes to its delegated cgroup. Candidate programs run as uid 99999 without capabilities.
|
||||
|
||||
### Local (development only)
|
||||
|
||||
@@ -764,9 +764,10 @@ The runner runs only in the `lincodex-runner` VM on the `lxdbr-runner` bridge (s
|
||||
| `RUNNER_MAX_REQUEST_BYTES` | `8388608` | Request body limit |
|
||||
| `RUNNER_RESULT_TTL`, `RUNNER_MAX_RETAINED_RUNS` | `15m`, `256` | In-memory result retention |
|
||||
| `RUNNER_RETRY_AFTER`, `RUNNER_SHUTDOWN_TIMEOUT` | `2s`, `30s` | Retry-After when busy and the wait for runs at shutdown |
|
||||
| `RUNNER_WORK_DIR` | `/var/lib/lincodex-runner/work` | Run directories; emptied at startup, tmpfs recommended |
|
||||
| `RUNNER_WORK_DIR` | `/var/lib/lincodex-runner/work` | Run directories; emptied at startup; a tmpfs with `exec` (built Go solutions run from it), `nosuid`, and `nodev` |
|
||||
| `RUNNER_CGROUP_ROOT` | `/sys/fs/cgroup` | The service's delegated cgroup v2 |
|
||||
| `RUNNER_NSJAIL_PATH`, `RUNNER_PYTHON_PATH` | `/usr/bin/nsjail`, `/usr/local/bin/python3` | Paths in the image |
|
||||
| `RUNNER_GO_TOOL_DIR` | `/usr/local/lib/lincodex-runner/go` | `compile`, `link`, `importcfg`, and the prebuilt Go standard library in the image |
|
||||
| `RUNNER_SANDBOX_UID` | `99999` | Program user, never root |
|
||||
| `RUNNER_SANDBOX_MAX_PROCESSES` | `16` | Processes and threads of a run |
|
||||
| `RUNNER_SANDBOX_MEMORY_OVERHEAD_BYTES` | `4194304` | Memory allowance for nsjail above the task limit |
|
||||
|
||||
Reference in new issue
Block a user