Detect unmarked breaking changes before a release

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

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
22/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker-compose, typescript
Ambito
ci-cd, release

Direzione di ricerca

Start with increment-version.ts, which decides when a release becomes a major, and with the v* tag comparison the checks would share. Each check diffs a different artifact against the last tag: /spec.json, .env.template, docker-compose.yaml, and the export column names. The upgrade test also depends on the release workflow from #1870. Done means CI fails on an unmarked breaking change and passes on additions.

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

Descrizione

Area: Infrastructure Difficulty: High Enhancement Priority: Medium

Follow-up to #1870. A breaking change has to be marked ! today, and increment-version.ts makes the next release a major once one is in range. Nothing yet catches a breaking change that was not marked. Each check below compares against the last v* tag and fails CI on a change that breaks a promise in Versioning and Support when the range has no breaking commit.

  • HTTP API: diff /spec.json against the last tag. Additions pass; a removed or changed path, parameter or schema fails.
  • Deployment config: diff .env.template and docker-compose.yaml against the last tag. A removed or renamed variable, a variable that loses its default, or a removed service, volume or port fails.
  • Export formats: snapshot the column and field names of each export format, so a rename shows up as a snapshot diff.
  • Upgrade test: boot the previous release's images against fresh data, upgrade to the new images, and check that every record still reads and exports. It covers releases made after #1870's release workflow lands; older releases are out of scope.
Lingua principale
TypeScript
Stelle
119
Fork
19
Merge medio
1g 18h
PR unite (30g)
61

Preparare l'ambiente

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 DouglasNeuroInformatics/OpenDataCapture

Tutte le issue di DouglasNeuroInformatics/OpenDataCapture

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.