Skip to content

Commit 61529cf

Browse files
refactor(tasks): split rust:verify:drivers-off into per-driver subtasks
Break the flat 12-step run list into seven hidden sibling tasks — one positive control, four single-driver builds, one mixed docker+podman build, and one zero-driver build (which also runs the extension-only unit tests). The top-level task becomes a `depends` aggregator over them. Each sub-task runs the exact same cargo build + verify-drivers-compiled- out.sh pair as before, so total work and CI wall clock are unchanged. The split lets a developer re-run a single leg in isolation (`mise run rust:verify:drivers-off:podman`) after a failure, and mise's per-task log prefix makes a failing leg trivially identifiable in CI output. The parent task keeps the same name so `.github/workflows/branch-checks.yml` needs no change. Signed-off-by: Dimitar Mirchev <[email protected]>
1 parent 2d26c6e commit 61529cf

1 file changed

Lines changed: 55 additions & 7 deletions

File tree

‎tasks/rust.toml‎

Lines changed: 55 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,30 +44,78 @@ run = [
4444

4545
["rust:verify:drivers-off"]
4646
description = "Verify each compute driver can be compiled out via per-driver cargo features"
47-
run = [
47+
depends = [
4848
# Positive control: the default build carries every driver's markers.
49+
"rust:verify:drivers-off:default-all",
50+
# Each single-driver build carries only that driver's markers.
51+
"rust:verify:drivers-off:kubernetes",
52+
"rust:verify:drivers-off:docker",
53+
"rust:verify:drivers-off:podman",
54+
"rust:verify:drivers-off:vm",
55+
# Mixed feature set: verifies driver features compose additively.
56+
"rust:verify:drivers-off:docker+podman",
57+
# Zero-driver build is a valid extension-only gateway shape. Asserts the
58+
# binary links, no built-in driver markers survived, and the extension-only
59+
# unit-test paths behind #[cfg(not(any(feature = "driver-*")))] execute.
60+
"rust:verify:drivers-off:none",
61+
]
62+
63+
["rust:verify:drivers-off:default-all"]
64+
description = "Verify the default gateway build carries every driver's markers"
65+
hide = true
66+
run = [
4967
"cargo build -p openshell-server --bin openshell-gateway",
5068
"tasks/scripts/verify-drivers-compiled-out.sh present all target/debug/openshell-gateway",
69+
]
5170

52-
# Each single-driver build carries only that driver's markers.
71+
["rust:verify:drivers-off:kubernetes"]
72+
description = "Verify a --features driver-kubernetes gateway carries only the kubernetes marker"
73+
hide = true
74+
run = [
5375
"cargo build -p openshell-server --bin openshell-gateway --no-default-features --features driver-kubernetes",
5476
"tasks/scripts/verify-drivers-compiled-out.sh only kubernetes target/debug/openshell-gateway",
77+
]
78+
79+
["rust:verify:drivers-off:docker"]
80+
description = "Verify a --features driver-docker gateway carries only the docker marker"
81+
hide = true
82+
run = [
5583
"cargo build -p openshell-server --bin openshell-gateway --no-default-features --features driver-docker",
5684
"tasks/scripts/verify-drivers-compiled-out.sh only docker target/debug/openshell-gateway",
85+
]
86+
87+
["rust:verify:drivers-off:podman"]
88+
description = "Verify a --features driver-podman gateway carries only the podman marker"
89+
hide = true
90+
run = [
5791
"cargo build -p openshell-server --bin openshell-gateway --no-default-features --features driver-podman",
5892
"tasks/scripts/verify-drivers-compiled-out.sh only podman target/debug/openshell-gateway",
93+
]
94+
95+
["rust:verify:drivers-off:vm"]
96+
description = "Verify a --features driver-vm gateway carries only the vm marker"
97+
hide = true
98+
run = [
5999
"cargo build -p openshell-server --bin openshell-gateway --no-default-features --features driver-vm",
60100
"tasks/scripts/verify-drivers-compiled-out.sh only vm target/debug/openshell-gateway",
101+
]
61102

62-
# Mixed feature set: verifies driver features compose additively.
103+
["rust:verify:drivers-off:docker+podman"]
104+
description = "Verify a --features driver-docker,driver-podman gateway carries only those two markers"
105+
hide = true
106+
run = [
63107
"cargo build -p openshell-server --bin openshell-gateway --no-default-features --features driver-docker,driver-podman",
64108
"tasks/scripts/verify-drivers-compiled-out.sh only docker,podman target/debug/openshell-gateway",
109+
]
65110

66-
# Zero-driver build is a valid extension-only gateway shape. Assert both
67-
# that the binary links and that none of the built-in driver markers survived.
111+
["rust:verify:drivers-off:none"]
112+
description = "Verify a --no-default-features gateway links, carries no driver markers, and runs the extension-only unit tests"
113+
hide = true
114+
run = [
68115
"cargo build -p openshell-server --bin openshell-gateway --no-default-features",
69116
"tasks/scripts/verify-drivers-compiled-out.sh absent all target/debug/openshell-gateway",
70-
# The zero-driver profile also gates the extension-only unit test paths. Run the library test
71-
# suite under --no-default-features so those assertions actually execute.
117+
# The zero-driver profile gates the extension-only unit test paths; run
118+
# the library test suite under --no-default-features so those assertions
119+
# actually execute.
72120
"cargo test -p openshell-server --lib --no-default-features",
73121
]

0 commit comments

Comments
 (0)