Skip to content

build(verify): add verify-local recipe for program-only build#143

Merged
dev-jodee merged 1 commit into
mainfrom
fix/verify-local-build
May 29, 2026
Merged

build(verify): add verify-local recipe for program-only build#143
dev-jodee merged 1 commit into
mainfrom
fix/verify-local-build

Conversation

@dev-jodee
Copy link
Copy Markdown
Collaborator

Summary

  • Add just verify-local for a local verifiable build of the program library only.
  • Scopes solana-verify build to --library-name subscriptions_program. A bare solana-verify build mounts the workspace root and SBF-compiles every member; tests/integration-tests and clients/rust pull getrandom 0.2.17, which has no target_os = "solana" backend and fails cargo build-sbf with "target is not supported". CI passes because just build runs cd program && cargo build-sbf (program crate only).

Test Plan

  • DOCKER_DEFAULT_PLATFORM=linux/amd64 just verify-local → builds the program lib, no getrandom error (verified locally; produced program hash).

@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
solana-subscriptions-program Ready Ready Preview, Comment May 29, 2026 6:08pm

Request Review

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 29, 2026

Compute Unit Report

Instruction Samples Min CUs Max CUs Avg CUs Est Cost (Low) [SOL] Est Cost (Med) [SOL] Est Cost (High) [SOL]
cancel_subscription 22 1720 2030 1919 0.000005000 0.000005076 0.000005959
close_subscription_authority 10 1803 1833 1806 0.000005000 0.000005072 0.000005903
create_fixed_delegation 41 3517 15522 5338 0.000005001 0.000005213 0.000007669
create_plan 97 3436 9449 4923 0.000005001 0.000005196 0.000007461
create_recurring_delegation 29 3550 11055 5574 0.000005001 0.000005222 0.000007787
delete_plan 9 359 359 359 0.000005000 0.000005014 0.000005179
init_subscription_authority 173 6226 19595 9178 0.000005002 0.000005367 0.000009589
resume_subscription 3 1723 1723 1723 0.000005000 0.000005068 0.000005861
revoke_delegation 19 255 519 353 0.000005000 0.000005014 0.000005176
subscribe 32 6485 13985 8273 0.000005002 0.000005330 0.000009136
transfer_fixed 9 5479 11479 7864 0.000005002 0.000005314 0.000008932
transfer_recurring 19 5591 11591 7303 0.000005002 0.000005292 0.000008651
transfer_subscription 10 5799 14838 7493 0.000005002 0.000005299 0.000008746
update_plan 22 424 503 477 0.000005000 0.000005019 0.000005238

Generated: 2026-05-29

Bare `solana-verify build` SBF-compiles the whole workspace; clients/tests pull getrandom 0.2.17 which has no target_os="solana" backend and fails cargo build-sbf. Scope to the program lib via --library-name.
@dev-jodee dev-jodee force-pushed the fix/verify-local-build branch from 099376e to 17c1afc Compare May 29, 2026 18:07
@dev-jodee dev-jodee merged commit 735d0f2 into main May 29, 2026
12 of 13 checks passed
@dev-jodee dev-jodee deleted the fix/verify-local-build branch May 29, 2026 18:08
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