Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
930dfa7
[schema] Clean M.2s out of managed control plane disks/zpools
smklein Jun 3, 2025
0836780
compile pls
smklein Jun 3, 2025
3009f8f
table scans, tests
smklein Jun 3, 2025
0fa1c73
comment
smklein Jun 3, 2025
2943dd3
idempotency
smklein Jun 3, 2025
fe8734c
Test migration from 'last schema version'
smklein Jun 4, 2025
0a204d3
read schema list
smklein Jun 4, 2025
3ba9e24
Passing data migration tests
smklein Jun 4, 2025
0be4bbd
More schema checks, optimizations
smklein Jun 4, 2025
97a308a
patch insert disks tests - u.2s only
smklein Jun 4, 2025
d2f6431
Merge branch 'phys-disk-table-for-u.2s-only' into schema-optimization
smklein Jun 4, 2025
b336a81
pq-sys
smklein Jun 4, 2025
c0d9f87
Merge branch 'main' into phys-disk-table-for-u.2s-only
smklein Jun 4, 2025
073f5e6
Merge branch 'phys-disk-table-for-u.2s-only' into schema-optimization
smklein Jun 4, 2025
2562efe
schema update
smklein Jun 4, 2025
5d0bbeb
docs
smklein Jun 4, 2025
6685e9d
fix migration tests
smklein Jun 4, 2025
d628b06
Merge branch 'phys-disk-table-for-u.2s-only' into schema-optimization
smklein Jun 4, 2025
4ed2555
comment
smklein Jun 4, 2025
4c30498
Simplify test output, order it
smklein Jun 4, 2025
1e50b29
Merge branch 'main' into phys-disk-table-for-u.2s-only
smklein Jun 6, 2025
1dacdcd
Merge branch 'phys-disk-table-for-u.2s-only' into schema-optimization
smklein Jun 6, 2025
7637e78
Move xtask schema to new binary
smklein Jun 6, 2025
36e5c6c
Merge branch 'main' into schema-optimization
smklein Jun 18, 2025
6d96403
Update previous-schema
smklein Jun 18, 2025
ca86be2
Merge branch 'main' into schema-optimization
smklein Jun 30, 2025
7f523d3
Remove old schemas
smklein Jul 1, 2025
a620437
Remove tests relying on old migrations
smklein Jul 1, 2025
b5d49e4
simplify parsing
smklein Jul 1, 2025
065b4d7
merge
smklein Mar 26, 2026
5f86c59
fix test_migration_verification_files
smklein Mar 26, 2026
8298d25
cleaning up some dead code
smklein Mar 26, 2026
ac02bc0
Add old-migration check to CI, run it to remove 'merged' old schema c…
smklein Mar 26, 2026
0d46edc
merge
smklein Mar 26, 2026
63ae9a7
Improve docs, links
smklein Mar 26, 2026
777a605
review feedback
smklein Mar 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions .github/buildomat/build-and-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,13 @@ fi
banner doctest
ptime -m timeout 1h cargo test --doc --locked --verbose --no-fail-fast

# Verify that old migrations have been removed.
#
# We do this after the main build, so the dependencies of "cargo xtask schema"
# have already been built, which makes this cheap(er).
banner "check schema migration cleanup"
ptime -m cargo xtask schema old-migrations

# Build the live-tests. This is only supported on illumos.
# We also can't actually run them here. See the README for more details.
if [[ $target_os == "illumos" ]]; then
Expand Down
14 changes: 14 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ members = [
"dev-tools/releng",
"dev-tools/repl-utils",
"dev-tools/repo-depot-standalone",
"dev-tools/schema",
"dev-tools/xtask",
"dns-server",
"dns-server-api",
Expand Down Expand Up @@ -230,6 +231,7 @@ default-members = [
"dev-tools/releng",
"dev-tools/repl-utils",
"dev-tools/repo-depot-standalone",
"dev-tools/schema",
# Do not include xtask in the list of default members, because this causes
# hakari to not work as well and build times to be longer.
# See omicron#4392.
Expand Down
20 changes: 20 additions & 0 deletions dev-tools/schema/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "schema"
version = "0.1.0"
edition = "2021"
license = "MPL-2.0"

[lints]
workspace = true

[build-dependencies]
omicron-rpaths.workspace = true

[dependencies]
anyhow.workspace = true
camino.workspace = true
clap.workspace = true
nexus-db-model.workspace = true
omicron-workspace-hack.workspace = true
pq-sys = "*"
semver.workspace = true
10 changes: 10 additions & 0 deletions dev-tools/schema/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

// See omicron-rpaths for documentation.
// NOTE: This file MUST be kept in sync with the other build.rs files in this
// repository.
fn main() {
omicron_rpaths::configure_default_omicron_rpaths();
}
Loading
Loading