CI e installatore: commenti degli script in inglese (#43)

La regola del progetto è «codice e commenti in inglese; interfaccia, documenti
e messaggi in italiano», e gli script di .gitea/ (script e flussi), di
installer/ e docker/entrypoint.sh avevano ancora i commenti in italiano
(decisione di Alberto del 29 novembre 2026). Cambiano solo i commenti: i
messaggi che una persona legge (echo, ::warning::, ::error::, nomi dei passi,
note della release) restano in italiano e nessun comando cambia. I programmi
awk e gli script finti delle prove erano già in inglese.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-29 12:03:13 +01:00
1 parent f48384b7d4
commit 009e7d6710
18 files changed
+496 -495

No files matched your search

+56 -57
View File
@@ -1,34 +1,34 @@
# Verifica: a ogni push su qualunque ramo (i tag li prende rilascio.yml) e a mano (Actions ▸ verifica ▸ Esegui).
# I suoi quattro lavori sono i controlli richiesti per unire in main (docs/processo.md):
# controlli sintassi degli script, flussi in YAML a blocchi e senza azioni, segni di conflitto, versione,
# progetti della soluzione, JSON; segreti in tutta la storia con gitleaks (versione e impronta fissate);
# prove compilazione di tutta la soluzione con gli avvisi come errori e tutte le prove di tests/Febe.Tests
# (mai «dotnet test» sulla soluzione intera: tests/Febe.Tests.Windows gira solo su Windows) con
# Chromium e Xvfb veri in un contenitore Debian 13: nessuna prova deve saltarsi, tranne le «da fare»
# di H264ConformanceTests.FeaturesStillToDo (riepilogo-prove.sh le conta a parte).
# Il mondo sintetico del sito di prova ha il seme 13 e, per la categoria SitoDiProva, anche il seme di
# questa esecuzione, scritto nel registro per rifare un errore;
# installatore Febe-Setup-<versione>-ci.<numero>.exe (il programma di installazione nostro, src/Febe.Installer) e
# lo zip portabile; serve solo il .NET SDK;
# immagine dopo l'installatore: l'immagine Docker costruita con buildx, provata senza rete (parte, salute,
# Chromium, it_IT) e scansionata con Trivy (si ferma per una CRITICAL con correzione); solo dopo un push
# su main la pubblica come :main e :sha-<7 caratteri> (:latest resta al rilascio). Alla fine, sempre,
# toglie immagini, contenitori, cache e builder di questa esecuzione, poi le immagini senza nome e la
# cache di costruzione penzolante non usata da 24 ore di tutti i progetti del demone.
# Verification: at every push on any branch (tags are taken by rilascio.yml) and by hand (Actions ▸ verifica ▸ Esegui).
# Its four jobs are the checks required to merge into main (docs/processo.md):
# controlli script syntax, workflows in block YAML and without actions, conflict markers, version, projects of
# the solution, JSON; secrets in the whole history with gitleaks (version and hash pinned);
# prove build of the whole solution with warnings as errors and all the tests of tests/Febe.Tests (never
# «dotnet test» on the whole solution: tests/Febe.Tests.Windows runs only on Windows) with real
# Chromium and Xvfb in a Debian 13 container: no test may be skipped, except the «da fare» ones of
# H264ConformanceTests.FeaturesStillToDo (riepilogo-prove.sh counts them apart).
# The synthetic world of the test site has seed 13 and, for the SitoDiProva category, also the seed of
# this run, written in the log to reproduce a failure;
# installatore Febe-Setup-<versione>-ci.<numero>.exe (our own installer, src/Febe.Installer) and the portable zip;
# only the .NET SDK is needed;
# immagine after the installer: the Docker image built with buildx, tested without network (start, health,
# Chromium, it_IT) and scanned with Trivy (it stops for a CRITICAL with a fix); only after a push on
# main it publishes it as :main and :sha-<7 characters> (:latest is left to the release). At the end,
# always, it removes this run's images, containers, cache and builder, then the unnamed images and the
# dangling build cache unused for 24 hours of all the daemon's projects.
#
# Niente azioni (decisione di Alberto del 18 novembre 2026: niente componenti esterni): ogni passo è un comando. I
# sorgenti arrivano con git e il gettone del lavoro, l'SDK .NET con .gitea/scripts/dotnet.sh (verificato con l'impronta
# dei metadati di Microsoft), il builder buildx con costruisci-immagine.sh builder. Gli artefatti (risultati delle
# prove, installatore e zip, rapporti di gitleaks e di Trivy) vanno nel registro dei pacchetti di Gitea, pacchetto
# generico febe-ci, versione <versione>-ci.<numero>, con REGISTRY_TOKEN (.gitea/scripts/artefatti.sh); la pulizia del
# lunedì toglie quelli di più di 14 giorni. Senza il segreto un avviso, e il lavoro resta verde. Nessun passo usa Node.
# No actions (decision of Alberto of 18 November 2026: no external components): every step is a command. The sources
# arrive with git and the job token, the .NET SDK with .gitea/scripts/dotnet.sh (verified against the hash in
# Microsoft's metadata), the buildx builder with costruisci-immagine.sh builder. The artifacts (test results,
# installer and zip, gitleaks and Trivy reports) go to Gitea's package registry, generic package febe-ci, version
# <versione>-ci.<numero>, with REGISTRY_TOKEN (.gitea/scripts/artefatti.sh); the Monday cleanup removes those older
# than 14 days. Without the secret a warning, and the job stays green. No step uses Node.
#
# Niente «pull_request»: in Gitea una richiesta di unione mostra lo stato del suo ultimo commit, che il push del ramo
# ha già verificato; pull_request rifarebbe tutto sullo stesso commit (refs/pull/N/head) sull'unico runner.
# Runner: act_runner con l'etichetta ubuntu-latest, un lavoro alla volta. I lavori parlano con il demone Docker del
# server, lo stesso di Encelado, Mimante e degli altri progetti: niente montaggi della cartella del lavoro in altri
# contenitori (sul server i percorsi sono diversi); le immagini passano come archivi e contesti di costruzione.
# Che cosa di Gitea 28 si usa e perché: docs/decisioni.md (20 ottobre e 18 novembre 2026) e docs/processo.md.
# No «pull_request»: in Gitea a pull request shows the status of its last commit, which the branch push has already
# verified; pull_request would redo everything on the same commit (refs/pull/N/head) on the only runner.
# Runner: act_runner with the ubuntu-latest label, one job at a time. The jobs talk to the server's Docker daemon, the
# same as Encelado, Mimante and the other projects: no mounts of the job folder into other containers (on the server
# the paths are different); images travel as archives and build contexts.
# What of Gitea 28 is used and why: docs/decisioni.md (20 October and 18 November 2026) and docs/processo.md.
name: verifica
on:
@@ -44,10 +44,10 @@ on:
permissions:
contents: read
# Su un ramo conta l'ultimo push: l'esecuzione precedente si annulla. Su main ogni commit ha il suo gruppo, così ogni
# unione arriva fino in fondo e pubblica la sua :sha-. L'evento fa parte del gruppo: un'esecuzione a mano non annulla
# mai quella di un push, che è l'unica a scrivere gli stati del commit richiesti per unire (un lavoro annullato lascia
# lo stato «failure», e workflow_dispatch non ne scrive).
# On a branch the last push counts: the earlier run is cancelled. On main every commit has its own group, so every
# merge runs to the end and publishes its :sha-. The event is part of the group: a run by hand never cancels the one
# of a push, which is the only one that writes the commit statuses required to merge (a cancelled job leaves the
# «failure» status, and workflow_dispatch writes none).
concurrency:
group: verifica-${{ gitea.event_name }}-${{ gitea.ref }}${{ gitea.ref == 'refs/heads/main' && format('-{0}', gitea.sha) || '' }}
cancel-in-progress: ${{ gitea.ref != 'refs/heads/main' }}
@@ -68,9 +68,9 @@ jobs:
env:
NUMERO: ${{ gitea.run_number }}
steps:
# I sorgenti del commit con git e il gettone del lavoro, che vale solo finché il lavoro gira e non resta nella
# configurazione del repository. Qui tutta la storia (PROFONDITA 0): gitleaks legge ogni commit da cui discende
# quello verificato. Lo stesso passo, lettera per lettera, apre ogni lavoro (lo controlla PipelineTests).
# The commit's sources with git and the job token, which is valid only while the job runs and does not stay in
# the repository configuration. Here the whole history (PROFONDITA 0): gitleaks reads every commit the verified
# one descends from. The same step, letter for letter, opens every job (PipelineTests checks it).
- name: Sorgenti
env:
TOKEN: ${{ gitea.token }}
@@ -112,9 +112,9 @@ jobs:
needs: controlli
runs-on: ubuntu-latest
timeout-minutes: 60
# Debian 13, nient'altro: Chromium vero della distribuzione, come nell'immagine di Febe (su Ubuntu è uno snap). Senza
# azioni non serve Node: git e curl prima dei sorgenti, il resto da ambiente-prove.sh, l'SDK da dotnet.sh.
# Memoria condivisa più ampia dei 64 MB predefiniti: le prove dell'interfaccia usano un Chromium senza finestra.
# Debian 13, nothing else: the distribution's real Chromium, as in the Febe image (on Ubuntu it is a snap). Without
# actions Node is not needed: git and curl before the sources, the rest from ambiente-prove.sh, the SDK from
# dotnet.sh. Shared memory larger than the default 64 MB: the interface tests use a Chromium without a window.
container:
image: debian:trixie
options: --shm-size=1g
@@ -151,7 +151,7 @@ jobs:
git checkout -q --force --detach "$GITHUB_SHA"
git log -1 --format='Commit %h: %s'
# Prima di tutto il resto, così un seme chiesto a mano e sbagliato ferma subito il lavoro.
# Before everything else, so that a wrong seed asked by hand stops the job at once.
- name: Semi del mondo sintetico
id: semi
run: |
@@ -209,8 +209,8 @@ jobs:
timeout-minutes: 30
env:
NUMERO: ${{ gitea.run_number }}
# Questo lavoro gira sull'immagine del runner, che non garantisce ICU: pubblicare e impacchettare non ne hanno
# bisogno, quindi .NET va in globalizzazione invariante invece di fermarsi («Couldn't find a valid ICU package»).
# This job runs on the runner image, which does not guarantee ICU: publishing and packaging do not need it, so
# .NET goes into invariant globalization instead of stopping («Couldn't find a valid ICU package»).
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: "true"
steps:
- name: Sorgenti
@@ -254,8 +254,8 @@ jobs:
((${#artefatti[@]} == 2)) || { echo "Servono il programma di installazione e lo zip portabile, non: ${artefatti[*]:-niente}." >&2; exit 1; }
bash .gitea/scripts/artefatti.sh verifica "${artefatti[@]}"
# Dopo l'installatore, non solo dopo le prove: :main e :sha- escono solo da un commit con tutta la verifica verde.
# Sull'unico runner i lavori vanno comunque uno alla volta, quindi la durata non cambia.
# After the installer, not only after the tests: :main and :sha- come only from a commit with the whole verification
# green. On the only runner the jobs go one at a time anyway, so the duration does not change.
immagine:
needs: [prove, installatore]
runs-on: ubuntu-latest
@@ -288,14 +288,13 @@ jobs:
git checkout -q --force --detach "$GITHUB_SHA"
git log -1 --format='Commit %h: %s'
# Ciò che un'esecuzione interrotta (annullata, scaduta) non ha potuto togliere, e un tentativo precedente di
# questa stessa esecuzione.
# What an interrupted run (cancelled, timed out) could not remove, and an earlier attempt of this same run.
- name: Resti di esecuzioni interrotte
run: |
bash .gitea/scripts/pulizia-docker.sh residui 90
bash .gitea/scripts/pulizia-docker.sh esecuzione "$ESECUZIONE"
# Registro: la variabile REGISTRY delle Actions, se c'è, altrimenti l'host dell'indirizzo del server (ROOT_URL).
# Registry: the REGISTRY variable of the Actions, if set, otherwise the host of the server address (ROOT_URL).
- name: Versione, registro e nomi
env:
REGISTRO_SCELTO: ${{ vars.REGISTRY }}
@@ -315,7 +314,7 @@ jobs:
} >> "$GITHUB_ENV"
echo "Immagine $V-ci.$NUMERO del commit ${GITHUB_SHA::12}, provata come $PROVA; registro $REGISTRY/$OWNER/febe"
# Un builder buildx di questa esecuzione (con la sua cache), che sa che il registro di casa risponde in HTTP.
# A buildx builder of this run (with its cache), which knows that the home registry answers in HTTP.
- name: Builder buildx dell'esecuzione
run: bash .gitea/scripts/costruisci-immagine.sh builder "$REGISTRY"
@@ -364,13 +363,13 @@ jobs:
REGISTRO_UTENTE: ${{ gitea.actor }}
GITEA_TOKEN: ${{ gitea.token }}
run: |
# Le credenziali le mette costruisci-immagine.sh pubblica in una configurazione del client solo sua, tolta
# alla fine: buildx le passa al builder, il demone non c'entra (e proverebbe HTTPS). Non si stampano mai.
# costruisci-immagine.sh pubblica puts the credentials in a client configuration of its own, removed at the
# end: buildx passes them to the builder, the daemon is not involved (and would try HTTPS). Never printed.
NOMI=("$IMAGE:sha-${GITHUB_SHA::7}")
# :main solo se main è ancora a questo commit: un'esecuzione arrivata in ritardo non lo riporta indietro.
# Il gettone del lavoro solo nell'ambiente di git, come per i sorgenti. Il passo gira con «bash -e -o
# pipefail»: senza «|| CIMA=""» un errore di ls-remote chiuderebbe il passo prima dell'avviso, e non
# uscirebbe nemmeno la :sha-.
# :main only if main is still at this commit: a run that arrives late does not move it back.
# The job token only in git's environment, as for the sources. The step runs with «bash -e -o
# pipefail»: without «|| CIMA=""» an ls-remote error would end the step before the warning, and not even
# the :sha- would come out.
INTESTAZIONE="Authorization: basic $(printf 'x-access-token:%s' "$GITEA_TOKEN" | base64 -w0)"
CIMA=$(GIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0=http.extraHeader GIT_CONFIG_VALUE_0="$INTESTAZIONE" \
git ls-remote origin refs/heads/main 2> /dev/null | cut -f1) || CIMA=""
@@ -386,10 +385,10 @@ jobs:
- name: Pulizia (sempre)
if: always()
run: |
# La configurazione del client con le credenziali, se un'interruzione ha saltato la trap di chi l'ha scritta.
# The client configuration with the credentials, if an interruption skipped the trap of whoever wrote it.
rm -rf "${RUNNER_TEMP:-/tmp}/febe-docker-$ESECUZIONE"
if [ -n "${ARCHIVIO:-}" ]; then rm -f "$ARCHIVIO"; fi
bash .gitea/scripts/pulizia-docker.sh esecuzione "$ESECUZIONE"
# Poi, per tutti i progetti del demone, ciò che nessuno usa: immagini senza nome e cache di costruzione
# penzolante non usata da 24 ore. Non fa mai fallire il lavoro.
# Then, for all the daemon's projects, what nobody uses: unnamed images and dangling build cache unused for
# 24 hours. It never fails the job.
bash .gitea/scripts/pulizia-docker.sh penzolanti || echo "::warning::La pulizia di ciò che nessuno usa non è riuscita."