ADR-007 — Where CI runs: GitHub-hosted runners for Quiz's own CI, Quiz's VMs for no CI job¶
Status¶
Rewritten 2026-11-08 for Quiz as it runs. Finding of 2026-11-08, awaiting
the owner: project CI appears to run on GitHub-hosted runners, not on the
self-hosted runners this record described; the self-hosted VM, its PAT and
any runs-on: [self-hosted, grading] lab are to be checked
(Open points 1–4). Inherited from heig-classroom, where it was accepted on 2026-07-03
(a dedicated VM of ephemeral self-hosted GitHub Actions runners, sized by the
deadline freeze); that decision and its sizing are kept in the
historical record, with Quiz's
status notes of 2026-09-30 (ADR-035: the record applied again, to projects).
heig-classroom no longer exists (its importer was removed by #1042).
- Amended 2026-10-12 by ADR-106:
a project in the
criteriamode is graded by the platform; the CI's objective tier keeps running as the student's indicative feedback, and thellm-reviewtier is decommissioned progressively (ADR-106); M3-14f (done 2026-10-14) dropped only theANTHROPIC_API_KEYorganization-secret check. Superseded for a v3 snapshot, and whole once the v2 path is removed (card L-06g), by: - Amended 2026-10-26 by ADR-119
§1, §6: a project in the
criteriamode gets its automatic evidence from the project's CI again, through a staggeredquiz-gradedispatch of the platform; its review stays the platform's LLM pass. - Amended 2026-11-14 (product owner): the
llm-reviewtier is retired for every course as a supported path, and Quiz no longer needs or asks for the organization'sANTHROPIC_API_KEY(ADR-106, same date). Theautomode's review dispatch is unchanged: a repository whose organization still holds the secret may still run that tier, until the organization deletes it.
What this record states was read from the workflows on 2026-11-08; what could not be read is listed under Open points.
Context¶
Two kinds of code run for Quiz: Quiz's own build, tests and deploys, and the
students' projects. The first lives in one repository,
heig-tin-info/heig-quiz, which is public. The second lives in one private
repository per student or group, in the organization of each course (for
instance Info1-MI-2026), where a constant, protected
.github/workflows/grading.yml calls StudentScore's reusable workflow
(heig-tin-info/score, public), pinned by sha (ADR-119 §1).
The code of a question is not CI: it is executed by Quiz's own runner
service, apps/runner, on the engine VM (ADR-016).
"Runner" alone means apps/runner; the GitHub Actions machines are "CI
runners". The two never meet, and the two records stay separate
(index).
heig-classroom ran its grading on self-hosted runners because GitHub-hosted minutes for private repositories were budgeted per organization and a submission week would exceed them; its sizing started from the freeze: runs on commits received before the deadline must finish within the grace.
Decision¶
- Quiz's own CI runs on GitHub-hosted runners. Every workflow of
heig-tin-info/heig-quizdeclaresruns-on: ubuntu-latest:ci.yml(thechecksjobs, the image, the deploys to staging, the staging portal, production and the codespace portal),coverage.yml,docs.yml,image-artifact.ymlandrunner-integration.yml. The repository being public, GitHub does not bill these minutes on standard hosted runners (an external statement, from GitHub's Actions billing documentation, not from this repository). - The runner's isolation is proven on a hosted runner too.
runner-integration.ymlbuilds the language images cold and runs the Podman integration suite ofapps/runneron a rootful socket, in two legs that both block:default(crun, the system socket) andrunsc(gVisor, the runner's own socket set up byapps/runner/deploy/install-gvisor.sh) — ADR-016, amendment of 2026-10-11. - Quiz's VMs run no CI job. The application VM
(
portal.heig.chevallier.io) and the engine VM (code.chevallier.io,apps/runnerand the workspace portal) host no GitHub Actions runner. A deploy job runs on a hosted runner and reaches each VM only through an SSH forced command (docs/development/deployment.md; ADR-016 for the engine VM). No workflow, of Quiz or of a project, executes on them. - A project's CI runs where StudentScore's reusable workflows say. A
calling workflow cannot change a reusable workflow's runner, so the
course organization's lab runs on the runners those workflows declare:
grading.ymlof 0.7.5 (theobjectiveandllm-reviewjobs of the v2 andautomodes, the version the v2 shim pins) andrun.ymlof 1.0.0 (the v3quiz-graderun of ADR-119, not yet pinned anywhere: card L-06f). Which runners they declare is not established by this repository (Open points 6); if hosted, a lab consumes the course organization's minutes, under that organization's plan. - The platform spreads its own load. Quiz's
quiz-gradedispatches are staggered, one every 15 s per App installation (ADR-119 §1, choice f): the organization's concurrent jobs are shared by every repository of the course, and a freeze of 100 repositories must not queue 100 runs at once. Pushes during a submission week run as the students push. - A late run never changes a frozen grade, only delays it. What a
project's grade is built on is fixed by the server's receipts
(
push_receipts, ADR-064) and by the platform's dispatch of the frozen sha (ADR-119 §6), not by when a CI run starts or ends; a run that comes back after 24 h isno_resultand the teacher grades (ADR-119). The project'sgrace_minutes(default 30, per project) bounds what counts as on time, not the CI's capacity. - No secret is needed by a v3 graded run. The shim carries no lab
information and no token; the run checks out the commit Quiz sent and
uploads one
resultsartifact (ADR-119 §1). The App never holds the "Self-hosted runners" organization permission: Quiz registers no CI runner.
Consequences¶
- Quiz's CI costs no minutes; a project's CI, on hosted runners, costs the course organization's minutes, which this repository cannot see.
- Nothing of Quiz's to patch, size or keep a registration token for on the CI side; the engine VM's capacity serves question code and workspaces only (ADR-016, ADR-101).
- A course organization out of minutes or over its concurrency stops its
labs' CI: the student loses the indicative feedback, and a
criteriaproject's evidence falls tono_resultafter 24 h, which the teacher grades by hand. The grade is never wrong for it, only later. - A hosted runner is a fresh VM per job: nothing persists between jobs.
- Decision 7 holds for v3 runs only: a v2 shim still names
ANTHROPIC_API_KEYforgrading.yml@0.7.5. Amended 2026-11-14 (product owner): the CI's LLM review is retired and Quiz no longer needs that secret; while an organization still holds it, the student's code of a v2 lab may still run beside it. The organization deletes it, so that no secret sits there.
Rejected alternatives¶
- Self-hosted ephemeral runners on a dedicated VM (heig-classroom's decision, 2026-07-03; historical record): not reflected by any workflow this record could read. Whether to bring it back is a product decision, against the minutes and the concurrency the course organizations actually have (open points 1 to 3).
- Running project CI on the engine VM: it would put student code under a GitHub runner, with a registration credential, beside the question runner and the workspace portal whose hardening ADR-016 owns.
Open points¶
Not verified on 2026-11-08 (this record names no number it could not read):
- The heig-classroom CI runner VM. Whether the self-hosted runner VM of
the historical record, with its organization runner group and label
grading, still exists, and who operates it. Listing an organization's runners needs an organization administrator. - The registration PAT. If that VM is gone, its fine-grained PAT ("Self-hosted runners: read & write", 12-month expiry) should be revoked; if it still runs, its expiry date.
- Minutes and concurrency per course organization. The plan of each
course organization (
Info1-MI-2026and the others), its included minutes, any spending limit, and its concurrent-job limit: the figures against which a submission week and ADR-119's 15 s stagger should be checked (the App holdsorganization_plan: read, used today only for the Free-plan check ofdocs/development/github-app.md). The 3,000 minutes and the sizing of the historical record are heig-classroom's, not Quiz's. - Labs outside StudentScore. Whether any lab repository still carries
heig-classroom's own
grading.ymlwithruns-on: [self-hosted, grading]; without a registered runner such a job would wait in the queue rather than run. The lab repositories this record tried to read were not readable with the author's access. - ADR-119's wording. ADR-119 §1 and its Context speak of "the CI runners of ADR-007" as shared; they are the course organization's hosted runners if decision 4's workflows declare hosted runners (point 6). The stagger's reason holds; the wording is left to ADR-119's owner.
- StudentScore's
runs-on. To verify in the StudentScore repository (heig-tin-info/score): theruns-onofgrading.ymlat 0.7.5 and ofrun.ymlat 1.0.0 (once released, L-06f). This repository neither vendors nor pinsrun.yml; ADR-119's shim shows a placeholder sha.