mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-17 20:00:07 +00:00
* Fix test flakiness caused by shadowed error in reboot test and stale pods affecting eviction test - Fixed a bug in `ExecCommandInContainerWithFullOutput` usage in `hybrid_network.go` where the `err` variable was shadowed, causing test failures to be silently ignored. - Added cleanup logic in `eviction.go` to explicitly delete pods created by the reboot node test (e.g., `img-puller`, `reboot-host-test-windows`) before starting the eviction test. - This improves reliability of the eviction test when the reboot test runs beforehand and leaves behind memory-consuming pods. * Add cleanup containers in reboot node test * Workaround for Calico HNS issue by avoiding eviction of undeletable pods Add a workaround for a known Calico issue (https://github.com/projectcalico/calico/issues/6974) where pods on Windows nodes may become undeletable after a reboot. This causes the eviction manager to attempt evicting these pods but fail due to HNS namespace deletion errors. The workaround avoids scheduling critical test pods on rebooted nodes to prevent interference. TODO: Remove this workaround once the Calico issue is resolved. * Fix the lint issue. * Address comments
Notes to run sig-windows tests
- Prereqs:
KUBECONFIG=path/to/kubeconfig
curl https://raw.githubusercontent.com/kubernetes-sigs/windows-testing/master/images/image-repo-list -o repo_list
export KUBE_TEST_REPO_LIST=$(pwd)/repo_list
-
Run only sig-windows tests:
./e2e.test --provider=local --ginkgo.no-color --ginkgo.focus="\[sig-windows\]|\[Feature:Windows\]" --node-os-distro="windows"
e2e_node/density_test diff
This test is borrowed from the density test in e2e_node/density_test. All but the first test were omitted as well as some logging.