Skip to content

ci: fix client publishing and release buffers#84

Merged
dev-jodee merged 3 commits into
mainfrom
ci/fix-subscriptions-client-publishing
May 15, 2026
Merged

ci: fix client publishing and release buffers#84
dev-jodee merged 3 commits into
mainfrom
ci/fix-subscriptions-client-publishing

Conversation

@dev-jodee
Copy link
Copy Markdown
Collaborator

@dev-jodee dev-jodee commented May 15, 2026

Summary

  • Rename the Rust client crate to subscriptions and the program crate to subscriptions-program
  • Harden the Rust publishing workflow with release tests, generated clients, crate dry-run, and trusted publisher token handling
  • Package generated Rust client sources and update docs, including the Pinocchio repository link
  • Change mainnet release CI to stop at Squads-owned program and IDL buffers, without requiring the Doppler keypair to be a Squads member
  • Keep the program lib target name as subscriptions so cargo build-sbf still emits target/deploy/subscriptions.so

Test Plan

  • cargo fmt -p subscriptions-program -p tests-subscriptions --check
  • cargo check -p subscriptions-program --locked
  • cargo check -p subscriptions --locked
  • cargo check -p tests-subscriptions --locked
  • cargo build-sbf from program/
  • cargo test -p tests-subscriptions
  • CU_REPORT=1 CU_REPORT_DATE=2026-05-15 cargo test -p tests-subscriptions
  • cargo publish --dry-run --manifest-path clients/rust/Cargo.toml --locked --allow-dirty
  • pnpm exec prettier --check .github/workflows/publish-rust.yml README.md CLAUDE.md
  • pnpm exec prettier --check .github/workflows/release.yml docs/004-program-upgrade-mechanism.md
  • YAML parse check for publishing and release workflows
  • pre-push hook: format check and lint check

Configure Rust client publishing to package generated sources and use the subscriptions crate name while keeping the program crate as subscriptions-program.
@dev-jodee dev-jodee requested a review from amilz May 15, 2026 15:24
amilz
amilz previously approved these changes May 15, 2026
Stop mainnet releases at Squads-owned buffers so the Doppler keypair only writes buffers and does not need Squads membership.
@dev-jodee dev-jodee changed the title ci: fix subscriptions client publishing ci: fix client publishing and release buffers May 15, 2026
Pin the program lib target to subscriptions so build-sbf continues emitting target/deploy/subscriptions.so after the package rename.
@github-actions
Copy link
Copy Markdown

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 11 1805 2118 2003 0.000005000 0.000005080 0.000006001
close_subscription_authority 7 1881 1916 1886 0.000005000 0.000005075 0.000005943
create_fixed_delegation 38 3619 9621 5190 0.000005001 0.000005207 0.000007595
create_plan 84 3540 11053 4811 0.000005001 0.000005192 0.000007405
create_recurring_delegation 27 3645 12645 6146 0.000005001 0.000005245 0.000008073
delete_plan 8 416 416 416 0.000005000 0.000005016 0.000005208
init_subscription_authority 142 7849 19851 11835 0.000005003 0.000005473 0.000010917
revoke_delegation 19 318 585 420 0.000005000 0.000005016 0.000005210
subscribe 21 6666 12666 7890 0.000005002 0.000005315 0.000008945
transfer_fixed 6 10102 14605 11354 0.000005003 0.000005454 0.000010677
transfer_recurring 17 10212 17799 11748 0.000005003 0.000005469 0.000010874
transfer_subscription 10 10446 13495 11850 0.000005003 0.000005474 0.000010925
update_plan 21 424 500 474 0.000005000 0.000005018 0.000005237

Generated: 2026-05-15

@dev-jodee dev-jodee merged commit dffda20 into main May 15, 2026
8 checks passed
@dev-jodee dev-jodee deleted the ci/fix-subscriptions-client-publishing branch May 15, 2026 15:47
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