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

Switch tests to release-profile from dev-profile #3180

Draft
wants to merge 3 commits into
base: mainnet-staging
Choose a base branch
from

Conversation

vvp
Copy link
Contributor

@vvp vvp commented Mar 21, 2024

This PR configures CI to execute tests with cargo test --release and fixes the tests that break when running with release profile.

All failing tests fail due to snarkVM test-helpers generating a sample genesis block, which panics only when running in release profile (The genesis block must contain exactly 1 ratification, originated from https://github.com/AleoHQ/snarkVM/blob/mainnet-staging/ledger/block/src/header/genesis.rs#L24-L27). It might make sense to refactor the VM::genesis_beacon()-based fix over to snarkVM test-helpers side.

In general, tests should be run on as production-like build as possible, so if snarkVM runs its tests with dev profile, at least snarkOS should do release tests for appropriate coverage.

@howardwu
Copy link
Contributor

@vvp can you revert the Cargo.toml spacing formatter changes? These are auto-gen'ed by our release engine.

@vvp vvp force-pushed the test/fix-genesis-block branch 2 times, most recently from 0ac0edd to c7d3d94 Compare March 25, 2024 16:03
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.

None yet

2 participants