Skip to content

feat(mollusk): from_plan execution + cu-profiler-bench binary#10

Merged
MerlijnW70 merged 1 commit into
mainfrom
feat/mollusk-from-plan
Jun 21, 2026
Merged

feat(mollusk): from_plan execution + cu-profiler-bench binary#10
MerlijnW70 merged 1 commit into
mainfrom
feat/mollusk-from-plan

Conversation

@MerlijnW70

Copy link
Copy Markdown
Owner

Replaces the (auto-closed, stacked) #9 with a clean branch off main. Completes the turnkey real-CU path at the executor level.

What

  • MolluskBackend::from_plan(plan, program_name) — parse a BenchPlan's base58/hex fixtures into Solana Instruction/Account types and meter real compute units.
  • run_plan(plan, program_name) -> Report — plan → Mollusk-tagged report via the core Profiler.
  • A thin Linux-only cu-profiler-bench binary, which the main CLI's cu-profiler bench delegates to over PATH.

Invariant preserved

This is a separate binary in the detached cu-profiler-mollusk crate, not a feature-gated dependency of the main CLI — so the core/CLI stay Solana-free and Windows-buildable. Only the detached crate links the Solana stack.

Verification

Pure helpers (decode_hex, parse_pubkey) and an end-to-end demo test (run_plan meters the demo .so) cover it. The crate does not build on the local Windows gate (which stays grade A, unaffected); the Linux SBF CI job verifies it.

🤖 Generated with Claude Code

The detached cu-profiler-mollusk crate gains the executor the main CLI's
`bench` delegates to:

- `MolluskBackend::from_plan(plan, program_name)` parses a BenchPlan's
  base58/hex fixtures into solana Instruction/Account types and meters
  real compute units (fail-fast on malformed fixtures).
- `run_plan(plan, program_name) -> Report` ties that through the core
  Profiler into a Mollusk-tagged report.
- A thin Linux-only `cu-profiler-bench` binary (reads bench.toml, runs
  run_plan, renders the report).

Kept a *separate* binary in the detached crate rather than a feature-gated
CLI dependency, so the main CLI/core stay Solana-free and Windows-
buildable (the project invariant). pure helpers (decode_hex, parse_pubkey)
and an end-to-end demo test cover it. Verified by the Linux SBF CI job
(the crate does not build on the local Windows gate).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@MerlijnW70 MerlijnW70 merged commit bd030ff into main Jun 21, 2026
4 checks passed
@MerlijnW70 MerlijnW70 deleted the feat/mollusk-from-plan branch June 21, 2026 14:31
@MerlijnW70 MerlijnW70 mentioned this pull request Jun 21, 2026
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.

2 participants