CI: a Build run reports success when the Windows and Intel macOS jobs failed, so a release can be assembled with assets missing

Aperta
#1,321 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
74/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions
Ambito
ci-cd, release

Direzione di ricerca

Start by reading .github/workflows/build.yml, especially the Windows and macOS jobs and how their artifacts are named and passed between jobs. Then trace the existing release artifact handling to find where a final check can run after those jobs. Done means a failed or missing expected release artifact is reported by name and makes the Build run fail, while diagnostic artifacts are not required.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

.github/workflows/build.yml marks the windows job continue-on-error: true (line 603) and the macos job continue-on-error: ${{ matrix.experimental }}, with experimental: true for both Intel entries (x86_64, x86_64-1013) and false for arm64. A job that fails under continue-on-error leaves the run's conclusion success.

So a green Build run guarantees only the four Linux packages, vendored-inventor and the macOS arm64 dmg. The MSI, the Windows zip and both Intel dmgs can all be absent from a run that looks fine, and whoever assembles the release has no signal unless they compare the artifact list against the expected names by hand.

This is the same shape as #1301 (an empty ctest -R exiting 0) and #1309 (a test script reaching none of its checks and reporting success): a step that did not happen reports success. The consequence here is a published release missing a platform.

Suggested fix: a job that runs after the others and fails when an expected artifact is absent, listing the names it wanted and the names it found. The expected set is the nine release artifacts (ecce-debian-trixie-deb, ecce-ubuntu-latest-deb, ecce-rockylinux9-rpm, ecce-fedora-latest-rpm, ECCE-windows-msi, ECCE-windows-zip, ECCE-macos-dmg-arm64, ECCE-macos-dmg-x86_64, ECCE-macos-dmg-x86_64-1013); the diagnostic artifacts are not release assets and should not be required. Keeping continue-on-error on the experimental platforms is still right - the point is that the run should say plainly which ones were lost, rather than reporting success.

Found while reconstructing the release procedure for 9.6.1.

Lingua principale
C
Stelle
10
Fork
8
Merge medio
6h 32m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di FriendsofECCE/ECCE

Tutte le issue di FriendsofECCE/ECCE

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.