Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ config_task:
- dnf install -y make glib2-devel git gcc golang
- cd $CIRRUS_WORKING_DIR
- make config
- ./hack/tree_status.sh
- git diff --exit-code


# Verify code was fmt'ed properly
Expand All @@ -102,7 +102,7 @@ fmt_task:
- dnf install -y clang clang-tools-extra golang
- cd $CIRRUS_WORKING_DIR
- make fmt
- ./hack/tree_status.sh
- git diff --exit-code


# Build the static binary
Expand Down
31 changes: 13 additions & 18 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,31 @@ on:
tags:
- v*
branches:
- master
- main
pull_request:

jobs:

conmon:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: go-integration-conmon-${{ hashFiles('**/go.mod') }}
restore-keys: go-integration-conmon-
- run: sudo hack/github-actions-setup
- name: Run conmon integration tests
run: |
sudo make vendor
sudo mkdir -p /var/run/crio
sudo make test-binary

cri-o:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: go-integration-cri-o-${{ hashFiles('**/go.mod') }}
restore-keys: go-integration-cri-o-
- run: sudo hack/github-actions-setup
- name: Run CRI-O integration tests
run: |
Expand All @@ -52,3 +39,11 @@ jobs:
sudo sh -c "cd $CRIO_DIR; ./test/test_runner.sh"
env:
JOBS: '2'

all-done:
needs:
- conmon
- cri-o
runs-on: ubuntu-24.04
steps:
- run: echo "All jobs completed"
35 changes: 35 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: validate
on:
push:
tags:
- v*
branches:
- main
- release-*
pull_request:
env:
GO_VERSION: 1.24
permissions:
contents: read

jobs:

deps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install go
uses: actions/setup-go@v5
with:
go-version: "${{ env.GO_VERSION }}"
- name: Verify Go dependencies
run: |
make vendor
git diff --exit-code

all-done:
needs:
- deps
runs-on: ubuntu-latest
steps:
- run: echo "All jobs completed"
16 changes: 4 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,10 @@ bin:

.PHONY: vendor
vendor:
GO111MODULE=on $(GO) mod tidy
GO111MODULE=on $(GO) mod vendor
GO111MODULE=on $(GO) mod verify
$(GO) mod tidy
$(GO) mod verify

.PHONY: docs
ifeq ($(GOMD2MAN),)
docs: install.tools
endif
docs:
$(MAKE) -C docs

Expand Down Expand Up @@ -123,14 +119,10 @@ install.podman: bin/conmon
install ${SELINUXOPT} -d -m 755 $(DESTDIR)$(LIBEXECDIR)/podman
install ${SELINUXOPT} -m 755 bin/conmon $(DESTDIR)$(LIBEXECDIR)/podman/conmon

install.tools:
$(MAKE) -C tools

.PHONY: fmt
fmt:
find . '(' -name '*.h' -o -name '*.c' ! -path './vendor/*' ! -path './tools/vendor/*' ')' -exec clang-format -i {} \+
find . -name '*.go' ! -path './vendor/*' ! -path './tools/vendor/*' -exec gofmt -s -w {} \+
git diff --exit-code
git ls-files -z \*.c \*.h | xargs -0 clang-format -i
gofmt -s -w .


.PHONY: dbuild
Expand Down
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PREFIX ?= /usr/local
DATADIR := ${PREFIX}/share
MANDIR := $(DATADIR)/man
GOMD2MAN ?= ../tools/build/go-md2man
GOMD2MAN ?= go-md2man

docs: $(patsubst %.md,%,$(wildcard *.8.md))

Expand Down
2 changes: 1 addition & 1 deletion hack/github-actions-setup
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ install_packages() {
}

install_conmon() {
sudo make install
sudo make install.bin
conmon --version
}

Expand Down
99 changes: 0 additions & 99 deletions hack/kubernetes-e2e

This file was deleted.

17 changes: 0 additions & 17 deletions hack/tree_status.sh

This file was deleted.

27 changes: 0 additions & 27 deletions tools/Makefile

This file was deleted.

7 changes: 0 additions & 7 deletions tools/go.mod

This file was deleted.

4 changes: 0 additions & 4 deletions tools/go.sum

This file was deleted.

10 changes: 0 additions & 10 deletions tools/tools.go

This file was deleted.

2 changes: 0 additions & 2 deletions tools/vendor/github.com/cpuguy83/go-md2man/.gitignore

This file was deleted.

22 changes: 0 additions & 22 deletions tools/vendor/github.com/cpuguy83/go-md2man/.travis.yml

This file was deleted.

8 changes: 0 additions & 8 deletions tools/vendor/github.com/cpuguy83/go-md2man/Dockerfile

This file was deleted.

21 changes: 0 additions & 21 deletions tools/vendor/github.com/cpuguy83/go-md2man/LICENSE.md

This file was deleted.

Loading