Skip to content

Commit 9be1653

Browse files
committed
fix(replay): re-anchor lockfile on reachable [fern-replay] init commit
`current_generation`, the second `generations[]` entry, and `patch-4894603d.base_generation` all referenced `b61c6fa84f61d6c77d9f4ab0fa6c2bf512c8680d` — a commit that doesn't exist in this repo's git history (verified with `git cat-file` and `git merge-base --is-ancestor` after a full unshallow fetch). Its recorded `tree_hash` (`063654dc...`) is also gone from the object database. Likely origin: a past fern-bot PR landed via squash-merge, which produces a new SHA on `master` distinct from the SHA recorded in the `[fern-replay]` commit's lockfile. That recorded SHA then orphans. Customer-visible effect: every `fern generate` loads this lockfile, can't resolve `b61c6fa`, falls into the deepest detection fallback, captures ~200 pre-Fern commits as orphan patches, and fails when the resulting PR body exceeds GitHub's 65,536-char limit. This change re-anchors all three references on `ffe61f6a098cb25a875019a37f2615045b97344e` — the original `[fern-replay] Initialize Replay for SDK customizations (#833)` commit by fern-api[bot], which is reachable on master. The generation entry's `tree_hash`, `timestamp`, and `base_branch_head` all use the real values from that commit. `patch-4894603d`'s `patch_content` and `theirs_snapshot` are kept untouched. The 8208-line `theirs_snapshot` is the safety net that lets the applicator reconstruct the customer's intended `src/auth0/management/__init__.py` content on the next regeneration even if the line-anchored diff's context has drifted against the new anchor's tree.
1 parent 1026b4d commit 9be1653

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

.fern/replay.lock

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,20 @@ generations:
66
timestamp: 2026-04-28T17:41:46.911Z
77
cli_version: unknown
88
generator_versions: {}
9-
- commit_sha: b61c6fa84f61d6c77d9f4ab0fa6c2bf512c8680d
10-
tree_hash: 063654dc375085f1a8bea81c0b92c9f5a2416241
11-
timestamp: 2026-05-01T07:46:03.366Z
9+
- commit_sha: ffe61f6a098cb25a875019a37f2615045b97344e
10+
tree_hash: d03a986a5da90661589bd53a6afdd5725588658c
11+
timestamp: 2026-04-29T20:01:22+05:30
1212
cli_version: unknown
13-
generator_versions:
14-
fernapi/fern-python-sdk: 5.9.1
15-
base_branch_head: 6e9c9a600c40b731e00bbf7f4e4285fe7758c0b5
16-
current_generation: b61c6fa84f61d6c77d9f4ab0fa6c2bf512c8680d
13+
generator_versions: {}
14+
base_branch_head: de316f0260ef1fa7c3626cbe771b167fd119439c
15+
current_generation: ffe61f6a098cb25a875019a37f2615045b97344e
1716
patches:
1817
- id: patch-4894603d
1918
content_hash: sha256:07bdd182f3a0fcf3bb41c2edeae2ae065fc98ce0dcae83201bde3e2140f9882d
2019
original_commit: 4894603d03409962bc60a34712de8abffe919e2c
2120
original_message: "chore: Restore custom wiring in management/__init__.py"
2221
original_author: Kunal Dawar <kunal.dawar@okta.com>
23-
base_generation: b61c6fa84f61d6c77d9f4ab0fa6c2bf512c8680d
22+
base_generation: ffe61f6a098cb25a875019a37f2615045b97344e
2423
files:
2524
- src/auth0/management/__init__.py
2625
patch_content: |

0 commit comments

Comments
 (0)