Commit Graph

23 Commits

Author SHA1 Message Date
Jindrich Novy 4566e2ff8f Replace Go tests with BATS and remove Go dependency
Reimplemented all tests from Go to BATS framework, providing comprehensive
test coverage while eliminating Go build dependencies. Added 52 BATS tests
covering basic functionality, container logging, k8s log rotation, and
full runtime integration with real container execution.

Fixes: #577

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Jindrich Novy <jnovy@redhat.com>
2025-08-28 12:08:38 +02:00
Ayato Tokubi 4d374fd67d fix integration github action
Signed-off-by: Ayato Tokubi <atokubi@redhat.com>
2025-06-05 09:10:32 -04:00
Kir Kolyshkin c85e7bb4ed Remove hack/tree_status.sh
The sole reason of having this was to produce a nice informative error
message in case of failure (and because the message was not explicitly
specified, it was entirely wrong in 1 of 2 use cases).

Let's drop it and just use git to fail the job if a tree is dirty.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-05-01 18:06:47 -07:00
Kir Kolyshkin 0a5e93d95b Remove hack/kubernetes-e2e
This is not used since commit 4e61870 ("gh actions: drop perma-failing
jobs").

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-05-01 18:06:47 -07:00
Kir Kolyshkin 5b51069234 Remove old vendored go-md2man
The version of go-md2man is quite old, and is not really need to be in
this repository. It is only used by `make docs` which does not make
sense to run in CI, as we don't check the resulting man page.

PS if needed, it is easy to install by this one-liner:

	go install github.com/cpuguy83/go-md2man/v2@latest

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-05-01 17:14:13 -07:00
Ayato Tokubi 24498b54d7 Install some packages to fix CI
Signed-off-by: Ayato Tokubi <atokubi@redhat.com>
2025-02-24 11:43:25 -05:00
Peter Hunt 3d774d57d0 gh actions: use crun and update runc version
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2024-10-02 14:53:02 -04:00
Kishen V dcee6fbe80 Update nixos image and dependencies' version.
Signed-off-by: Kishen V <kishen.viswanathan@ibm.com>
2023-05-15 14:03:48 -04:00
Peter Hunt~ fffef2708a hack: build ginkgo in GOPATH
Signed-off-by: Peter Hunt~ <pehunt@redhat.com>
2023-02-06 10:23:14 -05:00
Doug Rabson 636e239aa5 Use /usr/bin/env to locate bash
On FreeBSD, this lives in /usr/local/bin. Note: this pattern is already
used for the other scripts in hack.

Signed-off-by: Doug Rabson <dfr@rabson.org>
2022-08-04 11:53:55 +01:00
Peter Hunt b1ca51f59a gh actions: bump versions
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2022-06-21 10:58:25 -04:00
Peter Hunt 4f0b7f8e2b ci: add subid ranges for crio tests
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2022-01-21 12:00:33 -05:00
Peter Hunt b6025be9b9 ci: set host IP
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2022-01-20 16:57:21 -05:00
Peter Hunt d6bdb9730c ci: bump to go 1.17
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2022-01-20 15:51:35 -05:00
Peter Hunt 1d67d9ed60 Makefile: correctly check seccomp notify support
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2021-06-24 14:58:29 -04:00
Chris Evich dd63dcb5b6 Cirrus: Update VM Images
Update to F34, and Ubuntu 2104. Also modernize scripts to use
shared automation library functions.  Lastly, update
`hack/get_ci_vm.sh` to match functionality of other
containers-org. repositories.

Signed-off-by: Chris Evich <cevich@redhat.com>
2021-05-03 16:01:23 -04:00
Sascha Grunert 3efab3e71c Add Kubernetes e2e tests as GitHub action
This adds a GitHub actions test suite to run a subset of the node e2e
tests with the locally built conmon.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2021-04-13 09:50:56 -04:00
Kir Kolyshkin 458729418f ci/gha: bump runc to rc93
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2021-03-22 17:19:03 -07:00
Sascha Grunert 92867a769d
Add Podman integration test GitHub action
We now add the Podman integration tests side-by-side to the CRI-O run.
This way we can ensure that changes to conmon will not negatively impact
Podman.

Some tests have to be ecluded for now, we have to dig deeper to find out
why they do not run.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2021-03-10 12:00:46 +01:00
Sascha Grunert dd99302e13 Add CRI-O integration test GitHub action
This adds a GitHub action for integration testing the latest CRI-O
master against the conmon change to verify its impact.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2021-03-08 12:44:08 -05:00
Daniel J Walsh 7cb7fd73cc
Fix problems found by codespell
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-09-12 06:07:41 -04:00
Peter Hunt ba3e4dcfac
Add cmd/config/config.go (#41)
* Add cmd/config/config.go

Now, we can configure conmon from within the conmon repository.
This will allow tools to vendor conmon and import the values they need, rather than having the configuration parameters in different repositories
Also added runner/ package to store the configuration parameters

Signed-off-by: Peter Hunt <pehunt@redhat.com>

* Add test to check if config was synced

Signed-off-by: Peter Hunt <pehunt@redhat.com>
2019-06-13 08:49:22 -04:00
Chris Evich 3188337382
Cirrus: Add CRI-O Integration testing for RHEL
Signed-off-by: Chris Evich <cevich@redhat.com>
2019-01-22 12:01:03 -05:00