Commit graph

350 commits

Author SHA1 Message Date
Brad Davidson
ec3cc04214 Move CNI execution into executor
Allows properly delegating CNI startup to executor, so that it can be plugged in as platform and distro specific implimentation without relying on cli flag hacks

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-12-08 12:53:10 -08:00
Derek Nola
0d39c86b5c Move from ranchertest to mirrored-busybox
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-12-08 09:09:40 -08:00
Derek Nola
cd08e731f6 Fix naming convention for docker test import
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-12-08 09:09:40 -08:00
Derek Nola
572cc8e2bf Consolidate RunCommand between Docker and E2E tests
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-12-08 09:09:40 -08:00
Xelus22
8e0676ad46
update busybox image version to 1.37.0 (#13237)
Some checks failed
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Signed-off-by: Xelus22 <xelus22@gmail.com>
Co-authored-by: Xelus22 <xelus22@gmail.com>
2025-11-25 11:55:06 -08:00
Brad Davidson
96ed4393c1 Remove remaining references to drone
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-11-24 11:23:49 -08:00
thomasferrandiz
46cca2402f
Merge pull request #13216 from thomasferrandiz/add-multus-test-2
Some checks are pending
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Add multus e2e test
2025-11-24 09:29:56 +01:00
Brad Davidson
74088f5175 Use docker containerd snapshotter for stable image digests
The legacy Docker snapshotter flattens application/vnd.docker.distribution.manifest.v2+json manifests to application/vnd.oci.image.manifest.v1+json when saving. Switching to the containerd snapshotter allows us to keep the original manifest digest when pulling and saving image tarballs.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-11-21 09:25:00 -08:00
Brad Davidson
af441c29a0 Add test for sharing imported images by digest
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-11-21 09:25:00 -08:00
Thomas Ferrandiz
871094b5c6 Add multus e2e test
We test that a basic deployment of the latest multus chart works
correctly.

Signed-off-by: Thomas Ferrandiz <thomas.ferrandiz@suse.com>
2025-11-21 13:05:52 +00:00
Derek Nola
b8f6f958c8
Streamline E2E startup test (#13137)
Some checks failed
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
* Streamline E2E startup test

- Remove ineffective testlet on prefer-bundled-bin
- Minimize waiting for kubeconfig testlet
- Only kill docker containers for cri-dockerd testlet
* Migrate bad token testlet from E2E to Integration test

Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-11-03 09:03:07 -08:00
Brad Davidson
d8790220ff Move node password secrets into dedicated controller
Some checks are pending
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Move the node password secret cleanup into its own dedicated controller
that also handles auth. We now use a filtered cache of only
node-password secrets, instead of using the wrangler secret cache,
which stores all secrets from all namespaces.

The coredns node-hosts controller also now uses a single-resource
watch cache on the coredns configmap, instead of reading it from
the apiserver every time a node changes.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-10-27 15:06:45 -07:00
Derek Nola
cfcc9ef65e
Add docker dualstack test (#13070)
Some checks are pending
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-10-22 10:38:21 -07:00
Derek Nola
517df31f65
Fix postgres DB container args for nightly conformance (#13069)
Some checks failed
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-10-16 09:00:47 -07:00
Brad Davidson
a26fd3ba4d Disable metrics test pending resolution of upstream issue
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-09-24 09:55:04 -07:00
Brad Davidson
1026725896 Enable debug logs for embedded mirror e2e
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-09-24 09:55:04 -07:00
Ben
ade82387f7
Inclusive naming proposal (issue: #12110, Orlin Vasiliev) (#12383)
* Inclusive naming proposal (issue: #12110, Orlin Vasiliev)

Basic renaming from 'master' to 'main' as primary branch according to https://github.com/cncf/foundation/blob/main/code-of-conduct.md#our-standards

Signed-off-by: Andrea Benini <andreabenini@gmail.com>
Signed-off-by: Derek Nola <derek.nola@suse.com>

* Additional replacement of master with main in E2E testing, Github Action workflows

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

---------

Signed-off-by: Andrea Benini <andreabenini@gmail.com>
Signed-off-by: Derek Nola <derek.nola@suse.com>
Co-authored-by: Derek Nola <derek.nola@suse.com>
2025-09-24 08:52:28 -07:00
Brad Davidson
5b19165e9e Fix pods readiness tests
Test should not succeed when there are no pods, or when helm-install
pods are still running.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-09-18 16:31:15 -07:00
Brad Davidson
a0ce2aaeaf Add sequential split-server test
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-09-18 16:31:15 -07:00
Brad Davidson
4974fc7c24 Use sync.WaitGroup to avoid exiting before components have shut down
Currently only waits on etcd and kine, as other components
are stateless and do not need to shut down cleanly.

Terminal but non-fatal errors now request shutdown via context
cancellation, instead of just logging a fatal error.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-09-17 09:37:08 -07:00
Derek Nola
07d0711e5a
Update hardened script for cis-1.11 (#12912)
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-09-16 11:02:28 -07:00
Brad Davidson
4d1f1affcb
Fix caceertrotation test; add kine to matrix
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-09-05 17:07:43 +00:00
Brad Davidson
1ae5ec3d74 Upload integration test logs on failure
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-09-03 09:52:51 -07:00
Brad Davidson
e47c497a3e Bump containerd to v2.1.4
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-08-26 10:15:38 -07:00
Derek Nola
ff6abe8a84
Fix pid tracking for conformance tests (#12714)
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-08-06 09:15:51 -07:00
Brad Davidson
be729fc98f 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-01 08:51:33 -07:00
Vitor Savian
a238f33cdd
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-07-28 13:42:09 -03:00
Derek Nola
3b06d9d6e2
Add retry around common timeout for hardened docker test (#12601)
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-07-11 09:31:47 -07:00
bo.jiang
aa18062f2e docs: Fix broken links in markdown documentation
Signed-off-by: bo.jiang <bo.jiang@daocloud.io>
2025-06-26 10:57:17 +02:00
ERIK
be35453220 Add etcdmigration e2e test
Signed-off-by: bo.jiang <bo.jiang@daocloud.io>
2025-06-24 12:34:13 -07:00
Derek Nola
eb6fa3a230 Correctly track conformance test pids
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-06-18 09:19:18 -07:00
Brad Davidson
c40bb449ba 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>
2025-06-12 17:17:49 -07:00
Derek Nola
8e27803cea
Fix conformance labeling on CI, no tty (#12450)
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-06-06 09:35:16 -07:00
Derek Nola
b33b71371a
Convert all nightly conformance to golang test framework (#12422)
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-06-02 14:48:19 -07:00
Derek Nola
1797b5abc1 Remove unused scripts files
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-05-30 10:59:49 -07:00
Brad Davidson
8d8d1f43bd 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:39:27 -07:00
Derek Nola
edfe8c6618
Better logging on E2E tests around metrics availability (#12198)
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-05-02 10:31:23 -07:00
Derek Nola
0226ea511c
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-04-17 15:10:55 -07:00
Derek Nola
f8c55a1228 Remove names k3s-pause volume in cacert test
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-04-17 08:59:06 -07:00
Derek Nola
4e8d85a2e4
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-14 13:44:48 -07:00
Derek Nola
b5704e2623 Address slow arm docker node startup
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-04-10 18:55:14 -04:00
Brad Davidson
cd4be0b8c1 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>
2025-04-09 09:25:43 -07:00
Brad Davidson
08c6c7423b 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>
2025-04-08 15:28:41 -07:00
Derek Nola
278c7bd480
Cleanup anonymous and named volumes for docker tests (#12069)
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-04-07 18:26:00 -04:00
Derek Nola
aea3703f68 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-07 09:08:22 -07:00
Brad Davidson
1ba19856de 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>
2025-03-31 17:09:43 -07:00
Brad Davidson
0eeac6a622 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>
2025-03-31 17:09:43 -07:00
Brad Davidson
d45006be66 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>
2025-03-24 12:42:29 -07:00
Brad Davidson
72bbd676f1 Fix etcd tests to use mock executor
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-03-24 12:42:29 -07:00
Brad Davidson
a8bc412422 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>
2025-03-24 12:42:29 -07:00