Brad Davidson
1b87987616
Move Windows test out of Install Script workflow
...
Placing this in the install script test, which only runs when specific files are changed, was preventing it from being run on code changes.
In addition to moving this into the integration workflow, fix codecov for Windows and upload data after running a test pod.
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit cd4be0b8c1 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2025-04-11 14:51:55 -07:00
Derek Nola
a2f43a36da
Consolidate build-k3s GHA workflow for OS and ARCH ( #12080 )
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
(cherry picked from commit 7c552f89c8 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2025-04-11 14:51:55 -07:00
Brad Davidson
7283bff350
Silence vagrant progress output
...
Add --no-tty flag to all `vagrant up` commands to silence the printing of box loading progress
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 08c6c7423b )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2025-04-11 14:51:55 -07:00
Derek Nola
37b0d0184f
Migrate svcpolicies E2E test to docker
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2025-03-05 14:25:32 -08:00
Derek Nola
d5f5b66dc5
Expand E2E test matrix to cover all possible tests that fit on GHA
...
Fix rootless test
Fix svc firewall E2E test, broken by #11711
Signed-off-by: Derek Nola <derek.nola@suse.com >
2025-03-05 14:25:32 -08:00
Derek Nola
27218c12ad
Migrate E2E SecretsEncryption to Docker test
...
Remove secrets encryption E2E from Drone
Signed-off-by: Derek Nola <derek.nola@suse.com >
2025-03-05 14:25:32 -08:00
Derek Nola
331e4d621b
Don't run snapshotrestore on flaky arm64 runners
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2025-03-05 14:25:32 -08:00
Derek Nola
4a95051e33
Migrate E2E autoimport to Docker test
...
Simplify DockerNode structs
Remove autoimport from E2E
Signed-off-by: Derek Nola <derek.nola@suse.com >
2025-03-05 14:25:32 -08:00
Derek Nola
62442d0d3d
Migrate hardened docker test
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2025-03-05 14:25:32 -08:00
Derek Nola
e7b6a6d87d
Migrate E2E Token test into a Docker Token test
...
Remove E2E token test
Signed-off-by: Derek Nola <derek.nola@suse.com >
2025-03-05 14:25:32 -08:00
Derek Nola
3720d89763
Reduce cache thrashing on E2E vagrant boxes. Don't cache for windows unit tests. ( #11769 )
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2025-03-05 14:25:32 -08:00
Brad Davidson
b237f200b0
Move windows build to separate job
...
Don't block other linux steps on building the windows binary
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 20a9a6bfc3 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2025-02-10 10:16:42 -08:00
Brad Davidson
78f572eda1
Add windows smoke test
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 3aa24cdde8 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2025-02-10 10:16:42 -08:00
Brad Davidson
3619be4d4b
Fix linux-specific clientaccess test
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 0d15457c77 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2025-02-10 10:16:42 -08:00
Brad Davidson
0a2553a54c
Move Windows compilation test to GH Actions and enable integration/coverage
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 5c8f2364c4 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2025-02-10 10:16:42 -08:00
Derek Nola
b64b9153ed
Consolidate test utility functions into top level package ( #11711 )
...
* [e2e] Convert RunCmdOnNode to method
* Consolidate e2e variables into TestConfig struct
* Consolidate docker and integration test helper functions
* E2E: Directly count daemonsets, not their pods
* Add missing Context levels for E2E tests
* Migrate e2e.ParsePods to new tests client package
* Run the go test compile test on their respective architectures
Signed-off-by: Derek Nola <derek.nola@suse.com >
2025-02-07 21:18:18 -08:00
Derek Nola
a2f6657f48
Run Docker test on Github Actions arm64 runners ( #11705 )
...
* Build and Run Arm64 Docker Tests
* Compile go tests for both amd64 and arm64
* Use version.sh to determine channel, not git
* Consolidate docker tests into 2D matrix
* Remove old Docker test from Drone and Github Actions
Signed-off-by: Derek Nola <derek.nola@suse.com >
2025-02-07 21:18:18 -08:00
Derek Nola
e19a1e1e9e
Convert snapshotrestore from E2E to Docker test
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2025-02-07 21:18:18 -08:00
Derek Nola
436bce722f
Upload E2E logs on failure as GHA artifacts ( #11514 )
...
* Upload E2E journald logs as artifacts in GHA
Signed-off-by: Derek Nola <derek.nola@suse.com >
* Improve fork information for parent extraction
Signed-off-by: Derek Nola <derek.nola@suse.com >
---------
Signed-off-by: Derek Nola <derek.nola@suse.com >
2025-01-13 12:16:54 -08:00
Derek Nola
7bc5ee97b1
Convert legacy docker tests from bash to golang ( #11357 )
...
* Convert the following Docker test from Bash to Go
- basics
- bootstraptoken
- cacerts
- compat -> skew
- etcd
- lazypull
- upgrade
Signed-off-by: Derek Nola <derek.nola@suse.com >
* Add Docker go tests to GHA
* Prebuild K3s Go Tests
* Strip go test binaries to reduce size
* Handle complex branch options
Signed-off-by: Derek Nola <derek.nola@suse.com >
* Implement basic golang tests on arm and arm64 pipelines
Signed-off-by: Derek Nola <derek.nola@suse.com >
2025-01-13 12:16:54 -08:00
Vitor Savian
4331f452bb
Add auto import images for containerd image store
...
* Add auto import images for containerd image store
* Add auto import images
Signed-off-by: Vitor Savian <vitor.savian@suse.com >
* Fix EOF error log when importing tarball files
Signed-off-by: Vitor Savian <vitor.savian@suse.com >
* Delaying queue
Signed-off-by: Vitor Savian <vitor.savian@suse.com >
* Add parse for images
Signed-off-by: Vitor Savian <vitor.savian@suse.com >
---------
Signed-off-by: Vitor Savian <vitor.savian@suse.com >
2025-01-11 01:58:20 -03:00
Derek Nola
ddea433411
[Release-1.30] Backport E2E GHA fixes ( #11227 )
...
* Fix Github Actions for Ubuntu-24.04 (#11112 )
* Fix vagrant/libvirt composite action for ubuntu-24.04
* Don't ignore changes to internal actions
* Fix unit tests for ubuntu 24.04, new lsof version
* Pin os version for unit and E2E workflows
Signed-off-by: Derek Nola <derek.nola@suse.com >
* Pin vagrant to older version to avoid known issue 13527
Signed-off-by: Derek Nola <derek.nola@suse.com >
---------
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-11-05 08:36:52 -08:00
Derek Nola
5ec454f50e
[Release-1.30] Revert "Make svclb as simple as possible" ( #11113 )
...
* Revert "Make svclb as simple as possible"
This reverts commit 1befd65a0a .
Signed-off-by: manuelbuil <mbuil@suse.com >
Signed-off-by: Derek Nola <derek.nola@suse.com >
* Pin E2E tests to 22.04
Signed-off-by: Derek Nola <derek.nola@suse.com >
---------
Signed-off-by: manuelbuil <mbuil@suse.com >
Signed-off-by: Derek Nola <derek.nola@suse.com >
Co-authored-by: manuelbuil <mbuil@suse.com >
2024-10-15 22:35:33 -07:00
manuelbuil
e9bb624c92
Make svclb as simple as possible
...
Signed-off-by: manuelbuil <mbuil@suse.com >
2024-10-11 15:51:01 +02:00
Brad Davidson
ddba4cd801
Add ca-cert rotation integration test
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit b1a42e5d43 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-10-10 11:40:39 -07:00
Brad Davidson
0c3a384148
Tag PR image build as latest before scanning
...
This is less effort than passing the tag across steps 🤷♂️
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 378edb939d )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-09-06 11:30:23 -07:00
Brad Davidson
dd12197379
Fix /trivy action running against target branch instead of PR branch
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 3d6e4a793a )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-09-06 11:30:23 -07:00
dependabot[bot]
925e95efe4
Bump aquasecurity/trivy-action from 0.20.0 to 0.24.0 ( #10795 )
...
Bumps [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action ) from 0.20.0 to 0.24.0.
- [Release notes](https://github.com/aquasecurity/trivy-action/releases )
- [Commits](https://github.com/aquasecurity/trivy-action/compare/0.20.0...0.24.0 )
---
updated-dependencies:
- dependency-name: aquasecurity/trivy-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit dacc636cf4 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-09-06 11:30:23 -07:00
Derek Nola
05dcd7f325
Add trivy scanning trigger for PRs ( #10758 )
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
(cherry picked from commit fa6940d03d )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-09-06 11:30:23 -07:00
Derek Nola
6f099943fc
Fix caching name for e2e vagrant box ( #10695 )
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-09-04 11:50:40 -07:00
Derek Nola
6f91699a69
Update to newer OS images for install testing ( #10681 )
...
* Update to newer OS images for install testing
* Update vagrant images used for E2E
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-09-04 11:50:40 -07:00
Derek Nola
4323964859
[Release-1.30] July Test Backports ( #10507 )
...
* Move test-compat to GHA (#10414 )
Signed-off-by: Derek Nola <derek.nola@suse.com >
* For E2E upgrade test, automatically determine the channel to use (#10461 )
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-07-15 10:45:29 -07:00
Brad Davidson
f9130d537d
Fix embedded mirror blocked by SAR RBAC and re-enable test
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-05-31 08:33:18 -07:00
Derek Nola
6624273a97
Fix embeddedmirror test
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-03-28 10:12:54 -07:00
Derek Nola
c98ca14198
Add wasm test to e2e matrix
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-03-28 10:12:54 -07:00
Derek Nola
41377540fd
Use ubuntu latest for better golang caching keys ( #9711 )
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-03-27 09:19:56 -07:00
Derek Nola
21c170512c
Fix e2e vagrant cacheing
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-03-08 10:54:28 -08:00
Derek Nola
aea81c0822
Run docker tests in E2E GH Action
...
Build image with new input option
Run most of the basic docker tests in E2E
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-03-08 10:54:28 -08:00
Derek Nola
9bd4c8a9fc
Bump upload and download actions to v4 ( #9666 )
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-03-07 15:56:43 -08:00
Derek Nola
da7312d082
Convert snapshotter test in e2e test
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-03-06 14:04:05 -08:00
Derek Nola
d022a506d5
Migrate E2E tests to GitHub Actions
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-03-06 14:04:05 -08:00
Derek Nola
75ccaf9942
Allow non-sudo vagrant
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-03-06 14:04:05 -08:00
Derek Nola
29c73e6965
Fix setup-go typos ( #9634 )
...
* Fix setup-go typos
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-03-04 10:18:36 -08:00
Derek Nola
138a107f4c
Reenable Install and Snapshotter Testing ( #9601 )
...
* Use regular ubuntu runners for install and snapshotter tests
* Workaround for vagrant box caching
* Update testing readme
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-03-04 09:11:04 -08:00
Derek Nola
3e948aa0d5
Correct formatting of GH PR sha256sum artifact ( #9472 )
...
* Conform to how the install script wants the sha256sum name
* Remove no-op sed for GH PR install
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-03-01 08:45:01 -08:00
Derek Nola
8f777d04f8
Better GitHub CI caching strategy for golang ( #9495 )
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-03-01 08:41:09 -08:00
Manuel Buil
736fb2bc8d
Add an integration test for flannel-backend=none
...
Signed-off-by: Manuel Buil <mbuil@suse.com >
2024-03-01 12:08:09 +01:00
Derek Nola
fa37d03395
Update install test OS matrix ( #9480 )
...
* Remove old cgroupsv2 test
* Consolidate install test clauses into functions
* Unpin vagrant-k3s plugin version, run latest
* Add ubuntu-2204 as install test, remove ubuntu-focal
* Update nightly install matrix
* Move to Leap 15.5
* Consolidate vagrant box caching key to improve cache hits on all VM testing
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-02-29 15:41:56 -08:00
Derek Nola
922c5a6bed
Unit Testing Matrix and Actions bump ( #9479 )
...
cache is now on by default
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-02-29 15:41:05 -08:00
Brooks Newberry
3e13e3619c
Update Kubernetes to v1.29.2 ( #9493 )
...
Signed-off-by: Brooks Newberry <brooks@newberry.com >
2024-02-15 12:48:20 -08:00