Discussion: how should breaking-but-signature-unchanged changes surface to users?

Đang mở
#1,436 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
github, python
Lĩnh vực
release

Hướng nghiên cứu

Read .github/release.yml and the minor-release flow in RELEASE.md, especially step 4, then compare them with the existing PR examples #1181 and #1422. The issue asks for agreement on a process, not a code change; done means the project chooses a mechanism and records it in a follow-up issue.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

needs-design p2 question

Requirement

When a PR changes behaviour without changing a function's signature or raising an error, existing external callers get silently different results. Mellea currently has no process for making that visible before or after release — it's on the author to notice and call it out, and even then, nothing carries that explanation through to where users would actually see it.

Example

#1422 changes LocalHFBackend.list_adapters() to return registered adapters rather than only loaded ones. Same signature (() -> list[str]), no error, different result for any external caller relying on the old meaning. The PR body documents this clearly under "Breaking changes," but that explanation currently has no path into anything a user would read after the fact.

Mechanisms we already have (and where each falls short)

  • PR title ! convention (e.g. refactor(telemetry)!: move backend tracing onto plugin/hook pattern, #1181) — signals intent in the title, but it's prose only; the release-notes generator doesn't parse it.
  • .github/release.yml categories — bucket changelog entries by GitHub label (enhancement, bug, documentation, else "Other Changes"). No breaking-change label or category exists. Even if one did, the generator only emits one line per PR (title + author + link) — it doesn't pull in any of the PR body, so the actual explanation still wouldn't reach the changelog.
  • PR body "Breaking changes" section — some PRs (like #1422) write this out in detail, but it's a per-author convention, not a requirement, and nothing currently reads it back out anywhere.
  • RELEASE.md changelog-sync step — there's already a human review checkpoint before the generated notes merge to main (step 4 in the minor-release flow). This is the only point in the pipeline where a person could reasonably lift detail from a PR body into the published notes — but nothing directs them to do so today.

Open question

We need to agree on a process, not just a label. Some shapes it could take:

  1. Require a ## Breaking changes section (or similar) on PRs carrying a breaking-change label, and make the changelog-sync reviewer responsible for copying that content into the synced notes.
  2. Something more automated — e.g. a script that extracts a specific heading from labelled PR bodies during the sync step.
  3. Decide breaking-but-silent changes don't belong in the changelog at all, and should instead go in a separate "Migration Notes" doc per release.

Filing this as a discussion rather than a fix — want agreement on the mechanism before opening any PR against .github/release.yml or RELEASE.md. Once settled, a follow-up issue should apply it retroactively to #1422's list_adapters() change.

Ngôn ngữ chính
Python
Star
1.8k
Fork
161
Merge trung bình
4 ngày 3 giờ
Pull request đã merge (30 ngày)
45

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của generative-computing/mellea

Tất cả issue của generative-computing/mellea

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.