Skip to content

Commit 85ac360

Browse files
authored
feat(registry-replicator): Use new canister_ranges_* for creating new NNS (#5467)
This updates the orchestrator registry replicator code path used for creating a new NNS to use the new method of storing the routing table ranges, while keeping the existing functionality.
1 parent 28f77ac commit 85ac360

File tree

4 files changed

+432
-114
lines changed

4 files changed

+432
-114
lines changed

Cargo.lock

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

rs/orchestrator/registry_replicator/BUILD.bazel

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library")
1+
load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", "rust_test")
22

33
package(default_visibility = ["//visibility:public"])
44

@@ -27,6 +27,12 @@ DEPENDENCIES = [
2727
"@crate_index//:url",
2828
]
2929

30+
DEV_DEPENDENCIES = [
31+
# Keep sorted.
32+
"//rs/registry/fake",
33+
"//rs/registry/proto_data_provider",
34+
]
35+
3036
MACRO_DEPENDENCIES = []
3137

3238
ALIASES = {}
@@ -46,3 +52,9 @@ rust_binary(
4652
proc_macro_deps = MACRO_DEPENDENCIES,
4753
deps = DEPENDENCIES + [":registry_replicator"],
4854
)
55+
56+
rust_test(
57+
name = "registry_replicator_test",
58+
crate = ":registry_replicator",
59+
deps = DEPENDENCIES + DEV_DEPENDENCIES,
60+
)

rs/orchestrator/registry_replicator/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ tempfile = { workspace = true }
2929
tokio = { workspace = true }
3030
url = { workspace = true }
3131

32+
[dev-dependencies]
33+
ic-registry-client-fake = { path = "../../registry/fake" }
34+
ic-registry-proto-data-provider = { path = "../../registry/proto_data_provider" }
35+
3236
[[bin]]
3337
name = "ic-registry-replicator"
3438
path = "src/main.rs"

0 commit comments

Comments
 (0)