Skip to content

Commit

Permalink
Temporarily disable UPF feature and tests
Browse files Browse the repository at this point in the history
UPF feature for vanilla firecracker requires a separate integration effort
(vhive-serverless#807), so temporarily disable this feature and all tests for it.

Signed-off-by: Georgiy Lebedev <[email protected]>
  • Loading branch information
CuriousGeorgiy committed Sep 8, 2023
1 parent a4b4eb9 commit 99e6bf7
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/nightly_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ jobs:
strategy:
fail-fast: false
matrix:
vhive_args: ["-dbg", "-dbg -snapshots", "-dbg -snapshots -upf"]
# User-level page faults are temporarily disabled (gh-807)
# vhive_args: ["-dbg", "-dbg -snapshots", "-dbg -snapshots -upf"]
vhive_args: [ "-dbg", "-dbg -snapshots" ]
env:
GITHUB_RUN_ID: ${{ github.run_id }}
GITHUB_JOB: ${{ github.job }}
Expand Down
4 changes: 3 additions & 1 deletion ctriface/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
EXTRAGOARGS:=-v -race -cover
EXTRATESTFILES:=iface_test.go iface.go orch_options.go orch.go
BENCHFILES:=bench_test.go iface.go orch_options.go orch.go
WITHUPF:=-upf
# User-level page faults are temporarily disabled (gh-807)
# WITHUPF:=-upf
WITHUPF:=
WITHLAZY:=-lazy
GOBENCH:=-v -timeout 1500s
CTRDLOGDIR:=/tmp/ctrd-logs
Expand Down
13 changes: 12 additions & 1 deletion ctriface/iface_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,20 @@ var (
isUPFEnabled = flag.Bool("upf", false, "Set UPF enabled")
isLazyMode = flag.Bool("lazy", false, "Set lazy serving on or off")
//nolint:deadcode,unused,varcheck
isWithCache = flag.Bool("withCache", false, "Do not drop the cache before measurements")
isWithCache = flag.Bool("withCache", false, "Do not drop the cache before measurements")
)

func TestMain(m *testing.M) {
flag.Parse()

if *isUPFEnabled {
log.Error("User-level page faults are temporarily disabled (gh-807)")
os.Exit(-1)
}

os.Exit(m.Run())
}

func TestPauseSnapResume(t *testing.T) {
log.SetFormatter(&log.TextFormatter{
TimestampFormat: ctrdlog.RFC3339NanoFixed,
Expand Down
5 changes: 5 additions & 0 deletions vhive.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ func main() {
return
}

if *isUPFEnabled {
log.Error("User-level page faults are temporarily disabled (gh-807)")
return
}

if *isUPFEnabled && !*isSnapshotsEnabled {
log.Error("User-level page faults are not supported without snapshots")
return
Expand Down
5 changes: 5 additions & 0 deletions vhive_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ func TestMain(m *testing.M) {

flag.Parse()

if *isUPFEnabled {
log.Error("User-level page faults are temporarily disabled (gh-807)")
os.Exit(-1)
}

log.Infof("Orchestrator snapshots enabled: %t", *isSnapshotsEnabledTest)
log.Infof("Orchestrator UPF enabled: %t", *isUPFEnabledTest)
log.Infof("Orchestrator lazy serving mode enabled: %t", *isLazyModeTest)
Expand Down

0 comments on commit 99e6bf7

Please sign in to comment.