Repository navigation
docs: prepare v0.5.0 upgrade and release notes - #569
Conversation
|
Review completed for Generated by ChatGPT · Alter Ego |
Hanssen0-Alter-Ego
left a comment
There was a problem hiding this comment.
I found three places where the v0.5.0 instructions diverge from the current implementation or release workflow. Two independent passes reviewed adc75344f66995e040d362245a385f3fadc22530 against 209e8d2998994111ccc50bfaf9aae5c52ca41473. I checked the affected code paths, the pinned Changesets behavior, and 19 added relative links; I did not run a release or an FNN migration.
Generated by ChatGPT · Alter Ego
| changesets landed. Running `pnpm changeset version` with those pending minor changesets | ||
| would produce `0.6.0`. To release this batch as `0.5.0`, fold the remaining changeset | ||
| entries into the existing `0.5.0` changelog section and remove the consumed changesets | ||
| in the version PR while keeping `package.json` at `0.5.0`. Before tagging, run |
There was a problem hiding this comment.
[P2] Document how the version PR passes Changeset Check. This procedure updates CHANGELOG.md and deletes the pending changesets without adding a new one. The PR check runs changeset status --since=origin/<base>; the pinned CLI treats the changelog as a package change and excludes deleted changesets, so that version-only PR fails the check.
Suggested fix
Tell maintainers to apply the repository’s existing `skip-changeset` label to the version-only PR and consume the pending entries, including empty changesets, before the tag’s no-diff check. Don’t add a new placeholder changeset just to satisfy the PR check.| ## If you used a v0.5 canary | ||
|
|
||
| - FNN v0.9.0 replaces the release candidate as the only version OffCKB downloads. For a fresh environment, remove any saved RC version override from the startup command and set `offckb config set fnn-version 0.9.0` if you previously changed the default. Existing environments in the current format reuse their saved FNN path. | ||
| - Early Fiber canaries used `nodes[].config`. v0.5.0 requires a full per-node config referenced by `config_file` and has no automatic import of the old layout. Back up the old Fiber directory and initialize a new environment before reapplying custom configuration. See the [Fiber guide](fiber-devnet.md). |
There was a problem hiding this comment.
[P2] Move the legacy Fiber directory out of the active path before init. Copying it as a backup leaves the old nodes.yml in place, so readFiberManifest() still rejects nodes[].config. Removing only the YAML also leaves node directories that prepareFiberManifest() explicitly refuses to import or overwrite.
Suggested fix
After stopping FNN, tell users to move the entire `fiber` directory under `devnet.configPath` to a backup outside the active path. Then initialize against the running compatible devnet and reapply supported configuration; make clear that old identities and stores are not imported automatically.| | --- | --- | | ||
| | `offckb accounts` in scripts, logs or JSON consumers | Add `--hide-private-keys` to preserve the v0.4 default. Both output formats now include `privkey` for built-in test accounts by default. Mainnet forks still hide it unless you pass `--show-private-keys`. | | ||
| | A hard-coded path to the OffCKB-managed `ckb-debugger` | Run `offckb install ckb-debugger` and discover the registered binary via `offckb plugin which ckb-debugger` (add `--json` for structured output). A qualifying legacy binary can be adopted offline and its old directory removed after registration. | | ||
| | `offckb install ckb-debugger` to fetch the newest upstream release | The command is now an alias of `offckb plugin install ckb-debugger`. Catalog installs use the version pinned by OffCKB (`1.1.2` in v0.5.0), including `@latest`. The first unversioned install can retain a qualifying legacy version through adoption. | |
There was a problem hiding this comment.
[P3] The legacy debugger exception also applies to @latest and the pinned version. All accepted catalog spellings pass internal latest to installNativeTool(). On the first registration it can adopt a qualifying legacy binary instead of installing 1.1.2, even for ckb-debugger@1.1.2.
Suggested fix
Clarify the exception here and in the binary-tool guide. If adoption kept a different version, rerun the install after registration to select the catalog pin and verify the resulting executable version.
Hanssen0-Alter-Ego
left a comment
There was a problem hiding this comment.
One additional migration issue at the same reviewed head, confirmed against the early-canary link registration and the current native installer.
Generated by ChatGPT · Alter Ego
|
|
||
| - FNN v0.9.0 replaces the release candidate as the only version OffCKB downloads. For a fresh environment, remove any saved RC version override from the startup command and set `offckb config set fnn-version 0.9.0` if you previously changed the default. Existing environments in the current format reuse their saved FNN path. | ||
| - Early Fiber canaries used `nodes[].config`. v0.5.0 requires a full per-node config referenced by `config_file` and has no automatic import of the old layout. Back up the old Fiber directory and initialize a new environment before reapplying custom configuration. See the [Fiber guide](fiber-devnet.md). | ||
| - For binary tools, use `offckb plugin install <catalog-name>` or `offckb plugin install ./dir` with an `offckb-tool.json` and its executable. Use these install forms in place of early canary `tool:` sources, descriptor-file installs, or binary links. See the [current source matrix](plugins.md#what-to-type-in-one-table). |
There was a problem hiding this comment.
[P3] Unlink an existing canary binary before reinstalling the same command. The old plugin link registered those binaries in place without a managed binary record. The current installer refuses to take over that command until the existing link is removed, so switching to plugin install ./dir alone fails for an already-linked tool.
Suggested fix
For existing binary links, document `offckb plugin unlink ` before installing the descriptor directory or catalog tool. Unlinking removes the registration, not the local source files.|
Review completed for Generated by ChatGPT · Alter Ego |
Hanssen0-Alter-Ego
left a comment
There was a problem hiding this comment.
The fix delta at da58d7a9387c13db4c0a43019244e08d2f4e4c1f addresses the earlier release-check and unlink findings, and corrects the backup procedure and adoption description. I found two narrower issues in the new instructions: starting FNN after init, and the debugger pin on Intel macOS. Two independent passes reviewed the delta from adc75344f66995e040d362245a385f3fadc22530. I checked the changed links and used isolated command-path checks; no real migration or release was run.
Generated by ChatGPT · Alter Ego
| ## If you used a v0.5 canary | ||
|
|
||
| - FNN v0.9.0 replaces the release candidate as the only version OffCKB downloads. For a fresh environment, remove any saved RC version override from the startup command and set `offckb config set fnn-version 0.9.0` if you previously changed the default. Existing environments in the current format reuse their saved FNN path. | ||
| - Early Fiber canaries used `nodes[].config`. Stop all FNN processes, then move the entire `fiber` directory under `devnet.configPath` to a backup location outside that path. Find `devnet.configPath` with `offckb config list`. With a compatible plain devnet running, run `offckb fiber init` and reapply supported settings in the full per-node configs referenced by `config_file`. Initialization creates new node identities and starts with empty stores. The old identities and stores remain in the backup. See the [Fiber guide](fiber-devnet.md). |
There was a problem hiding this comment.
[P3] Start Fiber after editing the generated configuration. offckb fiber init prepares the environment but starts no FNN process. The Fiber network identity (fiber/sk) is generated by FNN on first start, not by init.
Suggested fix
End the migration with `offckb fiber start` after reapplying settings, and attribute the new network identities and initially empty stores to first startup.| binary under `tools.rootFolder/ckb-debugger/` that reports a version at or above the | ||
| catalog's adoption minimum (0.200.0). Adoption works offline and can remove the legacy | ||
| directory after registration succeeds. If adoption kept a different version and you need | ||
| the catalog pin, rerun `offckb plugin install ckb-debugger` and run the executable reported |
There was a problem hiding this comment.
[P3] Qualify the rerun instruction on Intel macOS. A first install can adopt a legacy executable even when the descriptor has no asset for that platform. On darwin-x64, rerunning skips adoption and returns “no binary for darwin/x64” rather than installing the pin.
Suggested fix
Qualify the rerun in both guides as applying to platforms with a catalog asset. On Intel macOS, retain the adopted version or use a compatible local build if you need 1.1.2.|
Review completed for Generated by ChatGPT · Alter Ego |
Hanssen0-Alter-Ego
left a comment
There was a problem hiding this comment.
The two previous issues are addressed: the migration now starts Fiber explicitly, and the catalog reinstall is limited to supported platforms. One small clarification remains for scripts that use the managed debugger path. Two independent source passes reviewed 6a2248a944d35970ba9388341ce5c8648b3b896b against da58d7a9387c13db4c0a43019244e08d2f4e4c1f. No Intel Mac or FNN runtime test was run.
Generated by ChatGPT · Alter Ego
| `offckb plugin install ckb-debugger` to install the pin. Run the executable reported by | ||
| `offckb plugin which ckb-debugger` with `--version` to verify it. Intel macOS | ||
| (`darwin-x64`) has no v1.1.2 asset in the v0.5.0 catalog. Keep the adopted executable | ||
| or put a compatible local build on PATH ahead of the managed shim if you need v1.1.2. |
There was a problem hiding this comment.
[P3] Distinguish the PATH workaround from plugin which. Putting a local build first on PATH works for a bare ckb-debugger invocation, but the offckb plugin which workflow documented just below still returns the registry path (the older adopted executable). A script that follows both instructions won’t pick up v1.1.2.
Suggested fix
For the PATH workaround, tell users to invoke and check `ckb-debugger --version` directly. Tell scripts that need an absolute path to use the local build’s path rather than the managed lookup.|
Review completed for Generated by ChatGPT · Alter Ego |
Hanssen0-Alter-Ego
left a comment
There was a problem hiding this comment.
LGTM for fdde8015f49ca5984a621bdf9e34ef83f6e27085 against 6a2248a944d35970ba9388341ce5c8648b3b896b. Two independent passes found no new issue in the documentation delta. The guide now distinguishes the PATH override from the managed path returned by plugin which, addressing the previous finding. I checked the migration link and exercised the resolver and managed lookup with mocks. No Intel macOS, FNN, or release run was performed.
Generated by ChatGPT · Alter Ego
Summary
accountsprivate-key default, native debugger adoption and catalog pinning, settings errors, Fiber cleanup and early canary changes.0.5.0changelog section. Changesets currently plans0.6.0from the pre-bumped0.5.0package version, so the release commit still needs to consume the pending entries.Validation
git diff --checkand changed Markdown links checked. After rebasing, 43 targeted CLI, native plugin and installer tests passed.