Commit Graph

320 Commits

Author SHA1 Message Date
Brad Davidson
cd3f2e321e Fix completion command in e2e
Current syntax is incorrect, and while it doesn't break the test it is throwing an error in the logs

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-08-06 16:07:43 -03:00
Vitor Savian
ab0f5e00a2 Add retention flag specific for s3
* Add retention flag specific for s3
* Add retention for the unit tests:

Signed-off-by: Vitor Savian <vitor.savian@suse.com>
2025-08-05 14:06:52 -03:00
ERIK
f0d6958182 Add etcdmigration e2e test
Signed-off-by: bo.jiang <bo.jiang@daocloud.io>
(cherry picked from commit be35453220)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-07-14 18:24:23 -07:00
Derek Nola
2148e3129c [Release-1.32] GHA Artifacts + Testing Backports July 2025 (#12609)
* Move to more secure split trivy workflow based on labels, not comments (#12592)

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Add basic fuzz test

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Add retry around common timeout for hardened docker test (#12601)

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Remove ghcr build cache (#12602)

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Migrate K3s Release Artifacts to GHA (#12606)

Signed-off-by: Derek Nola <derek.nola@suse.com>

---------

Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-07-11 10:55:58 -07:00
Brad Davidson
7ce96aa080 Fix rootless e2e test
The install script was starting the service, and then the test itself was restarting it immediately thereafter, which caused frequent flakes.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 0446d79e27)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-06-13 11:08:21 -07:00
Derek Nola
f85eb9a74b Remove unused scripts files
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-06-10 09:18:55 -07:00
Brad Davidson
2b0107a935 Fix e2e startup test
Do more cleanup between runs, collect more logs on failure.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-05-16 09:55:56 -07:00
Derek Nola
5a764359b4 Better logging on E2E tests around metrics availability (#12198)
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-05-07 15:27:19 -07:00
Derek Nola
0162910d9e Address top flaky tests (#12163)
* ExternalIP E2E test: Improve clientIP checking
* E2E: Better top node error logs
* Skew test: increase deployment timeout

Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-05-07 15:27:19 -07:00
Derek Nola
62a30b52d9 Split E2E Drone pipeline into matrix (#12086)
* Split drone e2e into multiple blocks, explicit virsh cleanup

* Create multiple registries once and reuse as long as they exist

Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-04-16 11:37:55 -07:00
Derek Nola
2b3b4dde3d Address slow arm docker node startup
Signed-off-by: Derek Nola <derek.nola@suse.com>
(cherry picked from commit b5704e2623)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-04-11 14:27:56 -07:00
Brad Davidson
e3fc476a35 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:27:56 -07:00
Brad Davidson
d61005692d 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:27:56 -07:00
Derek Nola
b75630f5ec Implement secrets-encryption secretbox provider
- Add testlet for new provider switch
- Handle migration between providers
- Add exception for criticalcontrolargs
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-04-09 01:01:12 -04:00
Derek Nola
7d7a48883e Cleanup anonymous and named volumes for docker tests (#12079)
Remove named k3s-pause volume

Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-04-09 01:00:32 -04:00
Brad Davidson
89b5ea2da6 Add tests for control-plane component arg generation
Use mocked executor to ensure the correct args are being passed to components

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 1ba19856de)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-04-02 09:12:30 -07:00
Brad Davidson
93dd57abe3 Rework mock executor using gomock for call validation
Generate the mock executor with mockgen and convert existing uses of the mock executor to set it up properly.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 0eeac6a622)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-04-02 09:12:30 -07:00
Brad Davidson
a524556b3d Move etcd ready channel into executor
This eliminates the final channel that was being passed around in an internal struct. The ETCD management code passes in a func that can be polled until etcd is ready; the executor is responsible for polling this after etcd is started and closing the etcd ready channel at the correct time.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit d45006be66)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-03-31 17:06:46 -07:00
Brad Davidson
7bc833e6ac Fix etcd tests to use mock executor
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 72bbd676f1)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-03-31 17:06:46 -07:00
Brad Davidson
8b8b7d3714 Move container runtime ready channel into executor
Move the container runtime ready channel into the executor interface, instead of passing it awkwardly between server and agent config structs

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit a8bc412422)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-03-31 17:06:46 -07:00
Derek Nola
079ffa8d99 [Release-1.32] Fix upgrade test container version (#12000)
* Fix upgrade test container version

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Force docker test cleanup in CI

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Bump skew test deployment times

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Bump skew test timeout

Signed-off-by: Derek Nola <derek.nola@suse.com>

---------

Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-03-21 15:32:05 -05:00
Brooks Newberry
5f0c20038b fix skew test container version (#11991)
Signed-off-by: Brooks Newberry <brooks@newberry.com>
2025-03-20 02:25:35 -07:00
Derek Nola
7034b96c20 Fix flaky rootless E2E test
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-03-07 14:46:05 -08:00
Derek Nola
26e3fa9775 Reenable skew test for 1.32/master
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-03-06 09:15:00 -08:00
Derek Nola
268ea5ab7e Move away from docker e2e images, use gcr and ghcr
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-03-06 09:15:00 -08:00
Derek Nola
4c2de6ddfc Migrate svcpolicies E2E test to docker
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-03-06 09:15:00 -08:00
Derek Nola
0be54708b8 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-06 09:15:00 -08:00
Derek Nola
99f584526e Replace e2e.ParseNodes function with general ParseNodes and NodesReady test functions
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-03-06 09:15:00 -08:00
Derek Nola
9fb132505c Add E2E AllNodes helper function
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-03-06 09:15:00 -08:00
Derek Nola
3a35b3ac56 Migrate E2E SecretsEncryption to Docker test
Remove secrets encryption E2E from Drone

Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-03-06 09:15:00 -08:00
Derek Nola
86c84e1375 Migrate E2E autoimport to Docker test
Simplify DockerNode structs
Remove autoimport from E2E
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-03-06 09:15:00 -08:00
Derek Nola
6313488482 Remove unused docker tests
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-03-06 09:15:00 -08:00
Derek Nola
e8223b3895 Migrate hardened docker test
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-03-06 09:15:00 -08:00
Derek Nola
071c68b9d0 Fix various E2E test function names and descriptions
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-03-06 09:15:00 -08:00
Derek Nola
7c824e599b Migrate E2E Token test into a Docker Token test
Remove E2E token test

Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-03-06 09:15:00 -08:00
Derek Nola
74d1814965 Align docker and e2e variable spelling
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-03-06 09:15:00 -08:00
Brad Davidson
6332438269 e2e: wait for deployments before getting logs
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-02-20 18:07:17 -08:00
Brad Davidson
ebd1cac98c e2e: Fix curl test timeouts
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-02-20 18:07:17 -08:00
Rafael
45ac764531 [release-1.32] Update to v1.32.2-k3s1 and Go 1.23.6 (#11788)
* Update to v1.32.2

Signed-off-by: Rafael Breno <32229014+rafaelbreno@users.noreply.github.com>

* Increase test timeout

Signed-off-by: Rafael Breno <32229014+rafaelbreno@users.noreply.github.com>

---------

Signed-off-by: Rafael Breno <32229014+rafaelbreno@users.noreply.github.com>
2025-02-16 16:57:02 -03:00
Brad Davidson
ff6369579a Fix FetchIngressIP error checking
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-02-10 10:16:03 -08:00
Brad Davidson
639931cb59 Fix wasm ingress test
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 04ed6c0996)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-02-10 10:16:03 -08:00
Derek Nola
e89c8c024b Improve error checks around FetchIngressIP
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-02-07 12:39:49 -08:00
Derek Nola
fe34432189 Check the deployments in E2E WASM test
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-02-07 12:39:49 -08:00
Derek Nola
ef4abfd303 Fix skew test on v1.31 and older
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-02-07 12:39:49 -08:00
Derek Nola
77c2b9bf69 Convert docker conformance test to go test framework (#11643)
* Migrate conformance docker test

Switch to hydrophone from sonobuoy
Support serial conformance

* Replace docker tests with go version on arm32 Drone pipeline
* Support multiple DB, push hydrophone logs to test output
* Replace  etcd and sqlite conformance tests with golang versions
* Retry on flaky btrfs section
* Fix db cleanup for sqlite, be explicit on the dbtype

Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-02-07 12:39:49 -08:00
Derek Nola
5509a86b0b 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 12:39:49 -08:00
Derek Nola
9e2dd07921 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 12:39:49 -08:00
Derek Nola
7a91f6eb24 assign GOCOVERDIR in docker tests
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-02-07 12:39:49 -08:00
Derek Nola
f4062557ef Convert snapshotrestore from E2E to Docker test
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-02-07 12:39:49 -08:00
Derek Nola
f30f13c4d9 DRY Docker test configuration strucutres - Reduce TestConfig fields, rename secret -> token - remove unused ENV control vars - Consolidate DeployWorkload function similar to E2E function
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-02-07 12:39:49 -08:00