Skip to content

Commit

Permalink
using runner for ginkgo
Browse files Browse the repository at this point in the history
Signed-off-by: Aryan-sharma11 <[email protected]>
  • Loading branch information
Aryan-sharma11 committed Jul 29, 2024
1 parent 7f2954c commit ff4a1ad
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-test-ginkgo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ permissions: read-all
jobs:
build:
name: Auto-testing Framework / ${{ matrix.os }} / ${{ matrix.runtime }}
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest-16-cores
env:
RUNTIME: ${{ matrix.runtime }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
runtime: ["containerd", "crio"]
runtime: ["containerd"]
steps:
- uses: actions/checkout@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ COPY . .

WORKDIR /usr/src/KubeArmor/KubeArmor

RUN go install github.com/golang/protobuf/protoc-gen-go@latest
RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
RUN go install github.com/golang/protobuf/protoc-gen-go@v1.4.0
RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.4.0
RUN make


Expand Down
4 changes: 2 additions & 2 deletions tests/k8s_env/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ build:
@go mod tidy
# run in two steps as syscall suite fails if run at the very end
# see - https://github.com/kubearmor/KubeArmor/issues/1269
@ginkgo --vv --flake-attempts=10 --timeout=10m syscalls/
@ginkgo -r --vv --flake-attempts=10 --timeout=30m --skip-package "syscalls"
# @ginkgo --vv --flake-attempts=10 --timeout=10m syscalls/
@ginkgo -r --vv --flake-attempts=10 --timeout=30m --focus "ksp"
.PHONY: test
test:
@ginkgo -r -v
1 change: 1 addition & 0 deletions tests/util/karmorlog.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ var gRPC = ""
const maxEvents = 128

func getLogWithInfo(logItem *pb.Log, target *pb.Log) bool {
fmt.Println("log:", logItem)
if target.Source != "" {
if !strings.Contains(logItem.Source, target.Source) {
return false
Expand Down

0 comments on commit ff4a1ad

Please sign in to comment.