Skip to content

YNU-899: remove obsolete files#682

Open
philanton wants to merge 1 commit intomainfrom
fix/remove-obsoletes
Open

YNU-899: remove obsolete files#682
philanton wants to merge 1 commit intomainfrom
fix/remove-obsoletes

Conversation

@philanton
Copy link
Copy Markdown
Contributor

@philanton philanton commented Apr 13, 2026

Summary by CodeRabbit

  • New Features

    • Cerebro REPL exposes a unified config hierarchy and new commands like approve and token-balance.
  • Documentation

    • Updated CLI branding, command reference, examples, and REPL wording; removed Docker Compose quick-start and related example docs.
  • Chores

    • Rebranded from “Clearnode CLI” to “Cerebro”; default config storage path moved to a Cerebro location with legacy-compatibility warning.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 13, 2026

📝 Walkthrough

Walkthrough

This PR renames and rebrands the CLI to "Cerebro", updates CLI docs and branding, changes config directory defaults with legacy detection, removes Docker Compose and deployment/init scripts, deletes Helm chart config/templates, and removes the entire integration test suite and its supporting fixtures.

Changes

Cohort / File(s) Summary
Top-level docs
README.md
Rename CLI references to "Cerebro", update build/run examples, remove Docker Compose quick-start section.
Cerebro docs & CLI
cerebro/README.md, cerebro/commands.go, cerebro/main.go
Rewrite Cerebro README (command hierarchy, prompts, config paths), adjust help/banner/prompt branding, and change config-dir resolution to prefer ~/.config/cerebro while warning/using legacy ~/.config/clearnode-cli if present.
Helm chart docs
clearnode/chart/README.md, clearnode/chart/README.md.gotmpl
Update chart README content (new keys, image defaults, networking/probes); delete the templated README (.gotmpl).
Helm chart configs (deleted)
clearnode/chart/config/{prod,sandbox}/*
Remove production and sandbox chart config YAMLs: action_gateway.yaml, assets.yaml, blockchains.yaml, clearnode.yaml, secrets.yaml.
Compose & Docker (deleted)
clearnode/docker-compose.yml, docker-compose.yml, clearnode/config/compose/..., clearnode/scripts/{auto_tag.sh,db-init.sh,seed-tokens.sh}
Delete Docker Compose files, example compose configs, and orchestration/DB init and token-seed scripts.
Integration tests & helpers (deleted)
test/integration/...
Remove entire integration test suite, test config (jest/tsconfig/package.json), and all helper modules (*.ts helpers, websockets, clients, fixtures, and individual test files).
Misc examples
clearnode/config/compose/example/.env, clearnode/config/compose/example/*
Removed example env and example compose asset/blockchain files.
.gitignore / README removals
test/integration/.gitignore, test/integration/README.md
Delete integration .gitignore and README.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Possibly related PRs

Suggested labels

ready

Suggested reviewers

  • ihsraham
  • nksazonov
  • dimast-x

Poem

🐇 I hopped through docs and changed the name with glee,
I nudged the config path from old to new for thee,
I tucked away Compose and tests for tidy peace,
Now Cerebro hums — the README's neatly at ease,
— your rabbit celebrant, nibbling code with glee.

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title 'YNU-899: remove obsolete files' is directly related to the changeset, which consists almost entirely of deletions of obsolete integration test infrastructure, configuration files, and Docker Compose setups that are no longer needed.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/remove-obsoletes

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@cerebro/README.md`:
- Line 46: The README contains multiple unlabeled fenced code blocks (the blocks
showing command listings like the one starting with "config", the "token-balance
<chain_id> <asset>" block, the "ping" block, the "app-info <app_id>" block, the
"security-token approve <chain_id> <amount>" block, the final "help / exit"
block, and the project tree block beginning "cerebro/") that trigger
markdownlint MD040; fix by adding a language label (e.g., "text") immediately
after each opening ``` so each of those fences is ```text to satisfy the linter
while preserving content.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 57851b5e-86de-4cc7-bec4-8457bce79592

📥 Commits

Reviewing files that changed from the base of the PR and between f75f5ec and 9214ee1.

⛔ Files ignored due to path filters (1)
  • test/integration/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (55)
  • README.md
  • cerebro/README.md
  • cerebro/commands.go
  • cerebro/main.go
  • clearnode/chart/README.md
  • clearnode/chart/README.md.gotmpl
  • clearnode/chart/config/prod/action_gateway.yaml
  • clearnode/chart/config/prod/assets.yaml
  • clearnode/chart/config/prod/blockchains.yaml
  • clearnode/chart/config/prod/clearnode.yaml
  • clearnode/chart/config/prod/secrets.yaml
  • clearnode/chart/config/sandbox/action_gateway.yaml
  • clearnode/chart/config/sandbox/assets.yaml
  • clearnode/chart/config/sandbox/blockchains.yaml
  • clearnode/chart/config/sandbox/clearnode.yaml
  • clearnode/chart/config/sandbox/secrets.yaml
  • clearnode/config/compose/example/.env
  • clearnode/config/compose/example/assets.yaml
  • clearnode/config/compose/example/blockchains.yaml
  • clearnode/config/compose/integration/.env
  • clearnode/config/compose/integration/assets.yaml
  • clearnode/config/compose/integration/blockchains.yaml
  • clearnode/docker-compose.yml
  • clearnode/scripts/auto_tag.sh
  • clearnode/scripts/db-init.sh
  • clearnode/scripts/seed-tokens.sh
  • docker-compose.yml
  • docs/legacy/API.md
  • docs/legacy/Clearnode.protocol.md
  • docs/legacy/Entities.md
  • docs/legacy/SessionKeys.md
  • test/integration/.gitignore
  • test/integration/README.md
  • test/integration/common/auth.ts
  • test/integration/common/blockchainUtils.ts
  • test/integration/common/databaseUtils.ts
  • test/integration/common/identity.ts
  • test/integration/common/nitroliteClient.ts
  • test/integration/common/setup.ts
  • test/integration/common/testAppSessionHelpers.ts
  • test/integration/common/testHelpers.ts
  • test/integration/common/testSetup.ts
  • test/integration/common/ws.ts
  • test/integration/jest.config.js
  • test/integration/package.json
  • test/integration/tests/challenge_channel.test.ts
  • test/integration/tests/clearnode_auth.test.ts
  • test/integration/tests/close_channel.test.ts
  • test/integration/tests/create_channel.test.ts
  • test/integration/tests/ledger_transactions.test.ts
  • test/integration/tests/lifecycle_nitrorpc_v04.test.ts
  • test/integration/tests/nitrorpc_v04.test.ts
  • test/integration/tests/session_key.test.ts
  • test/integration/tests/transfer.test.ts
  • test/integration/tsconfig.json
💤 Files with no reviewable changes (46)
  • clearnode/config/compose/example/.env
  • clearnode/config/compose/integration/.env
  • clearnode/chart/config/sandbox/secrets.yaml
  • clearnode/chart/config/sandbox/action_gateway.yaml
  • clearnode/config/compose/example/assets.yaml
  • clearnode/chart/README.md.gotmpl
  • test/integration/tsconfig.json
  • clearnode/config/compose/integration/assets.yaml
  • clearnode/config/compose/integration/blockchains.yaml
  • test/integration/README.md
  • clearnode/chart/config/prod/action_gateway.yaml
  • clearnode/docker-compose.yml
  • clearnode/chart/config/prod/assets.yaml
  • clearnode/chart/config/prod/secrets.yaml
  • clearnode/chart/config/prod/clearnode.yaml
  • test/integration/tests/nitrorpc_v04.test.ts
  • test/integration/.gitignore
  • clearnode/scripts/auto_tag.sh
  • clearnode/chart/config/sandbox/clearnode.yaml
  • test/integration/common/identity.ts
  • clearnode/chart/config/sandbox/blockchains.yaml
  • clearnode/chart/config/prod/blockchains.yaml
  • test/integration/tests/close_channel.test.ts
  • clearnode/chart/config/sandbox/assets.yaml
  • test/integration/common/auth.ts
  • test/integration/tests/challenge_channel.test.ts
  • test/integration/tests/clearnode_auth.test.ts
  • clearnode/config/compose/example/blockchains.yaml
  • clearnode/scripts/db-init.sh
  • test/integration/common/testHelpers.ts
  • test/integration/tests/transfer.test.ts
  • test/integration/tests/lifecycle_nitrorpc_v04.test.ts
  • test/integration/package.json
  • test/integration/jest.config.js
  • test/integration/common/setup.ts
  • test/integration/tests/session_key.test.ts
  • clearnode/scripts/seed-tokens.sh
  • test/integration/tests/create_channel.test.ts
  • test/integration/common/testAppSessionHelpers.ts
  • test/integration/common/testSetup.ts
  • test/integration/tests/ledger_transactions.test.ts
  • test/integration/common/nitroliteClient.ts
  • test/integration/common/blockchainUtils.ts
  • test/integration/common/ws.ts
  • docker-compose.yml
  • test/integration/common/databaseUtils.ts

@philanton philanton force-pushed the fix/remove-obsoletes branch from 9214ee1 to 9278297 Compare April 13, 2026 13:22
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@clearnode/chart/README.md`:
- Line 20: Update the Helm chart example URLs in clearnode/chart/README.md so
they point to this repository/org instead of erc7824; specifically replace the
example command string "helm install my-release
git+https://github.com/erc7824/nitrolite@clearnode/chart?ref=main" (and the
duplicate at the other occurrence) to use the correct GitHub org/repo
(layer-3/nitrolite) so the install/upgrade examples reference this project’s
chart source.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 4e1fac57-21e8-4343-8044-abdff99687af

📥 Commits

Reviewing files that changed from the base of the PR and between 9214ee1 and 9278297.

⛔ Files ignored due to path filters (1)
  • test/integration/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (55)
  • README.md
  • cerebro/README.md
  • cerebro/commands.go
  • cerebro/main.go
  • clearnode/chart/README.md
  • clearnode/chart/README.md.gotmpl
  • clearnode/chart/config/prod/action_gateway.yaml
  • clearnode/chart/config/prod/assets.yaml
  • clearnode/chart/config/prod/blockchains.yaml
  • clearnode/chart/config/prod/clearnode.yaml
  • clearnode/chart/config/prod/secrets.yaml
  • clearnode/chart/config/sandbox/action_gateway.yaml
  • clearnode/chart/config/sandbox/assets.yaml
  • clearnode/chart/config/sandbox/blockchains.yaml
  • clearnode/chart/config/sandbox/clearnode.yaml
  • clearnode/chart/config/sandbox/secrets.yaml
  • clearnode/config/compose/example/.env
  • clearnode/config/compose/example/assets.yaml
  • clearnode/config/compose/example/blockchains.yaml
  • clearnode/config/compose/integration/.env
  • clearnode/config/compose/integration/assets.yaml
  • clearnode/config/compose/integration/blockchains.yaml
  • clearnode/docker-compose.yml
  • clearnode/scripts/auto_tag.sh
  • clearnode/scripts/db-init.sh
  • clearnode/scripts/seed-tokens.sh
  • docker-compose.yml
  • docs/legacy/API.md
  • docs/legacy/Clearnode.protocol.md
  • docs/legacy/Entities.md
  • docs/legacy/SessionKeys.md
  • test/integration/.gitignore
  • test/integration/README.md
  • test/integration/common/auth.ts
  • test/integration/common/blockchainUtils.ts
  • test/integration/common/databaseUtils.ts
  • test/integration/common/identity.ts
  • test/integration/common/nitroliteClient.ts
  • test/integration/common/setup.ts
  • test/integration/common/testAppSessionHelpers.ts
  • test/integration/common/testHelpers.ts
  • test/integration/common/testSetup.ts
  • test/integration/common/ws.ts
  • test/integration/jest.config.js
  • test/integration/package.json
  • test/integration/tests/challenge_channel.test.ts
  • test/integration/tests/clearnode_auth.test.ts
  • test/integration/tests/close_channel.test.ts
  • test/integration/tests/create_channel.test.ts
  • test/integration/tests/ledger_transactions.test.ts
  • test/integration/tests/lifecycle_nitrorpc_v04.test.ts
  • test/integration/tests/nitrorpc_v04.test.ts
  • test/integration/tests/session_key.test.ts
  • test/integration/tests/transfer.test.ts
  • test/integration/tsconfig.json
💤 Files with no reviewable changes (46)
  • clearnode/config/compose/example/.env
  • clearnode/config/compose/integration/.env
  • clearnode/config/compose/integration/assets.yaml
  • clearnode/chart/config/sandbox/secrets.yaml
  • clearnode/config/compose/example/blockchains.yaml
  • clearnode/chart/config/prod/action_gateway.yaml
  • clearnode/chart/config/prod/assets.yaml
  • clearnode/config/compose/example/assets.yaml
  • clearnode/chart/config/prod/clearnode.yaml
  • test/integration/tsconfig.json
  • clearnode/chart/config/sandbox/blockchains.yaml
  • clearnode/scripts/auto_tag.sh
  • test/integration/common/setup.ts
  • clearnode/chart/config/prod/blockchains.yaml
  • clearnode/scripts/db-init.sh
  • clearnode/chart/config/sandbox/clearnode.yaml
  • test/integration/common/identity.ts
  • clearnode/chart/config/sandbox/action_gateway.yaml
  • clearnode/chart/config/prod/secrets.yaml
  • test/integration/package.json
  • clearnode/config/compose/integration/blockchains.yaml
  • test/integration/.gitignore
  • clearnode/chart/README.md.gotmpl
  • test/integration/tests/nitrorpc_v04.test.ts
  • test/integration/README.md
  • clearnode/scripts/seed-tokens.sh
  • test/integration/common/auth.ts
  • clearnode/chart/config/sandbox/assets.yaml
  • test/integration/tests/clearnode_auth.test.ts
  • test/integration/tests/challenge_channel.test.ts
  • clearnode/docker-compose.yml
  • test/integration/tests/ledger_transactions.test.ts
  • test/integration/tests/lifecycle_nitrorpc_v04.test.ts
  • test/integration/common/testSetup.ts
  • test/integration/tests/session_key.test.ts
  • test/integration/tests/create_channel.test.ts
  • test/integration/common/testHelpers.ts
  • test/integration/jest.config.js
  • docker-compose.yml
  • test/integration/common/testAppSessionHelpers.ts
  • test/integration/tests/transfer.test.ts
  • test/integration/common/databaseUtils.ts
  • test/integration/common/blockchainUtils.ts
  • test/integration/tests/close_channel.test.ts
  • test/integration/common/ws.ts
  • test/integration/common/nitroliteClient.ts
✅ Files skipped from review due to trivial changes (2)
  • cerebro/commands.go
  • README.md
🚧 Files skipped from review as they are similar to previous changes (2)
  • cerebro/main.go
  • cerebro/README.md

To install the chart with the release name `my-release`:
```bash
helm install my-release git+https://github.com/layer-3/clearnode@chart?ref=main
helm install my-release git+https://github.com/erc7824/nitrolite@clearnode/chart?ref=main
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Fix chart source URL to this repository/org.

The install/upgrade examples now point to erc7824/nitrolite, which appears inconsistent with this project repository (layer-3/nitrolite). This can send users to the wrong chart source and break installation guidance.

Proposed doc fix
-helm install my-release git+https://github.com/erc7824/nitrolite@clearnode/chart?ref=main
+helm install my-release git+https://github.com/layer-3/nitrolite@clearnode/chart?ref=main
-helm upgrade --install my-release git+https://github.com/erc7824/nitrolite@clearnode/chart?ref=main \
+helm upgrade --install my-release git+https://github.com/layer-3/nitrolite@clearnode/chart?ref=main \

Also applies to: 132-132

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@clearnode/chart/README.md` at line 20, Update the Helm chart example URLs in
clearnode/chart/README.md so they point to this repository/org instead of
erc7824; specifically replace the example command string "helm install
my-release git+https://github.com/erc7824/nitrolite@clearnode/chart?ref=main"
(and the duplicate at the other occurrence) to use the correct GitHub org/repo
(layer-3/nitrolite) so the install/upgrade examples reference this project’s
chart source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant