feat: rework test-harness for integration tests#1039
Conversation
Signed-off-by: Tomas Fabrizio Orsi <tomas.orsi@lambdaclass.com>
Signed-off-by: Tomas Fabrizio Orsi <tomas.orsi@lambdaclass.com>
Signed-off-by: Tomas Fabrizio Orsi <tomas.orsi@lambdaclass.com> Suggested-by: Dennis Zadorozhnyi <denys.z@miden.team>
Signed-off-by: Tomas Fabrizio Orsi <tomas.orsi@lambdaclass.com>
a74cccc to
e6df139
Compare
bitwalker
left a comment
There was a problem hiding this comment.
So the problem with the removal of compile_rust_package is that by calling miden build, we're not actually testing the right version of the compiler (i.e. we're testing whatever the current midenup toolchain has installed). Using miden build is correct for other parts of the project, but not the compiler itself (where we need to test things based on the current source of the compiler).
I think we probably need to keep compile_rust_package unfortunately, or have it invoke cargo miden build instead (and ensure that it is looking in the right place for the cargo-miden binary - which our test suite currently does, but if responsibility for that moves somewhere else, we'll need a way to ensure the right binaries are being used).
Let me know if I've misunderstood something though!
I think this PR description point was not updated. |
greenhat
left a comment
There was a problem hiding this comment.
Looking good! Nice work!
@bitwalker Indeed, my mistake, the PR description contained items from a previous iteration of this PR. I have now updated the description with the latest changes. |
|
Awesome 😊 I'll know move to #876 |
Tackles #981
This PR aims to remove some functionality from the compiler's testing crate and rely on
miden-protocol's testing crate.This includes the following changes:
create_note_from_packagefunction. This now relies onmiden-protocol'sNoteBuilder(which gotPackagesupport added into it in this PR).account_component_from_packagefunction which was replaced byAccountComponent::from_package.build_existing_basic_wallet_account_builderfunction in favor ofMockChainBuilder::add_existing_account_from_componentswhich was also added in PRNoteCreationConfigsince it was superseded byNoteBuilder.