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

Build devnet image for testing purposes #204

Merged
merged 3 commits into from
Jan 9, 2024
Merged

Conversation

marcelstanley
Copy link
Contributor

@marcelstanley marcelstanley commented Dec 11, 2023

We're not deploying the contracts in a deterministic fashion yet. That's the reason for da0c33e, which is expected to be reverted soon as part of #229.


Testing

Please make sure to build the image:

cd build
docker buildx bake rollups-devnet --load --no-cache

Also, check if the state file has the expected size as follows:

cd /tmp
id=$(docker create cartesi/rollups-devnet:devel)
docker cp $id:/usr/share/devnet/anvil_state.json .
docker rm -v $id
ls -l anvil_state.json
cat anvil_state.json | jq >> /dev/null

Expected output (file size is 82622 bytes and there are no errors):

Successfully copied 84.5kB to /tmp/.
7e918c31f5177610196810c7eedd61212670840f5ed05e96fd4b348294645cac
-rw-r--r-- 1 username username 82622 Dec 15 16:12 anvil_state.json

Closes #187

@marcelstanley marcelstanley requested a review from a team December 11, 2023 22:47
Base automatically changed from feature/cmd-devnet to main December 13, 2023 18:08
@marcelstanley marcelstanley added the no changelog PRs that don't require changes in changelog label Dec 14, 2023
@marcelstanley marcelstanley force-pushed the feature/build-devnet branch 7 times, most recently from 3f00bcf to 7c7fd54 Compare December 19, 2023 21:36
@marcelstanley marcelstanley force-pushed the feature/build-devnet branch 2 times, most recently from 9c0b384 to aca1df8 Compare January 3, 2024 20:12
@marcelstanley marcelstanley marked this pull request as ready for review January 3, 2024 20:13
@marcelstanley marcelstanley self-assigned this Jan 3, 2024
@marcelstanley marcelstanley marked this pull request as draft January 3, 2024 20:14
@marcelstanley marcelstanley force-pushed the feature/build-devnet branch 14 times, most recently from fb84ece to 144a3df Compare January 4, 2024 20:10
@marcelstanley marcelstanley changed the base branch from main to test/main@13cddb4 January 4, 2024 20:15
@marcelstanley marcelstanley force-pushed the feature/build-devnet branch 5 times, most recently from 14f8df0 to b17fa69 Compare January 5, 2024 15:27
@marcelstanley marcelstanley changed the base branch from test/main@13cddb4 to main January 5, 2024 16:31
@marcelstanley marcelstanley marked this pull request as ready for review January 5, 2024 16:36
@marcelstanley marcelstanley changed the title Feature/build devnet Build devnet image for testing purposes Jan 5, 2024
This is supposed to be a temporary change while we assess the most
appropriate way to perform deterministic deployments in our case
@gligneul gligneul merged commit 3502bdc into main Jan 9, 2024
@gligneul gligneul deleted the feature/build-devnet branch January 9, 2024 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog PRs that don't require changes in changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add build stage for devnet creation
3 participants