Skip to content

[WIP] Update solana-test-validator command in READMEs and scripts#22

Closed
vadorovsky wants to merge 1 commit intomainfrom
update-solana-validator-cmd
Closed

[WIP] Update solana-test-validator command in READMEs and scripts#22
vadorovsky wants to merge 1 commit intomainfrom
update-solana-validator-cmd

Conversation

@vadorovsky
Copy link
Contributor

We don't have to use a cloned Solana repo anymore, the newest testnet versions of Solana CLI tools are working fine.

We don't have to use a cloned Solana repo anymore, the newest testnet
versions of Solana CLI tools are working fine.
--bpf-program J1RRetZ4ujphU75LP8RadjXMf3sA12yC2R44CF7PmU7i ./target/deploy/verifier_program_zero.so \
--bpf-program JA5cjkRJ1euVi9xLWsCJVzsRzEkT8vcC4rqw9sVAo5d6 ./target/deploy/merkle_tree_program.so \
--bpf-program 3KS2k14CmtnuVv2fvYcvdrNgC94Y11WETBpMUGgXyWZL ./target/deploy/verifier_program_one.so \
--bpf-program noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV ../../solana/web3.js/test/fixtures/noop-program/solana_sbf_rust_noop.so \
Copy link
Contributor Author

@vadorovsky vadorovsky Feb 22, 2023

Choose a reason for hiding this comment

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

@ananas-block This doesn't exist enymore in Solana repo, all the web3.js got removed.

What I'm doing currently is:

Would you be fine with describing it here?

OTOH, I could try --clone noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV to copy the noop program from devnet, but not sure if it's going to work 100% for our tests.

Copy link
Contributor

Choose a reason for hiding this comment

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

--clone didn't work for me the last time I tried

Copy link
Contributor

@ananas-block ananas-block Feb 22, 2023

Choose a reason for hiding this comment

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

maybe we should add solana_sbf_rust_noop.so to the our repo
I think that would be the easiest

Copy link
Contributor

Choose a reason for hiding this comment

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

We don't have to use a cloned Solana repo anymore, the newest testnet versions of Solana CLI tools are working fine.

Have you tried the most recent solana cli version with --bpf-programs that gave me an error,
the Solana devs already closed the issue but I am not sure it is fixed and if it is whether it is in the current release already

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, I tested now and:

  • --clone doesn't work for me
  • --bpf-program --bpf-program noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV ../../solana-program-library/account-compression/target/deploy/spl_noop.so works great. I tried both with master and account-compression-v0.1.8 tag of solana-program-library.

maybe we should add solana_sbf_rust_noop.so to the our repo

What about adding solana-program-library as a submodule? It would be easier to bump versions and the process would be more transparent to everyone - more than people pushing .so files manually. ;)

Copy link
Contributor

Choose a reason for hiding this comment

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

if adding it as a submodule should add a script that builds the noop pogram?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I was thinking about:

  • adding a submodule
  • adding a script for building the noop program
  • calling it from the current runTest.sh scripts

@vadorovsky vadorovsky changed the title Update solana-test-validator command in READMEs and scripts [WIP] Update solana-test-validator command in READMEs and scripts Feb 22, 2023
--bpf-program J1RRetZ4ujphU75LP8RadjXMf3sA12yC2R44CF7PmU7i ../light-system-programs/target/deploy/verifier_program_zero.so \
--bpf-program JA5cjkRJ1euVi9xLWsCJVzsRzEkT8vcC4rqw9sVAo5d6 ../light-system-programs/target/deploy/merkle_tree_program.so \
--bpf-program GFDwN8PXuKZG2d2JLxRhbggXYe9eQHoGYoYK5K3G5tV8 ../light-system-programs/target/deploy/verifier_program_two.so \
--bpf-program Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS ../market-place-verifier/target/deploy/market_place_verifier.so
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ananas-block This is different from what we have in mock-app-verifier/runTest.sh. Here we are using market_place_verifier.so, in the script we are using mock_verifier.so instead. Which one should we use?

Copy link
Contributor

Choose a reason for hiding this comment

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

it should be mock_verifier.so

@vadorovsky
Copy link
Contributor Author

Irrelevant when #32 gets in

@vadorovsky vadorovsky closed this Mar 14, 2023
@vadorovsky vadorovsky deleted the update-solana-validator-cmd branch April 24, 2023 11:43
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