Skip to content

ci: add integration tests for write-program-buffer#2

Open
sparten11740 wants to merge 7 commits into
mainfrom
sparten11740/ci/integration-test
Open

ci: add integration tests for write-program-buffer#2
sparten11740 wants to merge 7 commits into
mainfrom
sparten11740/ci/integration-test

Conversation

@sparten11740

Copy link
Copy Markdown
Collaborator

No description provided.

Three prebuilt SBF binaries for the integration tests: small (544 B),
big (4,680 B, delta 4,136 for the SIMD-0431 clamp scenario), and huge
(10,482,400 B unpacked, gzipped to 10 KB) for the near-max scenario.
Built once with cargo-build-sbf --arch v3 and deploy-verified against
a local all-features validator; README documents regeneration.
…cenario

The integration workflow boots a local test validator per matrix cell
(solana 3.1.14 and 4.1.2 via setup-all) and runs the action against it.
The fresh path asserts the buffer contents match the artifact, the
authority stays with the deployer, and no resize or transfer happens.
…ction

Consumer repos and this repo's own integration tests share the same
need: boot a local test validator and wait for health. The action
exposes rpc-url and ledger-dir outputs; the test workflow now consumes
it instead of a scenario-local script.
Each scenario becomes its own matrix cell alongside the solana version,
giving per-scenario check reporting and full isolation. A shared output
contract on the prepare scripts (keypair, deployer, program-id,
buffer-authority, pre-len) keeps the action invocation scenario-agnostic.
Deploys the small fixture, grows the artifact by 4,136 bytes, and
asserts the programdata account grew by exactly 10,240 bytes - the
minimum extend size the clamp must produce. Also verifies the buffer
contents match the grown artifact.
Deploys the small fixture and hands the action a third keypair as
buffer-authority-address. Asserts the buffer's on-chain authority
equals that address and no longer equals the deployer - the handoff
the Squads flow depends on.
Extends a deployed program to within 5,315 bytes of the 10 MiB cap,
then runs the action with the padded 10,482,400-byte artifact. The
action must extend by exactly the remaining headroom - the SIMD-0431
carve-out where the 10 KiB minimum does not apply - landing the
account at precisely 10,485,760 bytes. The setup extend retries across
block boundaries since the loader rejects two extends of the same
program in one block.
@sparten11740 sparten11740 self-assigned this Jul 17, 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.

1 participant