Commit Graph

38 Commits

Author SHA1 Message Date
Derek Nola
9a9f1f2d5e
Replace fedora-coreos with fedora 36 for install tests (#6315)
* Move to fedora 36 on install tests

Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-10-27 08:11:57 -07:00
Matt Trachier
64403978cd
Update to v1.25.3-k3s1 (#6269)
Signed-off-by: matttrach <matttrach@gmail.com>
2022-10-13 19:26:57 -05:00
Derek Nola
934d013614
Merge pull request #6220 from jongwooo/chore/use-setup-go-action-to-cache-dependencies
Use setup-go action to cache dependencies
2022-10-07 10:54:39 -07:00
Derek Nola
307d4310a3 Add journalctl logs to E2E tests
Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-10-06 12:27:44 -07:00
jongwooo
0fd84deb11 Use setup-go action to cache dependencies
Signed-off-by: jongwooo <han980817@gmail.com>
2022-10-07 02:51:03 +09:00
Matt Trachier
28028f8601
Update to v1.25.1 (#6140)
* Update to v1.25.1
* bump go version
Signed-off-by: matttrach <matttrach@gmail.com>
2022-09-16 13:41:04 -05:00
Derek Nola
fd9a78f931 Modify install GH action
Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-09-13 11:18:27 -07:00
Derek Nola
cd61f9a6cf
Expand startup integration test (#6030)
* add new data-dir subtest
* Added node flag subtest
* Fix to E2E tests
* Convert existing test to new server logging

Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-08-31 15:40:17 -07:00
Akihiro Suda
654d2b9567
CI: update Fedora 34 -> 35 (#5996)
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2022-08-26 09:40:34 -07:00
Derek Nola
2b35f89664
Convert install tests to run PR build of k3s (#6003)
* Convert install tests to run PR version of k3s

Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-08-26 09:36:50 -07:00
Derek Nola
035c03cfaa
Remove codespell from Drone, add to GH Actions (#6004)
Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-08-18 09:21:56 -07:00
Max
b14cabc107
Add nightly install github action (#5998)
Signed-off-by: rancher-max <max.ross@suse.com>
2022-08-16 17:58:00 -04:00
Derek Nola
82e5da35a9
Upgrade macos-10.15 to macos-12 (#5953)
Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-08-03 20:11:17 -07:00
Brad Davidson
c8447dca56 Bump golang to 1.18.1
Also update all use of 'go get' => 'go install', update CI tooling for
1.18 compatibility, and gofmt everything so lint passes.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2022-05-11 14:39:07 -07:00
Derek Nola
b28796a5ce
Replace CentOS 8 with Rocky Linux 8 for install testing (#5279)
* Replace CentOS 8 with Rocky 8 for install testing

Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-03-18 09:01:04 -07:00
Derek Nola
1f7abe5dbb
Testing directory and documentation rework. (#5256)
* Removed vagrant folder
* Fix comments around E2E ENVs
* Eliminate testutil folder
* Convert flock integration test to unit test
* Point to other READMEs

Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-03-15 10:29:56 -07:00
Derek Nola
e28be2912c
Migrate Ginkgo testing framework to V2, consolidate integration tests (#5097)
* Upgrade and convert ginkgo from v1 to v2
* Move all integration tests into integration folder
* Update TESTING.md

Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-02-09 08:22:53 -08:00
Derek Nola
d0f7e23328
Require integration test to be run as sudo/root (#4824)
* Remove internal sudo commands from integration tests
* Run integration CI as sudo

Signed-off-by: Derek Nola <derek.nola@suse.com>
2021-12-22 14:48:21 -08:00
Derek Nola
a02db0f2fa
Fix cgroup smoke test (#4823)
* Fixed control group vagrantfile so running vagrant up doesn't fail locally

Signed-off-by: Derek Nola <derek.nola@suse.com>
2021-12-22 12:16:43 -08:00
Brad Davidson
08d538fb3a Update golang
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2021-12-22 10:47:38 -08:00
Derek Nola
bcb662926d
Secrets-encryption rotation (#4372)
* Regular CLI framework for encrypt commands
* New secrets-encryption feature
* New integration test
* fixes for flaky integration test CI
* Fix to bootstrap on restart of existing nodes
* Consolidate event recorder

Signed-off-by: Derek Nola <derek.nola@suse.com>
2021-12-07 14:31:32 -08:00
Jacob Blain Christen
c77efe64e1
tests/vagrant: refactor vagrant smoke tests (#4484)
- updated `tests/TESTING.md`
- cgroup, snapshotter, and install tests all under tests/vagrant
- cgroup and snapshotter workflows trigger for all code changes on all branches (excluding markdown docs, install script, and other vagrant tests)
- install workflow triggers for relevant script and fixture changes, only on master or pull-requests that target it
- integration and unit test workflows should not trigger for install script changes nor anything under tests/vagrant

Signed-off-by: Jacob Blain Christen <jacob@rancher.com>
2021-11-15 11:50:38 -07:00
Jacob Blain Christen
559c8ad94b
install: /usr/sbin/transactional-update (#4403)
- also updated k3s-uninstall.sh on zypper and TU systems
- fix #4409 for Fedora CoreOS

new installer tests via github actions:
- fedora-coreos
- opensuse-microos

Signed-off-by: Jacob Blain Christen <jacob@rancher.com>
2021-11-08 16:26:21 -07:00
Derek Nola
aa3332085f
Update k3s CI to run all integration tests (#4358)
* Update k3s integration CI so all tests run
* Add check for ipv6 to skip test in Github CI
Signed-off-by: dereknola <derek.nola@suse.com>
2021-11-02 11:37:16 -07:00
Chris Wayne
94c1b988ca
Enable Epics Action to automatically check off child issues in an epic (#4353)
* Enable Epics Action to automatically check off child issues in an epic

Signed-off-by: Chris Wayne <cwayne18@gmail.com>
2021-11-01 20:46:33 -04:00
Jacob Blain Christen
702fe24afe
containerd/cri: enable the btrfs snapshotter (#4316)
* vendor: btrfs
* enable the btrfs snapshotter
* testing: snapshotter/btrfs

Signed-off-by: Jacob Blain Christen <jacob@rancher.com>
2021-10-29 23:31:33 -07:00
Jacob Blain Christen
52eb6cac1c
install.sh: initial support for sle-micro (#4331)
Support invoking install.sh on SLE Micro with or without SELinux
enabled. Same deal for SLES.

Additionally, easy-to-invoke assertions, via Vagrant, that the local
install.sh works correctly:
- tests/install/centos-7 (stand-in for rhel 7)
- tests/install/centos-8 (stand-in for rhel 8)
- tests/install/opensuse-leap (stand-in for sles)
- tests/install/opensuse-microos (stand-in for sle-micro)
- tests/install/ubuntu-focal

Addresses #3188
Addresses #3917

Signed-off-by: Jacob Blain Christen <jacob@rancher.com>
2021-10-29 09:47:37 -07:00
Jacob Blain Christen
a9fce84ab6
github actions: enable workflow_dispatch (#3923)
Addresses #3922

Signed-off-by: Jacob Blain Christen <jacob@rancher.com>
2021-08-26 23:40:06 -07:00
Derek Nola
4cc781b5e3
Moved testing utils into tests directory. Improved gotests template. (#3805)
* Moved testing utils into tests directory. Improved gotests template.
* Updated cgroups2 with util folder rename

Signed-off-by: dereknola <derek.nola@suse.com>
2021-08-10 11:13:26 -07:00
Derek Nola
21c8a33647
Introduction of Integration Tests (#3695)
* Commit of new etcd snapshot integration tests.
* Updated integration github action to not run on doc changes.
* Update Drone runner to only run unit tests

Signed-off-by: dereknola <derek.nola@suse.com>
2021-07-26 09:59:33 -07:00
Chris Wayne
71e1f1df8c
Ignore markdown files for github actions (#3676)
Signed-off-by: Chris Wayne <cwayne18@gmail.com>
2021-07-23 10:29:00 -04:00
Brad Davidson
6b3285b7e3 Fix coverage reporting to include all packages, not just those with tests
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2021-07-01 19:21:28 -07:00
Derek Nola
c833183517
Add unit tests for pkg/etcd (#3549)
* Created new etcd unit tests and testing support file

Signed-off-by: dereknola <derek.nola@suse.com>
2021-07-01 16:08:35 -07:00
Derek Nola
7242ce9316
Redux: Add Unit Test Coverage to CI (#3524)
* Added Github action to run unit tests and connect to Codecov

Signed-off-by: dereknola <derek.nola@suse.com>
2021-06-29 11:27:50 -07:00
Derek Nola
cf55712767
Revert "Add Unit Test Coverage to CI (#3494)" (#3499)
This reverts commit 216b3beaef.
2021-06-23 12:40:13 -07:00
Derek Nola
216b3beaef
Add Unit Test Coverage to CI (#3494)
* Added Github action to run unit tests and connect to Codecov

Signed-off-by: dereknola <derek.nola@suse.com>
2021-06-23 09:21:59 -07:00
Akihiro Suda
5e0527f304 cgroup2 CI: add rootless
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-06-01 13:13:21 -07:00
Akihiro Suda
3cfa76fcbf Add cgroup2 CI (Fedora on Vagrant on GHA)
Add `.github/workflows/cgroup2.yaml` for running Fedora on Vagrant on
GitHub Actions to test cgroup2 environment.

Only very basic smoke tests are executed, as Vagrant is too slow to run
the entire sonobuoy.

Relevant:
- kubernetes-sigs/kind PR 2017
- https://github.com/rootless-containers/usernetes/blob/v20210201.0/.github/workflows/main.yaml

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-05-05 15:53:47 -07:00