Commit Graph

18 Commits

Author SHA1 Message Date
Sascha Grunert 1d7b3a577a Remove go.sum file and add go.mod
We excluded the go.mod via the .gitignore file, which should not be
correct. Beside that, we do not need a go.sum file because we do not
have external dependencies yet.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-08-27 09:12:36 -04:00
Wong Hoi Sing Edison 76548e12e6 Speedup static build by utilizing CI cache on `/nix` folder
Signed-off-by: Wong Hoi Sing Edison <hswong3i@gmail.com>
2020-08-24 09:32:30 -04:00
Peter Hunt 7ab6aa1df8 test: fix CI
build from podman images instead of locally
clean up some dead code in packer
drop the cri-o integration tests (for now, hopefully)

Signed-off-by: Peter Hunt <pehunt@redhat.com>
2020-08-21 11:10:08 -04:00
Wong Hoi Sing Edison 64926b76d5 nix run -f channel:nixos-20.03
Switch from nix `channel:nixpkgs-unstable` to `channel:nixos-20.03` for better stability.

Signed-off-by: Wong Hoi Sing Edison <hswong3i@gmail.com>
2020-07-15 12:34:22 -04:00
Peter Hunt 55c0cbd52b tests: fix nits 2020-01-15 09:42:52 -05:00
Peter Hunt 9f3dfb5d54 cirrus: moving conmon to GOPATH
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2020-01-14 13:08:55 -05:00
Peter Hunt 1753dad743 create some unit tests
conmon has historically been tested against the tools that rely on it. This has caused difficulties with breaking changes, as well as some hacky testing procedures. Instead, we should test conmon on its own.

What better way to test conmon than in the way its used most frequently: exec'd from go.

This PR begins a test suite for conmon. This includes:
	create a ginkgo suite
	start creating some runner/conmon code to cleanly tap into conmon from go
	update makefile to have some go specific things
	add a cirrus task to run the tests on PRs

Signed-off-by: Peter Hunt <pehunt@redhat.com>
2020-01-14 13:08:55 -05:00
Peter Hunt ccfdbb69d6 fix fmt
as well as create new cirrus task to run fmt on PRs to verify fmt was run before merging

Signed-off-by: Peter Hunt <pehunt@redhat.com>
2020-01-14 11:24:27 -05:00
Sascha Grunert 0e888a95b9 Add static binary build to Cirrus CI
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2019-10-07 13:16: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
Peter Hunt cc6a7c45b5 Add podman and crio make target
Users can now directly install to a "podman" directory, instead of needing to install to crio, then link to podman

Also change the `make install` target to be /usr/local/bin/conmon instead of hardcoding it to crio libexec dir

Signed-off-by: Peter Hunt <pehunt@redhat.com>
2019-05-30 11:33:57 -04:00
Peter Hunt 70b567133c Cleanup Cirrus implementation
Remove references to RHEL, Centos and RHSM
Change kill-timeout to 5m instead of 1h30m
replace spoof_travis with setting environment variable

Signed-off-by: Peter Hunt <pehunt@redhat.com>
2019-05-21 13:42:34 -04:00
Peter Hunt 7613c4ba01 disable rhel tests in favor of fedora tests
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2019-05-20 18:27:08 -04:00
Chris Evich aa664cee0d Cirrus: Enable CRI-O intg. testing w/ Fedora
Signed-off-by: Chris Evich <cevich@redhat.com>
2019-05-20 17:29:09 -04:00
Chris Evich a2c7929af6 Cirrus: Fix image names
Signed-off-by: Chris Evich <cevich@redhat.com>
2019-04-03 15:38:19 -04:00
Chris Evich 95497582cd Fix CRI-O repo. references
Signed-off-by: Chris Evich <cevich@redhat.com>
2019-04-03 14:25:31 -04:00
Chris Evich a4c934eef4
Migrate PAPR build/install test to Cirrus
***CIRRUS: REBUILD IMAGES***

Signed-off-by: Chris Evich <cevich@redhat.com>
2019-01-22 12:01:04 -05: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