-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Introduce test_network feature #3572
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
base: staging
Are you sure you want to change the base?
Conversation
This looks fine to me. There is one thing to consider, though. Should the "Big Picture" Comments
|
Really good idea. Not sure if its overkill to use a tool to visualize the feature trees. This documentation can also document the discrepancy you noted regarding test and test_targets. CC Perhaps @joske wants to take a stab at this because he also has context on the addition of test_targets. |
You should be able to get quite far with |
@kpandl want to give this a try, and see if we can still run a local devnet and land a transaction? No rush on this. |
Thanks, I've added the Ran a devnet and verified a transaction still lands when using the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Seems like adding the snarkVM test feature broke something. Does the test feature get enabled in unit tests? If it isn't, these changes shouldn't affect the tests, but it seems like they do. |
Indeed, it seems like for some subcrates, I see a couple of directions to achieve the original goal: ensure we can run a snarkOS network where novel features are enabled on a low block height.
I vote for starting with option 2., and we can create an issue to clean up 3. |
Signed-off-by: Konstantin Pandl <[email protected]>
Thanks, addressed option 2 now. Tested it along with ProvableHQ/snarkVM#2693 on a local devnet. I'd suggest I temporarily change the snarkVM ref here so that we can let CI run and see if it passes. |
Cargo.toml
Outdated
test_targets = [ "snarkos-cli/test_targets" ] | ||
test_network = [ | ||
"snarkos-cli/test_network", | ||
"snarkos-node/test_network" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we only have to activate these two subdirectories (cli and node)?
Given that we didn't activate snarkos-node/test_targets
before, was that effectively some dead configuration code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kpandl this question still stands - is snarkos-node/test_network
actually used? Should it be called from cli/Cargo.toml
or not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets wait with merging until snarkVM test_migration_heights is fixed
Signed-off-by: Konstantin Pandl <[email protected]>
Motivation
For testing purposes, it would be practical to test the snarkVM consensus version (and proof targets) heights through a
--features test_network
compilation flag in snarkOS. This PR introduces such a flag.It also updates the snarkVM ref to the version where ProvableHQ/snarkVM#2693 is merged.
Test Plan
Tested with an added CLI output of consensus height thresholds for testing purposes, and verified it works.