Detect unmarked breaking changes before a release

Ouverte
#1,900 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
22/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
docker-compose, typescript
Domaine
ci-cd, release

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.
Langage dominant
TypeScript
Étoiles
119
Forks
19
Merge moyen
1 j 18 h
PR mergées (30 j)
61

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de DouglasNeuroInformatics/OpenDataCapture

Toutes les issues de DouglasNeuroInformatics/OpenDataCapture

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.