Skip to content

Commit 66df790

Browse files
authored
[test] Check that CockroachDB tables align with Diesel tables (#9927)
Part of #9925
1 parent 56b8e64 commit 66df790

11 files changed

Lines changed: 800 additions & 4 deletions

File tree

.config/nextest.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ experimental = ["benchmarks", "setup-scripts"]
1212
# environment where the seed file doesn't exist.
1313
# Exclude omicron-live-tests because those don't need this and also don't have
1414
# it available in the environment in which they run.
15-
filter = 'rdeps(nexus-test-utils) - package(omicron-dev) - package(omicron-live-tests)'
15+
filter = '(rdeps(nexus-test-utils) + package(nexus-db-schema)) - package(omicron-dev) - package(omicron-live-tests)'
1616
setup = 'crdb-seed'
1717

1818
[profile.ci]

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,7 @@ key-manager = { path = "key-manager" }
569569
key-manager-types = { path = "key-manager/types" }
570570
kstat-rs = "0.2.4"
571571
libc = "0.2.174"
572+
linkme = "0.3"
572573
libipcc = { git = "https://github.com/oxidecomputer/ipcc-rs", rev = "524eb8f125003dff50b9703900c6b323f00f9e1b" }
573574
libfalcon = { git = "https://github.com/oxidecomputer/falcon", branch = "main" }
574575
libnvme = { git = "https://github.com/oxidecomputer/libnvme", rev = "dd5bb221d327a1bc9287961718c3c10d6bd37da0" }

nexus/db-schema/Cargo.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,12 @@ diesel.workspace = true
1818
omicron-workspace-hack.workspace = true
1919
# See omicron-rpaths for more about the "pq-sys" dependency.
2020
pq-sys = "*"
21+
22+
[dev-dependencies]
23+
camino.workspace = true
24+
linkme.workspace = true
25+
omicron-test-utils.workspace = true
26+
similar-asserts.workspace = true
27+
slog.workspace = true
28+
tokio.workspace = true
29+
tokio-postgres.workspace = true

0 commit comments

Comments
 (0)