Skip to content

feat(cli): add surfpool config and integration#3

Merged
MicaiahReid merged 44 commits intomasterfrom
refactor/surfpool-cli
Oct 24, 2025
Merged

feat(cli): add surfpool config and integration#3
MicaiahReid merged 44 commits intomasterfrom
refactor/surfpool-cli

Conversation

@BretasArthur1
Copy link
Copy Markdown

No description provided.

@BretasArthur1 BretasArthur1 marked this pull request as draft September 25, 2025 15:47
@BretasArthur1 BretasArthur1 marked this pull request as ready for review September 25, 2025 21:31
Copy link
Copy Markdown
Member

@lgalabru lgalabru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ship it!

@BretasArthur1
Copy link
Copy Markdown
Author

nicee

BretasArthur1 and others added 18 commits October 14, 2025 17:09
…ent handling

- Removed the SurfpoolConfig struct and related logic, simplifying the ValidatorType enum.
- Updated the command processing to accept additional arguments for the validator.
- Adjusted the localnet and test functions to handle Surfpool and Solana validators more effectively.
- Improved logging management for Surfpool validator.
- Added support for additional arguments to be passed to the test runner and validator.
- Updated command definitions to include `--args` and `--validator-args` options.
- Improved handling of validator arguments in the `test` and `localnet` functions.
- Ensured proper routing of arguments to Surfpool when no explicit validator arguments are provided.
…he program then run the tests against the local environment
…he runbooks serialization struct to make a more robust verification when waiting for runbooks
@MicaiahReid MicaiahReid force-pushed the refactor/surfpool-cli branch from 771d74c to 59a3b1e Compare October 14, 2025 21:10
@BretasArthur1
Copy link
Copy Markdown
Author

What's blocking this one @MicaiahReid ?

@MicaiahReid MicaiahReid merged commit 4aad047 into master Oct 24, 2025
49 of 53 checks passed
MicaiahReid added a commit that referenced this pull request Dec 3, 2025
* wip

* refactor: Simplify Surfpool configuration and enhance validator argument handling

- Removed the SurfpoolConfig struct and related logic, simplifying the ValidatorType enum.
- Updated the command processing to accept additional arguments for the validator.
- Adjusted the localnet and test functions to handle Surfpool and Solana validators more effectively.
- Improved logging management for Surfpool validator.

* feat(cli): Enhance argument handling for Surfpool validator

- Added support for additional arguments to be passed to the test runner and validator.
- Updated command definitions to include `--args` and `--validator-args` options.
- Improved handling of validator arguments in the `test` and `localnet` functions.
- Ensured proper routing of arguments to Surfpool when no explicit validator arguments are provided.

* refactor(cli): Update ValidatorType enum and streamline argument handling

* feat(cli): Introduce Surfpool configuration with validator integration

* feat(cli): enable tui startup to localnet and fix some typos

* feat(cli):  add runbooks startup check to wait for the deployment of the program then run the tests against the local environment

* chore: remove debug print

* refactor(cli): change flags to be compatible with surfpool cli, add the runbooks serialization struct to make a more robust verification when waiting for runbooks

* fix(cli): Improve runbook execution handling to consider failures as completed

* clean up runbook execution checking logic

* augment surfpool config fields

* remove `SURFPOOL_RPC_URL` const

* `remote_rpc_url` -> `datasource_rpc_url`

* use `DEFAULT_RPC_PORT` const

* fix surfpool command

* add/use workflow to install surfpool

* specify surfpool cli version for CI

* disable surfpool logs by default; allow configuring in anchor.toml

* add timeout_minutes to setup surfpool

* clean up action

* allow too many arguments for localnet fn

* bump surfpool version for CI

* start surfpool instead of validator in ci

* update run-test.sh

* fix setup-surfpool cache

* add `.surfpool` folder to gitignore for `anchor init`

* fix: apply `--offline` flag by default for surfpool

* only print message about surfpool logs if logs created

* feat: add block production mode to Surfpool configuration

* bump surfpool versions in CI

* feat: add block production mode to surfpool config for ido-pool test

* feat: add sleep functionality to log tests for improved reliability

