Autoversion counts SDK artifacts synced after the previous generation
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 22/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- openapi, python, typescript
- Ambito
- release
Direzione di ricerca
Start by reading the prior fix in #16874 and the symptom in #16870, since this report says the lockfile advance already works and the problem is in what the snapshot comparison contains. Then trace where autoversion reads .fern/replay.lock and builds the diff between the previous generation SHA and the new [fern-generated] tree, and check how .fernignored paths like the bundled openapi.json and code-examples.json enter that diff. Done means an exclusion or comparison change plus a regression test that repeats a generation after an artifact-only sync with identical generator inputs and asserts no version bump or release entry.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Component
SDKs
Priority
P1 - High (Strongly needed)
SDK Language(s)
TypeScript, Python
Bug Description
Fern Autorelease can count OpenAPI and example files synced after generation as changes in the next release, even when both files are protected by .fernignore. We saw both SDKs re-announce already released API changes and propose a second major bump.
Steps to reproduce
- Enable Autorelease and Replay with GitHub in pull-request mode.
- Generate a release with a visible API change. On the release PR, run a workflow after generation that updates the bundled
openapi.jsonandcode-examples.json. Keep both paths in.fernignoreso regeneration preserves them. - Merge that release and trigger another generation with a small change. Compare the new
[fern-generated]tree with the prior generation SHA in.fern/replay.lock, then compare it with its parent on SDKmain.
Expected behavior
Autoversion should classify and describe the new SDK changes. Updates to release artifacts already shipped with the previous SDK should contribute no changes to the next version analysis. A regression test could repeat the generation after an artifact sync with identical generator inputs and assert that the sync alone produces no bump or release entry.
Actual behavior and evidence
The previous generation SHA resolves in both repos, and both new PRs advance current_generation. The prior snapshot predates the artifact sync, while the new generation inherits the synced files from SDK main. The raw snapshot-to-snapshot diff includes about 1,500 changed lines across the OpenAPI and example files per SDK. Neither file changes between the new generation commit and its parent on SDK main.
The only new API change was documenting that the optional Lang2FHIR batch status field detect_retries is deprecated and omitted for new items. The original generated releases instead proposed TypeScript 20.0.0 → 21.0.0 and Python 19.0.0 → 20.0.0, and repeated previously shipped changes such as FHIR-to-OMOP batch, de-identification, and page-filter removal. We corrected those PRs to patch releases.
| SDK | Previous release | Prior generation SHA | New generation SHA | Original autoversion output |
|---|---|---|---|---|
| TypeScript | PhenoML/phenoml-ts-sdk#294 | 007dde41b34cb343c58e35469b4a501f54afe6b2 |
8e389904af383e7982ec08200059049414a319be |
TypeScript autoversion commit in PhenoML/phenoml-ts-sdk#295 |
| Python | PhenoML/phenoml-python-sdk#290 | 9692a0b94c42b5a4f8a3b1e199697d77df66356d |
926b002f5be814cca4a2e14ffbcd6eda8c241077 |
Python autoversion commit in PhenoML/phenoml-python-sdk#291 |
This has the same symptom as #16870. The fix in #16874 addressed persisting the lockfile advance. In this repro the lock advances successfully, and the contents of the snapshots cause the carryover.
A configurable exclusion list for autoversion would address this setup. We would exclude code-examples.json and the bundled spec paths, openapi/openapi.json in TypeScript and src/phenoml/openapi/openapi.json in Python. These files still need to ship in our SDK packages.
Versions
- Fern CLI 5.228.1, hosted SDK Generation
fernapi/fern-typescript-sdk3.107.3fernapi/fern-python-sdk5.41.4
Workaround
Compare the generated SDK with the last released SDK and correct the version, changelog, and PR description before merging.
- Lingua principale
- TypeScript
- Stelle
- 3.8k
- Fork
- 376
- Merge medio
- 9h 15m
- PR unite (30g)
- 171
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di fern-api/fern
-
[typescript] BasicAuth.fromAuthorizationHeader accepts headers without the Basic scheme prefixAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
component:cli priority:p2-medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
[Python] Naive datetimes are serialized with today's UTC offset, so values across a DST change are sent one hour offForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertacomponent:sdks lang:python
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
component:cli lang:python priority:p2-medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di fern-api/fern
Issue simili
-
enhancement severity:low
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
Battle-Cattle/BCUK-Bot-4#1252 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
modelcontextprotocol/inspector#3098 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
onyx-dot-app/onyx#18730 ·
I maintainer di solito rispondono entro 1 giorno
-
[Integration]: CoinStats APIAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ava-labs/builders-hub#4924 ·
I maintainer di solito rispondono entro 1 giorno