diff --git a/.github/workflows/ci-build.yaml b/.github/workflows/ci-build.yaml index 9e7e6011..20925915 100644 --- a/.github/workflows/ci-build.yaml +++ b/.github/workflows/ci-build.yaml @@ -19,7 +19,7 @@ permissions: jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Setup Go 1.22.3 uses: actions/setup-go@b26d40294f8ad76fcc90b915dac85892322fe62d @@ -34,6 +34,7 @@ jobs: - name: Set up environment run: | sudo apt-get update + sudo apt-get remove containerd.io sudo apt-get install -y gcc libc-dev bash perl curl make docker docker.io - name: Checkout repository diff --git a/bpfprogs/bpf_test.go b/bpfprogs/bpf_test.go index 44f5a86e..06651504 100644 --- a/bpfprogs/bpf_test.go +++ b/bpfprogs/bpf_test.go @@ -184,7 +184,7 @@ func TestBPF_Stop(t *testing.T) { fields: fields{ Program: models.BPFProgram{ Name: "nfprogram", - Artifact: "ls.tar.gz", + Artifact: "data.tar.gz", CmdStart: GetTestExecutableName(), CmdStop: GetTestExecutableName(), UserProgramDaemon: false, @@ -242,7 +242,7 @@ func TestBPF_Start(t *testing.T) { fields: fields{ Program: models.BPFProgram{ Name: "nfprogram", - Artifact: "ls.tar.gz", + Artifact: "data.tar.gz", CmdStart: GetTestExecutableName(), CmdStop: GetTestExecutableName(), UserProgramDaemon: true, @@ -261,7 +261,7 @@ func TestBPF_Start(t *testing.T) { fields: fields{ Program: models.BPFProgram{ Name: "nfprogram", - Artifact: "ls.tar.gz", + Artifact: "data.tar.gz", CmdStart: GetTestExecutableName(), CmdStop: GetTestExecutableName(), UserProgramDaemon: false, @@ -280,7 +280,7 @@ func TestBPF_Start(t *testing.T) { fields: fields{ Program: models.BPFProgram{ Name: "nfprogram", - Artifact: "ls.tar.gz", + Artifact: "data.tar.gz", CmdStart: GetTestExecutableName(), CmdStop: GetTestExecutableName(), UserProgramDaemon: true, diff --git a/bpfprogs/bpf_test_unix.go b/bpfprogs/bpf_test_unix.go index 511a9075..935931c2 100644 --- a/bpfprogs/bpf_test_unix.go +++ b/bpfprogs/bpf_test_unix.go @@ -16,7 +16,7 @@ func GetTestNonexecutablePathName() string { } func GetTestExecutablePathName() string { - return "/bin/ls" + return "/bin/date" } func GetTestExecutablePath() string { @@ -24,7 +24,7 @@ func GetTestExecutablePath() string { } func GetTestExecutableName() string { - return "ls" + return "date" } // assertExecutable checks for executable permissions