* fix: update program log messages to use dynamic identifiers for better clarity

* fix: skip mut error test until LiteSVM issue is resolved

* fix: update surfpool CLI version to 0.11.2 in workflow files

* fix: refactor testValidateAssociatedToken calls to use confirmed commitment

* fix: add surfpool block production mode configuration for errors test

* fix: start surfpool in daemon mode for client/example test

* fix: add block production mode configuration for surfpool for misc

* lint

* fix: add setup step for surfpool in reusable tests workflow

* add sleep in run-test.sh to execute runbooks

* disable check_surfpool call in run-test.sh

---------

Co-authored-by: MicaiahReid <micaiahreid@gmail.com>
MicaiahReid added a commit that referenced this pull request Dec 19, 2025
…mands (solana-foundation#4106)

* feat(cli): add surfpool config and integration (#3)

* wip

* refactor: Simplify Surfpool configuration and enhance validator argument handling

- Removed the SurfpoolConfig struct and related logic, simplifying the ValidatorType enum.
- Updated the command processing to accept additional arguments for the validator.
- Adjusted the localnet and test functions to handle Surfpool and Solana validators more effectively.
- Improved logging management for Surfpool validator.

* feat(cli): Enhance argument handling for Surfpool validator

- Added support for additional arguments to be passed to the test runner and validator.
- Updated command definitions to include `--args` and `--validator-args` options.
- Improved handling of validator arguments in the `test` and `localnet` functions.
- Ensured proper routing of arguments to Surfpool when no explicit validator arguments are provided.

* refactor(cli): Update ValidatorType enum and streamline argument handling

* feat(cli): Introduce Surfpool configuration with validator integration

* feat(cli): enable tui startup to localnet and fix some typos

* feat(cli):  add runbooks startup check to wait for the deployment of the program then run the tests against the local environment

* chore: remove debug print

* refactor(cli): change flags to be compatible with surfpool cli, add the runbooks serialization struct to make a more robust verification when waiting for runbooks

* fix(cli): Improve runbook execution handling to consider failures as completed

* clean up runbook execution checking logic

* augment surfpool config fields

* remove `SURFPOOL_RPC_URL` const

* `remote_rpc_url` -> `datasource_rpc_url`

* use `DEFAULT_RPC_PORT` const

* fix surfpool command

* add/use workflow to install surfpool

* specify surfpool cli version for CI

* disable surfpool logs by default; allow configuring in anchor.toml

* add timeout_minutes to setup surfpool

* clean up action

* allow too many arguments for localnet fn

* bump surfpool version for CI

* start surfpool instead of validator in ci

* update run-test.sh

* fix setup-surfpool cache

* add `.surfpool` folder to gitignore for `anchor init`

* fix: apply `--offline` flag by default for surfpool

* only print message about surfpool logs if logs created

* feat: add block production mode to Surfpool configuration

* bump surfpool versions in CI

* feat: add block production mode to surfpool config for ido-pool test

* feat: add sleep functionality to log tests for improved reliability

* fix: update program log messages to use dynamic identifiers for better clarity

* fix: skip mut error test until LiteSVM issue is resolved

* fix: update surfpool CLI version to 0.11.2 in workflow files

* fix: refactor testValidateAssociatedToken calls to use confirmed commitment

* fix: add surfpool block production mode configuration for errors test

* fix: start surfpool in daemon mode for client/example test

* fix: add block production mode configuration for surfpool for misc

* lint

* fix: add setup step for surfpool in reusable tests workflow

* add sleep in run-test.sh to execute runbooks

* disable check_surfpool call in run-test.sh

---------

Co-authored-by: MicaiahReid <micaiahreid@gmail.com>

* fix: Ensure proper quoting in cleanup calls and improve process termination logic

* fix: Improve cleanup logic and enhance surfpool process management

* fix: supply surfpool_config to cluster_url fn

* fix(ci): ensure local bin path is added to GITHUB_PATH during Surfpool installation

* ci: debug surfpool install

* debug ci

* ci: remove sudo from install

---------

Co-authored-by: Arthur Bretas <158767751+BretasArthur1@users.noreply.github.com>
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.

3 participants