Skip to content

build: dockerize the program build and test suite - #1

Merged
karl-dz merged 4 commits into
mainfrom
docker-build
Sep 3, 2026
Merged

build: dockerize the program build and test suite#1
karl-dz merged 4 commits into
mainfrom
docker-build

Conversation

@karl-dz

@karl-dz karl-dz commented Sep 3, 2026

Copy link
Copy Markdown

Summary

  • Build the program in Docker via make build, so no Solana toolchain, Anchor CLI, or avm is needed on the host
  • Run the test suite via make test against a containerized solana-test-validator, replacing anchor test
  • Set --ticks-per-slot 16 for 100ms slots, taking the suite from roughly fifteen minutes to a few minutes
  • Replace the Tests workflow, which installed Anchor 0.29.0 and Solana 1.18.16 against a tree needing 0.32 and 2.2
  • Stop the TypeScript build depending on solita codegen, which regenerates committed files and empties the IDL directory when it fails
  • Replace the README build instructions, which pinned agave-install 1.18.16 and avm use 0.29.0

Testing

  • make build from a clean checkout, and a second run fully served from cache
  • make test: 163 passing, 12 pending, 0 failing, in 56s
  • make build and make build-testing producing different binaries

@karl-dz
karl-dz enabled auto-merge (squash) September 3, 2026 18:19
@karl-dz
karl-dz marked this pull request as draft September 3, 2026 19:14
auto-merge was automatically disabled September 3, 2026 19:14

Pull request was converted to draft

@karl-dz karl-dz changed the title build: add cached docker program build build: dockerize the program build and test suite Sep 3, 2026
@karl-dz
karl-dz marked this pull request as ready for review September 3, 2026 20:13
@karl-dz
karl-dz requested a review from a team September 3, 2026 20:13
@karl-dz
karl-dz enabled auto-merge (squash) September 3, 2026 20:14
@karl-dz
karl-dz disabled auto-merge September 3, 2026 20:48
@karl-dz
karl-dz merged commit 2ff3e1f into main Sep 3, 2026
2 checks passed
@karl-dz
karl-dz deleted the docker-build branch September 3, 2026 21:16
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