Skip to content

Releases

v1.9.0

Choose a tag to compare

@legraina legraina released this 19 Nov 03:47
815923c

New images deploy themselves (#316)

The cluster now picks up a newly published rmni/<service>:main image within 5 minutes, without minikube-helper.sh -r. The new image-update CronJob (deployment/image-update.yml):

  • rolls out server, socketio and webapp when their :main tag points at another image on Docker Hub than the one running, once per image;
  • wakes an executor when rmni/executor:main changes, so that its large image is already on the node when a task comes;
  • posts each rollout to the sentinel's Slack channel.

Its role may only patch those three Deployments, list pods, read the executor's ScaledJob and annotate its own CronJob. Docker Hub or the server out of reach is retried at the next run; without an admin-api-key the executor is left alone. To see what it would do: deployment/image-update.sh --dry-run --executor job-executor server socketio webapp.

A v* release tag publishes :<version> only: the cluster deploys a release once the "Publish All Docker images" workflow has run on main.

PDF viewer 32 (#319)

The grading screen moves to ngx-extended-pdf-viewer 32.0.2. Its default bundle (pdf.js 6.5) now has the eraser and undo/redo, and the fixes we sent upstream (stephanrauh/pdf.js #16):

  • the eraser works on rotated scanned pages;
  • an erased drawing keeps its rotation;
  • a restored drawing is one undo step;
  • changing copy while pages render no longer throws.

The bleeding-edge bundle and the postinstall patch of the viewer are gone. On a scanned copy shown at 270°, the eraser cuts under the pointer, undo/redo work, and drawings come back as saved.

Phone layout (#317)

  • In the cards of the dashboard, task list and admin, the label stays on the left and the content together on the right, instead of spread over the line.
  • The guide's chapter dropdown names the open chapter even for an admin acting as a user.
  • A shared or read-only dashboard no longer ends each card with an empty line.
  • "No data matching the filter" and "Aucun compte" are full-width, centered lines.

Fixes

  • Health sentinel (#318): a CronJob created less than its success window ago (48h by default) is no longer reported as having no successful run. That was the warning sent right after image-update was deployed. A failing run is still reported.

After deploy

kubectl apply -k deployment/
kubectl create job image-update-now --from=cronjob/image-update && kubectl logs -f job/image-update-now

Full changelog: v1.8.5...v1.9.0

v1.8.5

Choose a tag to compare

@legraina legraina released this 18 Nov 22:49
fb7efbe

Grades written as a fraction (#306)

Graders who write the grade over the question's maximum ("7/10", "7,5/8") are now read correctly, whether the slash is upright or diagonal. Touching digits, specks next to a "10" and circled grades are read better too. A reading that does not make sense (a numerator above the maximum, decimals the question does not allow) is never prefilled.

On a full exam of 270 copies × 6 questions, scored against the teacher's final grades:

  • read correctly: 65 % → 86 %;
  • wrong prefills: 115 → 19, so 98.5 % of the prefills are right.

Matricule on the cover page only (#314)

In the wizard, « Template pour les pages suivantes » now offers Aucun (matricule sur la page de garde seulement). Use it for exams whose inner pages carry no matricule: those pages are no longer searched, which saves about 2 s per page. Tasks made before keep reading their later pages.

Phones and tablets (#309)

The menu, login, templates, wizard, profile, task list, admin, dashboard and guide now fit phones and tablets, and no page scrolls sideways. The login button no longer spills out of its card on a laptop. The grading screens (copies and matricules) keep their layout.

Fixes

  • A copy given to the wrong student, then corrected (#315). Finalizing again left the copy's grades on the first student's row of the notes csv. The rows an earlier finalization filled are now put back to the grade Moodle sent before the copies are written. If a student who lost their copy is left without a grade, the task's infos name them, since Moodle's import ignores an empty grade and the earlier one has to be fixed by hand.
  • Matricule history (#315). Each copy now records who gave it its matricule and when: the reader's proposal with its exact confidence, each correction or status change by the owner or a share link, and « Relire les matricules ». It can be read in the database; it is not shown in the UI yet.
  • A class list without Moodle's grade or date column no longer fails the finalization (#315).
  • A link shared for one question showed no copy when copies had been added in a second batch (#313).

Digit bank (#307, #308)

  • Labels padded with zeros ("9.5000") are refused, so a slash is no longer banked as a 0.
  • tools/build_digit_bank.py gets rebuild --job <id> (re-reads a job's pages with today's reader), purge --job <id> and prune, all with --dry-run.
  • A purge no longer leaves orphan files when one image is filed under two labels.

After deploy:

python tools/build_digit_bank.py prune --dry-run
python tools/build_digit_bank.py prune

Maintenance

  • Dependabot alerts closed: dnspython 2.9.2, js-yaml 4.3.2, brace-expansion; the unused codelyzer removed (#312).
  • A committed node_modules symlink that broke npm on checkout is gone (#310). A checkout that has it: cd services/webapp/ng && rm node_modules && npm ci.

Full changelog: v1.8.4...v1.8.5

v1.8.4

Choose a tag to compare

@legraina legraina released this 04 Nov 20:10
7fbf963

Several class lists per task (#305)

A task can now be given one Moodle grade export per assignment (two sections of a course, for example), and gives back the files of each assignment separately.

  • Creating a task: the wizard takes several csv files, all at once or one after the other. Each becomes a class list named after its file and can be removed before starting. Dropbox and OneDrive still give a single list.

  • A student in two lists: the task is not created. A dialog asks to fix the Moodle files if it is a mistake, and which list each such student belongs to; the student is then removed from the others.

  • « Mettre à jour csv »: the dialog lists the task's class lists. Each can be downloaded as the task has it now, or removed, and files can be added; then everything is saved at once, with the same question for a student found in several lists. The new lists are also used for copies added later; before, adding copies brought the old csv back.

  • At the end, for each list:

    • its folder in the copies zip;
    • its own notes file, with its export's columns and then the grade of each question;
    • its own Moodle zips.

    The files dialog names them « moodle- » and « notes- ».

  • A task with one csv gives exactly the files it gave before.

Fixes

  • A student without a group in the class list no longer breaks the task: its dashboard did not load (a NaN among the groups), and the copies went into « 1.0 » and « nan » folders. Tasks processed before load again.
  • A « notes » file renamed in the download dialog is saved as .csv, no longer as .pdf.

Full changelog: v1.8.3...v1.8.4

v1.8.3

Choose a tag to compare

@legraina legraina released this 04 Nov 04:20
a309ce1

Grading and offline correction

  • Deleted copies are left out of grading (#303). Their pages are no longer listed for grading or downloaded for offline grading, and they no longer block validation. The dashboard's per-question counts, total, finalisation and reading progress leave them out too, and update live when a copy is deleted or restored. Grades saved on their pages, including by an offline sync made after the deletion, are still kept, so a restore brings them back.
  • Copy numbers stay put (#303). Grading tiles show the copy's number, the same as on the matricule page and in the dashboard's search, so deleting a copy or filtering by group no longer renumbers the others. The search marks a deleted copy « (supprimée) » and cannot select it; a copy deleted after being picked gives a warning when grading opens.
  • The offline zip import matches pages by the csv (#303). Each page goes to the copy named in the zip's notes.csv instead of by position, which gave one student's pages to another when the list of copies had changed since the export (group filter, copy deleted or added). A csv naming an unknown copy is refused.
  • PDFs annotated in Preview import correctly (#304). Preview leaves stale objects of the export in the file, and pdf-lib read them instead of the annotated pages: pages went missing or to the wrong copies, without an error. These objects are now set aside when the file shows they cannot be reached. Each batch is also checked against pdf.js page by page (page count and annotations), and a question whose pages do not match its copies replaces nothing.

Layout

  • The offline correction button is fully visible again in the grading and matricule sidebars, and the task list no longer scrolls sideways on narrow screens (#302).

Dependencies

  • pypdf 6.21.4 for 7 CVEs (#300); Angular, npm and Python group updates (#297, #298, #299); follow-redirects 1.16.2 (#301).

Full changelog: v1.8.2...v1.8.3

v1.8.2

Choose a tag to compare

@legraina legraina released this 30 Oct 02:27
9e85e30

Points forts

  • Banque de chiffres et modèle dans le panel admin : l'onglet Système montre ce que contient la banque, par chiffre et par type de nombre, avec le taux de lecture du modèle de l'époque. Un administrateur peut lancer un entraînement ou une évaluation du modèle, comparer les scores (test de la banque, banque entière, MNIST), activer le modèle entraîné ou revenir au modèle d'origine, et supprimer une demande terminée (#295).
  • Pages de garde signalées, depuis le dashboard : un bouton « Pages de garde (N) » sur la ligne des matricules ouvre la vérification des matricules en lecture seule. On n'y voit que les copies signalées, avec la page de garde telle que la finalisation l'a écrite. Chacune a son niveau de confiance sur le placement des notes et la raison du signalement (#296).

À savoir pour la mise à jour

  • Nouvelle image rmni/trainer (TensorFlow) pour le worker d'entraînement, et nouveau ScaledJob trainer sur la file train_queue : appliquer kubectl apply -k deployment/. Sans ce worker, une demande reste en attente puis passe en erreur au bout de 2 h. Le reste de rmn n'en dépend pas.

What's Changed

  • Digit bank info, model scores and a trainer worker on the admin page by @legraina in #295
  • Look at the flagged cover pages, as finalizing wrote them, from the dashboard by @legraina in #296

Full Changelog: v1.8.1...v1.8.2

v1.8.1

Choose a tag to compare

@legraina legraina released this 29 Oct 15:39
b0f1e47

Points forts

  • Cases de notes mieux trouvées : rmn repère les cases de notes comme des cases alignées, vides sur le template, et utilise la disposition du template pour chaque copie. Les cadres des notes et du matricule sont redressés (#285, #286).
  • Pages de garde à vérifier : la liste des pages de garde dont les notes sont peut-être mal placées est donnée au correcteur (#293).
  • Banque de chiffres : la conservation des chiffres validés, qui sert à réentraîner la lecture, est maintenant un seul réglage pour tous, dans l'onglet Système du panel admin. Elle n'est plus dans le Profil (#292).
  • Zips Moodle toujours produits : l'option cachée moodleStructureInd disparaît. Une copie sans identifiant Moodle reste dans le zip « copies », avec sa page de statistiques. Un csv sans colonne Identifiant ne fait plus échouer la finalisation (#294).

À savoir pour la mise à jour

  • Les choix individuels « Sauvegarder image des chiffres » ne sont plus lus : c'est le réglage de l'onglet Système qui s'applique à tous. Il est activé par défaut.

What's Changed

  • Bump pymongo from 4.18.2 to 4.18.3 in /services/socketIO by @dependabot[bot] in #287
  • Bump qs and body-parser in /services/webapp/ng by @dependabot[bot] in #289
  • Bump dnspython from 2.8.0 to 2.9.0 in /services/socketIO by @dependabot[bot] in #288
  • Bump pymongo from 4.18.2 to 4.18.3 in /services/executor by @dependabot[bot] in #290
  • Bump pymongo to 4.18.3 and dnspython to 2.9.0 in server and executor by @legraina in #291
  • Make keeping the confirmed digits one admin setting for everyone by @legraina in #292
  • Find the grade boxes as aligned boxes, empty on the template by @legraina in #285
  • Find a copy's grade boxes with its template's layout, or flag it; straighten grade and matricule frames by @legraina in #286
  • List the cover pages whose grades may be misplaced, for the grader by @legraina in #293
  • Always make the Moodle feedback zips; drop moodleStructureInd by @legraina in #294

Full Changelog: v1.8.0...v1.8.1

v1.8.0

Choose a tag to compare

@legraina legraina released this 29 Oct 04:20
471ba38

Points forts

  • Guide d'utilisation dans l'application (menu Guide), avec des bulles « ? » et une aide au survol des boutons qui mènent à la bonne section (#279, #282)
  • Trois rôles : Utilisateur, Gestionnaire (crée des comptes et réinitialise ceux qu'il gère) et Administrateur. Les nouveaux comptes et les mots de passe réinitialisés doivent être changés à la première connexion (#281)
  • Panel admin : comptes, rôles, gestionnaires, réinitialisation avec mot de passe temporaire, prise de rôle d'un utilisateur, fermeture des sessions, suppression ; onglet Système avec la file d'attente, le stockage et le nettoyage des anciennes tâches et sessions (#278, #282)
  • Relire les matricules ou les notes depuis la page d'une tâche, sans toucher à ce qui a déjà été validé (#282)
  • Note 0 aux étudiants sans copie : c'est maintenant une option de la tâche (#280)

À savoir pour la mise à jour

  • Un rôle insuffisant renvoie maintenant 403 sans déconnecter l'utilisateur, au lieu de 401.
  • Les comptes existants ne sont pas forcés à changer leur mot de passe.

What's Changed

  • Make the 0 for students without a copy an option of the task by @legraina in #280
  • Add a step-by-step user guide with help bubbles and screenshots by @legraina in #279
  • Let an admin take the place of any user by @legraina in #278
  • Add the Gestionnaire role, managers per account and the forced password change by @legraina in #281
  • Add the admin page: accounts and operator commands by @legraina in #282
  • Bump pillow from 10.4.0 to 13.0.0 in /tools/docs-capture by @dependabot[bot] in #283
  • Show an open eye while the list of copies is shown in grading by @legraina in #284

Full Changelog: v1.7.3...v1.8.0

v1.7.3

Choose a tag to compare

@legraina legraina released this 28 Oct 19:30

What's Changed

  • Show the half points: on a student's page, and on the histogram of the total by @legraina in #260
  • Ask before sending validated grades back when a maximum is lowered by @legraina in #261
  • Stop filling in a grade whose decimals were guessed by @legraina in #262
  • Let a component stylesheet reach 12 kB, not 10 by @legraina in #263
  • Bump pillow from 12.3.0 to 13.0.0 in /services/server by @dependabot[bot] in #264
  • Bump pillow from 12.3.0 to 13.0.0 in /services/executor by @dependabot[bot] in #265
  • Bump launch-editor from 2.14.1 to 2.14.2 in /services/webapp/ng by @dependabot[bot] in #267
  • Bump serialize-javascript from 7.1.2 to 7.1.4 in /services/webapp/ng by @dependabot[bot] in #268
  • Bump zod and @angular/cli in /services/webapp/ng by @dependabot[bot] in #266
  • Bump fast-uri from 3.1.8 to 3.1.9 in /services/webapp/ng by @dependabot[bot] in #269
  • Bump setuptools from 84.0.0 to 84.1.0 in /services/server by @dependabot[bot] in #270
  • Bump pypdf from 6.19.0 to 6.21.2 in /services/server by @dependabot[bot] in #271
  • Bump pypdf from 6.19.0 to 6.21.2 in /services/executor by @dependabot[bot] in #272
  • Bump certifi from 2026.7.22 to 2026.10.19 in /services/server by @dependabot[bot] in #273
  • Open the copies not read yet on the matricule page, find a copy by its file name by @legraina in #274
  • Read the matricule boxes the same way on every page by @legraina in #275
  • Show no confidence for a matricule while the class list is empty by @legraina in #276
  • Read a copy's pages only as needed: stop at a sure cover page, render on demand, log unbuffered by @legraina in #277

Full Changelog: v1.7.2...v1.7.3

v1.7.2

Choose a tag to compare

@legraina legraina released this 19 Oct 19:47
d47348c

Finalizing a large job no longer runs out of memory, a job whose executor dies is picked up again by itself, and the corrected copies keep the quality — and the size — of the pages that were scanned.

Finalizing

  • A job of any size finishes. The cover pages are written in batches, each in a process of its own that stops once it has used MAX_RAM_GB, so the memory the imaging libraries do not give back goes back to the system between batches. A 546-copy job used to be killed by the container at copy 314 and left in FINALIZING. A batch that is killed anyway costs its copy and the next one resumes after it (#255).
  • A run that starts again only redraws what changed. Each copy records what its graded page was drawn from, so an interrupted finalization resumes instead of redoing the whole job, and correcting two grades redraws two pages (#255).
  • The graded page no longer overwrites the scan. It is written beside it, under cover_pages/<job>/graded/, and the merge falls back to the scan for a copy whose table could not be read. The correction screens therefore always show the page as it was scanned (#255).

Grades on the cover page

  • They are written where the table actually is. The overlay used the position the template records while the cells came from whichever widened crop matched, so every copy that needed a retry had its grades drawn about 25 px off — 472 of the 546 copies of the last exam (#255).
  • Tables the old retries never found are found now. Widening the crop evenly never reaches a table that sits left of the recorded box; the crops tried now include one-sided ones. Replayed over 546 real cover pages: 546 found, against 543 before (#255).
  • They are written in the page, not over a picture of it. The page was rasterised at 300 dpi and re-encoded, which turned a 94 kB scan into 1.4 MB and lost what the scanner had captured. The grades are now text in the page: 185 kB for a page whose scan is 184 kB. For a 546-copy job that is about 85 MB of graded pages instead of 664 MB, and the Moodle download goes back to two parts (#259, after #257 had raised the jpeg quality that this removes entirely).

Cluster

  • A job whose executor died is requeued on a clock. The sweep that does it used to run only when an executor ended, and an executor only starts when the queue is not empty, so a crashed job waited for somebody else to submit one. The idle-sweep CronJob runs it every ten minutes, and a dead finalization comes back as the status the executor acts on (#255).
  • The storage is a directory of the node. NFS on a single-node cluster is a loopback mount that stalls every few days; it becomes an opt-in kustomize component, selected with scripts/deploy.sh --storage nfs (#256).
  • One queued job starts one executor. The queue still showed a job during the two and a half seconds its executor spent importing OpenCV and LiteRT, so the scaler started a second one. The tasks are imported once the job has been taken, and the scaling strategy now counts what is running (#258).

Web application

  • The histogram stops at the maximum of the question. A question marked out of 3.5 ended on a bar at 4 that no copy could reach (#254).

Deploying

kubectl apply -k deployment/ for the storage and the scaler; the executor changes need the image. This tag builds the versioned images but does not move :main — publish manually with "Push images" checked for that.

v1.7.1

Choose a tag to compare

@legraina legraina released this 18 Oct 03:02
23df946

What's Changed

  • Stop taking the upright of a 4 for a decimal separator by @legraina in #252
  • Recognise the circle around a grade even when it never closes by @legraina in #253

Full Changelog: v1.7.0...v1.7.1