Skip to content

Commit 96bd472

Browse files
committed
fix: move test db; we may still have to remove debug home calls which could be annoying, but temp should be fine as an alternative.
1 parent 94792ec commit 96bd472

File tree

8 files changed

+44
-92
lines changed

8 files changed

+44
-92
lines changed

Cargo.lock

Lines changed: 24 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

checks/migrator/checks/sketchpad/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "mtma-migrator-checks-sketchpad"
2+
name = "migrator-sketchpad"
33
version = { workspace = true }
44
edition = { workspace = true }
55
license = { workspace = true }

checks/migrator/checks/sketchpad/config.yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.

checks/migrator/checks/sketchpad/src/accounts_equal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub mod test {
2929
// wait for the rest client to be ready
3030
// once we have this, there should also be a config, so we can then kill off the migrator and proceed
3131
movement_migrator
32-
.wait_for_rest_client_ready(tokio::time::Duration::from_secs(120))
32+
.wait_for_rest_client_ready(tokio::time::Duration::from_secs(600)) // we wait for up to ten minutes because the nix flake in .vendors/movementcan be a bit slow the first time
3333
.await
3434
.context(
3535
"failed to wait for movement migrator rest client while running accounts equal manual prelude",

flake.lock

Lines changed: 11 additions & 61 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

migration/core/migrator/mtma-null/src/migrate/migrate.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! We implement this with the same logic as `mtma-node-null-core` because that `mtma_node_types::Migrationish` has a blanket implementation for `Migrationish` that we can use.
12
use mtma_node_types::executor::{
23
movement_aptos_executor::MovementAptosBlockExecutor, MovementAptosNode, MovementNode,
34
};

migration/util/migrator-types/src/migration.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub use crate::migrator::movement_aptos_migrator::{
77
pub use crate::migrator::movement_migrator::MovementMigrator;
88
use std::future::Future;
99

10-
use mtma_node_types::migration::Migrationish as ExecutorMigrationish;
10+
use mtma_node_types::migration::Migrationish as NodeMigrationish;
1111

1212
/// Errors thrown when working with the [Config].
1313
#[derive(Debug, thiserror::Error)]
@@ -50,15 +50,15 @@ where
5050

5151
impl<T> Migrationish for T
5252
where
53-
T: ExecutorMigrationish,
53+
T: NodeMigrationish,
5454
{
5555
async fn migrate(
5656
&self,
5757
movement_executor: &MovementMigrator,
5858
) -> Result<MovementAptosMigrator, MigrationError> {
5959
let executor =
6060
movement_executor.node().await.map_err(|e| MigrationError::Internal(e.into()))?;
61-
let movement_aptos_executor = ExecutorMigrationish::migrate(self, &executor)
61+
let movement_aptos_executor = NodeMigrationish::migrate(self, &executor)
6262
.await
6363
.map_err(|e| MigrationError::Internal(e.into()))?;
6464
let movement_aptos = movement_aptos_executor

util/movement-aptos/core/src/config.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl Config {
7474
pub fn test_node_config(db_dir: &PathBuf) -> Result<Self, ConfigError> {
7575
let rng = rand::thread_rng();
7676

77-
let node_config = create_single_node_test_config(
77+
let mut node_config = create_single_node_test_config(
7878
&None,
7979
&None,
8080
db_dir.as_path(),
@@ -86,6 +86,8 @@ impl Config {
8686
)
8787
.map_err(|e| ConfigError::Internal(e.into()))?;
8888

89+
node_config.base.working_dir = Some(db_dir.clone());
90+
8991
Ok(Config { node_config: NodeConfigWrapper(node_config), log_file: None })
9092
}
9193

0 commit comments

Comments
 (0)