docs/adrs/testing-2024.md
Date: 2024-02-23
Accepted
Currently, Testing in K3s is categorized into various types and spread across Github Actions and Drone CI. The types are as follows:
GitHub Actions:
Drone CI:
Docker Tests: Run clusters in containers to test basic functionality. Broken into:
End-to-End (E2E) Tests: Cover multi-node configuration/administration.
Performance Tests: Use Terraform to test large-scale deployments of K3s clusters. These were legacy tests and are never run in CI.
As of late January 2024, GitHub Actions has made significant improvements:
We will move towards a single testing platform, GitHub Actions, and leverage the recent improvements in resources and nested virtualization support. This will involve the following changes:
Test distribution based on size and complexity:
Consolidating all testing-related files within the "tests" directory for better organization and clarity.
Cgroup smoke tests will be removed. As multiple Operating Systems now support CgroupV2 by default, these tests are no longer relevant.
Snapshotter smoke test will be converted into a full E2E test.
Remove of old performance tests, as they are no longer relevant. Scale testing is already handled by QA as needed.
Tracking these changes is with this issue