Detect unmarked breaking changes before a release

未关闭
#1,900 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
22/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
docker-compose, typescript
领域
ci-cd, release

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.
主要语言
TypeScript
星标
119
派生
19
平均合并
1 天 18 小时
30 天内合并 PR
61

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

DouglasNeuroInformatics/OpenDataCapture 的其他 Issue

查看 DouglasNeuroInformatics/OpenDataCapture 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。