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

Aperta
#1,436 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
github, python
Ambito
release

Direzione di ricerca

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.

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

Descrizione

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.

Lingua principale
Python
Stelle
1.8k
Fork
161
Merge medio
4g 3h
PR unite (30g)
45

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 generative-computing/mellea

Tutte le issue di generative-computing/mellea

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.