Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@ go test -run TestLightweight -timeout 15m
End-to-end tests for the off-chain tree maintenance service.

```bash
# Using just (preferred, from forester/ directory):
just -f forester/justfile local # Run e2e test without rebuilding SBF programs
just -f forester/justfile test # Build SBF test deps first, then run e2e test

Comment on lines +180 to +183
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Fix the working-directory mismatch in the Forester just commands.

Line 180 says “from forester/ directory”, but Line 181 and Line 182 use -f forester/justfile, which is a repository-root invocation pattern.

🛠️ Suggested doc fix
-# Using just (preferred, from forester/ directory):
-just -f forester/justfile local          # Run e2e test without rebuilding SBF programs
-just -f forester/justfile test           # Build SBF test deps first, then run e2e test
+# Using just (preferred, from repository root):
+just -f forester/justfile local          # Run e2e test without rebuilding SBF programs
+just -f forester/justfile test           # Build SBF test deps first, then run e2e test
+
+# If already in forester/ directory:
+just local
+just test
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
# Using just (preferred, from forester/ directory):
just -f forester/justfile local # Run e2e test without rebuilding SBF programs
just -f forester/justfile test # Build SBF test deps first, then run e2e test
# Using just (preferred, from repository root):
just -f forester/justfile local # Run e2e test without rebuilding SBF programs
just -f forester/justfile test # Build SBF test deps first, then run e2e test
# If already in forester/ directory:
just local
just test
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@CLAUDE.md` around lines 180 - 183, The documentation header claiming "from
forester/ directory" doesn't match the commands which use "-f forester/justfile"
(repo-root style); either remove the "-f forester/justfile" flags from the two
commands so they run from the forester/ directory (e.g., "just local" and "just
test") or change the header to say "from repository root" to match the existing
"just -f forester/justfile local" and "just -f forester/justfile test"
invocations—update the text and commands around the Forester just examples
accordingly.

# Or directly:
TEST_MODE=local cargo test --package forester e2e_test -- --nocapture
```
Comment on lines +184 to 186
Copy link
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick | 🔵 Trivial

Add a TEST_MODE=devnet Forester e2e example next to local mode.

This section currently documents only local mode; adding devnet keeps the test entrypoints complete for both supported environments.

🧪 Suggested addition
 # Or directly:
 TEST_MODE=local cargo test --package forester e2e_test -- --nocapture
+TEST_MODE=devnet cargo test --package forester e2e_test -- --nocapture

Based on learnings: "Run E2E tests with TEST_MODE=local cargo test for local validator testing or TEST_MODE=devnet for devnet testing".

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
# Or directly:
TEST_MODE=local cargo test --package forester e2e_test -- --nocapture
```
# Or directly:
TEST_MODE=local cargo test --package forester e2e_test -- --nocapture
TEST_MODE=devnet cargo test --package forester e2e_test -- --nocapture
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@CLAUDE.md` around lines 184 - 186, Add a second example invocation for
running Forester e2e tests in devnet mode next to the existing local-mode
example; locate the existing line "TEST_MODE=local cargo test --package forester
e2e_test -- --nocapture" and add a sibling example "TEST_MODE=devnet cargo test
--package forester e2e_test -- --nocapture" (preserving the same flags and
context) so both TEST_MODE=local and TEST_MODE=devnet are documented.


Expand Down
Loading
Loading