Skip to content

Commit 09bed26

Browse files
committed
Remove CI and Justfile recipies related to seccomp
Signed-off-by: Doru Blânzeanu <dblnz@pm.me>
1 parent 1328218 commit 09bed26

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

.github/workflows/dep_rust.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ jobs:
146146
# with default features
147147
just test ${{ inputs.config }} ${{ inputs.hypervisor == 'mshv' && 'mshv2' || '""'}}
148148
149-
# with only one driver enabled (driver mshv/kvm feature is ignored on windows) + seccomp
150-
just test ${{ inputs.config }} seccomp,${{ inputs.hypervisor == 'mshv' && 'mshv2' || inputs.hypervisor == 'mshv3' && 'mshv3' || 'kvm' }}
149+
# with only one driver enabled (driver mshv/kvm feature is ignored on windows)
150+
just test ${{ inputs.config }} ${{ inputs.hypervisor == 'mshv' && 'mshv2' || inputs.hypervisor == 'mshv3' && 'mshv3' || 'kvm' }}
151151
152152
# make sure certain cargo features compile
153153
just check

Justfile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ test-like-ci config=default-target hypervisor="kvm":
8080
@# with default features
8181
just test {{config}} {{ if hypervisor == "mshv" {"mshv2"} else {""} }}
8282

83-
@# with only one driver enabled + seccomp + build-metadata + init-paging
84-
just test {{config}} seccomp,build-metadata,init-paging,{{ if hypervisor == "mshv" {"mshv2"} else if hypervisor == "mshv3" {"mshv3"} else {"kvm"} }}
83+
@# with only one driver enabled + build-metadata + init-paging
84+
just test {{config}} build-metadata,init-paging,{{ if hypervisor == "mshv" {"mshv2"} else if hypervisor == "mshv3" {"mshv3"} else {"kvm"} }}
8585

8686
@# make sure certain cargo features compile
8787
just check
@@ -145,7 +145,7 @@ like-ci config=default-target hypervisor="kvm":
145145
{{ if config == "release" { "just bench-ci main " + if hypervisor == "mshv" { "mshv2" } else if hypervisor == "mshv3" { "mshv3" } else { "kvm" } } else { "" } }}
146146

147147
# runs all tests
148-
test target=default-target features="": (test-unit target features) (test-isolated target features) (test-integration "rust" target features) (test-integration "c" target features) (test-seccomp target features) (test-doc target features)
148+
test target=default-target features="": (test-unit target features) (test-isolated target features) (test-integration "rust" target features) (test-integration "c" target features) (test-doc target features)
149149

150150
# runs unit tests
151151
test-unit target=default-target features="":
@@ -170,12 +170,6 @@ test-integration guest target=default-target features="":
170170
@# run the rest of the integration tests
171171
{{if os() == "windows" { "$env:" } else { "" } }}GUEST="{{guest}}"{{if os() == "windows" { ";" } else { "" } }} {{ cargo-cmd }} test -p hyperlight-host {{ if features =="" {''} else if features=="no-default-features" {"--no-default-features" } else {"--no-default-features -F init-paging," + features } }} --profile={{ if target == "debug" { "dev" } else { target } }} {{ target-triple-flag }} --test '*'
172172

173-
# runs seccomp tests
174-
test-seccomp target=default-target features="":
175-
@# run seccomp test with feature "seccomp" on and off
176-
{{ cargo-cmd }} test --profile={{ if target == "debug" { "dev" } else { target } }} {{ target-triple-flag }} -p hyperlight-host test_violate_seccomp_filters --lib {{ if features =="" {''} else { "--features " + features } }} -- --ignored
177-
{{ cargo-cmd }} test --profile={{ if target == "debug" { "dev" } else { target } }} {{ target-triple-flag }} -p hyperlight-host test_violate_seccomp_filters --no-default-features {{ if features =~"mshv2" {"--features init-paging,mshv2"} else {"--features mshv3,init-paging,kvm" } }} --lib -- --ignored
178-
179173
# tests compilation with no default features on different platforms
180174
test-compilation-no-default-features target=default-target:
181175
@# Linux should fail without a hypervisor feature (kvm, mshv, or mshv3)

0 commit comments

Comments
 (0)