JimWallace/Chickadee: Chickadee v0.6.0-rc.29
Abstract
Pre-release of the next minor, for the dev server. Production does not deploy pre-releases. Removed The unused course_sections.default_grading_mode and default_assignment_type columns are dropped. A section has carried no grading mode or type since assignment types phase 3, and no model maps either column in v0.5.988 or later, so the old color of a blue-green deploy is unaffected. A rollback to an older release whose model maps default_grading_mode needs the migration reverted first, which restores both columns. A course bundle still writes defaultGradingMode: "worker" for older importers. Removed The legacy patternFamilies / notebookChecks manifest keys are no longer written. The v1 form of a manifest (what the MCP manifest resource, MCP get_assignment_version and course-bundle export send out) now carries only testItems, which every supported reader has read since 0.4.206. Old manifests and bundles that carry only the legacy arrays still decode: the read-side migration stays. The runner job and the browser runner never carried these keys. One retest per assignment with pattern families or notebook checks. manifestHash hashes the v1 form, so the hash of every such assignment changes. Its next edit after the upgrade, even a cosmetic one, retests its student submissions once (lastRetestedManifestHash), adds one version-history row, and until then MCP list_assignment_versions shows no version as current. Assignments without families or checks are unaffected. Changed Chickadee 0.6.0. Closes the 0.5 series and opens the multi-course pilot, in which several courses run live class activities at once. The system this milestone snapshots: seven assignment languages (Python, R, Lua and Octave in the browser on xeus kernels; C++, Racket and Java upload-only), each declared by its assignment; browser and native grading sharing one RunnerCore; the assignment workbench, per-student datasets and the course dataset library; class activities from leaderboards to tournaments, class goals, lab groups and course achievements; class handles and avatars; LTI 1.3 and GitHub submissions; and production deploys gated by mode, with contract changes shipping only in a minor (docs/release-gate.md). The 0.5 release history is archived in CHANGELOG-0.5.md, headed by a one-line-per-theme summary of the series. Three changes are incompatible, each with its own entry in this release; read them before approving the deploy: the runner's --worker-secret flag is removed (#2226); the manifest no longer writes the legacy arrays, so an assignment with families or checks is retested once, on its next edit; and the runner sandboxes by default (#2348), so one that passes no flag, on a host that cannot sandbox, does not start. Removed The runner's --worker-secret flag (#2226), deprecated since #2220. It put the runner secret in the runner's command line, where every test script can read it from /proc, also inside the sandbox, and so sign worker API calls such as reporting its own result. Set RUNNER_SHARED_SECRET instead, or let the runner read the .worker-secret file. A runner still started with the flag now exits at once with an "unknown option" error, so check every runner's start command before upgrading. The server's own --worker-secret flag is unchanged. Changed The runner sandboxes test scripts by default (#2348). Before, it ran them unsandboxed unless started with --sandbox. A runner that already passes --sandbox behaves exactly as before: the flag is still accepted and changes nothing. --no-sandbox turns the sandbox off, and with both flags the last one wins. A runner on a host that cannot start the sandbox (no unprivileged user namespaces, or Docker's default seccomp and AppArmor profiles) now refuses to start and says why, where before it graded unsandboxed. This includes a bare-metal runner from deploy/chickadee-runner.service and swift run chickadee-runner in development, which passed no flag. Allow the namespaces, or add --no-sandbox to that runner's start command. Fixed The admin course page lists assignments that share a due date in a fixed order. The list sorted only by due date, so the order of a tie depended on which index the database planner chose. When DropCoveredIndexes removed idx_assignments_course_id, the tie flipped and the admin-course visual baseline failed on main. Ties now go oldest first (creation time, then id). Changed CI mirrors postgres:18 into GHCR. First step of the Postgres 16 → 18 upgrade (#3148): the image must be in GHCR before the test jobs can point at it. Fixed Deleting an assignment or a course removes its activity rows. Badges, leaderboards, king-of-the-hill matches and champions, round-robin standings, tournaments and the LTI push queue, for the class and each lab group, kept a student's ID and submission after the delete. assignments.slug is now NOT NULL, as the model already assumed. Changed Database design rules and guards. docs/database-design.md states the rules for a new table, migration and query. New guards read the migrated catalog: no index is covered by another, no non-optional model field sits over a nullable column, and a delete leaves no row keyed to what it deleted. A claim and a result report get statement budgets beside the page budgets. Four covered indexes were dropped, and a db-review agent covers the judgment half. Fixed One running tournament, one BrightSpace credential, one validation batch and one lab group set per scope, held by the database. Each was a read-then-write that two requests at once could both pass. A migration removes any duplicates first, keeping the newest row. Changed Fewer statements on grade pushes, coverage and the claim path. Class coverage, grade-override flags, the LTI queue and BrightSpace requeue write in one statement instead of one per row; grade overrides set and clear in one transaction. The classmate chooser, the queue-depth timeline, the activity chart, the data export's audit filter, the metrics series and the class-goal sweep do their picking and counting in SQL. The connection-budget comments now count both servers of a blue-green deploy. The class-goal sweep skips archived courses. Their goals are history; a course archived before a goal's deadline keeps the snapshot it had, with no freeze and no new grade push. Added scripts/db-major-upgrade.sh moves the Compose db to a new PostgreSQL major version. It dumps the roles and the database, restores them into a new volume on the new version, compares a full inventory of the two (row counts, migrations, roles, grants, RLS policies, columns, indexes, sequences, database settings), and rolls back to the untouched old volume on any failure. --check runs the preflight only, --recover repairs an interrupted run, and --pin-current pins the running version. The live image and volume are recorded in docker-compose.db.yml, which every deploy script now includes. A new workflow runs the script end to end, 16 to 18, against real images (#3148). Changed PostgreSQL 18 is the default. Fresh installs get postgres:18 (with PGDATA kept at /var/lib/postgresql/data), and CI tests against 18. An existing host keeps its version until scripts/db-major-upgrade.sh moves it; see "PostgreSQL major upgrade" in deploy/README.md. scripts/restore.sh restarts the runner with --no-deps, so a restore can no longer recreate db as a side effect. Changed The deploy mode is a radio group on the admin Deployment page. It was a list of the three modes with a "Switch" button on each row except the current one, which a badge marked. Now the current mode is the checked radio, each mode has its one-line summary, the default says "(default)" in its name, and one "Save mode" button asks before it sends the request. Fixed The neutral .tier badge shows in dark mode. Its fill was --gray-100, which dark mode sets to the page surface, so "Current", "Approved" and every other bare badge read as loose words. It now uses --badge-neutral-bg, one step up in dark mode and unchanged in light. Added A Coming next card on production's Deployment page. Production's deployer still never deploys a pre-release on its own, in any mode. It now offers the newest one (v0.X.0-rc.N) on the admin page, with its notes and the minor-release pull requests it carries, and deploys it only when an admin types its version and approves it. While production runs an approved rc, the release that follows it in the same minor waits for approval in gated-minors, because it carries whatever merged after that rc. get_deploy_status reports the offered pre-release (prereleaseVersion). See "Approving a pre-release on production" in docs/release-gate.md. Fixed An approved pre-release with no image no longer holds production's deploys. If the image of an rc approved on the Deployment page is still not deployable after two hours, production's deployer drops the approval, records approve expired in the deploy history, and deploys releases as usual. The rc stays offered on the Coming next card, so an admin can approve it again once its image exists. Changed The held release's notes read as notes on the admin Deployment page. Each release is a card, and each category (Changed, Fixed) is a small heading above its own list, where before it was a bold bullet of one flat list. The bullets sit inside the text column instead of hanging outside it. The contract changes and the approval form are padded cards too (.card--padded), and the contract-change list no longer repeats its heading as a badge on every line. Security The images no longer carry the base image's unused pebble binary. The ubuntu:26.04 base ships Canonical's pebble service manager as a loose file that no package owns, so no apt-get upgrade patches it. Its Go standard library (1.27.3) has CVE-2026-97054 (HIGH), which failed the image vulnerability gate on every Docker build. Nothing in Chickadee runs pebble, so the runtime stage deletes it.