Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tilt: solana-test-validator multi-platform support #563

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

evan-gray
Copy link
Contributor

@evan-gray evan-gray commented Nov 30, 2024

This PR adds support for solana-test-validator within Docker / Tilt for M-series Macs. See also wormhole-foundation/wormhole#4175 and wormhole-foundation/wormhole#4181 which made this possible.

It also changes the sed line to one that works on Mac and Linux / WSL. To confirm that line still works in ci, I did a run with the guardian log level on info here where you can search for 8bf0b547c96edc5c1d512ca25c5c1d1812a180438a0046e511d1fb61561d5cdf and the other emitters added to confirm they are being accounted (search for gacct guardian logs).

Bonus: this changes the result of solana/Dockerfile to only contain the required artifacts, reducing the image size from 24.82 GB to 5.27 MB!

oh, and you can now run tilt up -- --evm2 --generic_relayer --solana_watcher --wormchain --guardiand_loglevel=warn on your Mac just like in CI and it passes!

@evan-gray evan-gray marked this pull request as ready for review November 30, 2024 19:11
@evan-gray evan-gray marked this pull request as draft November 30, 2024 19:11
@evan-gray evan-gray force-pushed the tilt-m1 branch 5 times, most recently from 314adc7 to a397e8e Compare December 6, 2024 20:07
@evan-gray evan-gray marked this pull request as ready for review December 6, 2024 20:07
@evan-gray
Copy link
Contributor Author

evan-gray commented Dec 6, 2024

Should be passable on Mac with 4 CPU and 8 GB RAM allocated (at least for the run, not sure on the build which likely uses more). This test run was done with 8 CPU 24 GB RAM.

tilt up -- --evm2 --generic_relayer --solana_watcher --wormchain --guardiand_loglevel=warn

image

nvsriram
nvsriram previously approved these changes Dec 6, 2024
@evan-gray evan-gray marked this pull request as draft December 10, 2024 14:43
@evan-gray evan-gray force-pushed the tilt-m1 branch 2 times, most recently from a47fd43 to cb2e671 Compare December 10, 2024 19:50
@evan-gray evan-gray changed the title tilt: m1 flag tilt: solana-test-validator multi-platform support Dec 10, 2024
@evan-gray evan-gray marked this pull request as ready for review December 10, 2024 21:19
Copy link
Collaborator

@johnsaigle johnsaigle left a comment

Choose a reason for hiding this comment

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

Changes look OK but it seems like the solana tests are failing.

@nik-suri
Copy link
Collaborator

@johnsaigle the CLI check is not a required check. There is an open PR from @nvsriram to fix this: #573

Copy link
Collaborator

@johnsaigle johnsaigle left a comment

Choose a reason for hiding this comment

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

Approving, assuming that the failure is caused by another issue as Nikhil mentioned

@evan-gray evan-gray merged commit b91f8c6 into wormhole-foundation:main Dec 11, 2024
8 of 9 checks passed
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.

4 participants