mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Update flaky tests for v1.24 (#5625)
* Update flaky tests for v1.24 * Consolidate flaky-test regex into file Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
parent
491aa11e10
commit
f491802b44
5
scripts/flaky-tests
Normal file
5
scripts/flaky-tests
Normal file
@ -0,0 +1,5 @@
|
||||
[Fail] [sig-node] Pods [It] should run through the lifecycle of Pods and PodStatus [Conformance]
|
||||
[Fail] [sig-node] KubeletManagedEtcHosts [It] should test kubelet managed /etc/hosts file [LinuxOnly] [NodeConformance] [Conformance]
|
||||
[Fail] [sig-api-machinery] AdmissionWebhook [Privileged:ClusterAdmin] [It] should be able to deny pod and configmap creation [Conformance]
|
||||
[Fail] [sig-apps] Deployment [It] should run the lifecycle of a Deployment [Conformance]
|
||||
[Fail] [sig-api-machinery] AdmissionWebhook [Privileged:ClusterAdmin] [It] listing validating webhooks should work [Conformance]
|
@ -19,11 +19,7 @@ test-post-hook() {
|
||||
fi
|
||||
local failures=$(awk '/^Summarizing .* Failures?:$/,0' "$TEST_DIR"/sonobuoy/plugins/e2e/results/global/e2e.log)
|
||||
# Ignore sonobuoy failures if only these flaky tests have failed
|
||||
local flakyTest1='[Fail] [sig-node] Probing container [It] should have monotonically increasing restart count [NodeConformance] [Conformance]'
|
||||
local flakyTest2='[Fail] [sig-node] Pods [It] should delete a collection of pods [Conformance]'
|
||||
local flakyTest3='[Fail] [sig-network] Proxy version v1 [It] A set of valid responses are returned for both pod and service ProxyWithPath [Conformance]'
|
||||
local flakyTest4='[Fail] [sig-node] Pods [It] should run through the lifecycle of Pods and PodStatus [Conformance]'
|
||||
flakyFails=$( grep -scF -e "$flakyTest1" -e "$flakyTest2" -e "$flakyTest3" -e "$flakyTest4" <<< "$failures" )
|
||||
flakyFails=$( grep -scF -f ./scripts/flaky-tests <<< "$failures" )
|
||||
totalFails=$( grep -scF -e "[Fail]" <<< "$failures" )
|
||||
[ "$totalFails" -le "$flakyFails" ]
|
||||
}
|
||||
|
@ -20,11 +20,7 @@ test-post-hook() {
|
||||
fi
|
||||
local failures=$(awk '/^Summarizing .* Failures?:$/,0' "$TEST_DIR"/sonobuoy/plugins/e2e/results/global/e2e.log)
|
||||
# Ignore sonobuoy failures if only these flaky tests have failed
|
||||
local flakyTest1='[Fail] [sig-node] Probing container [It] should have monotonically increasing restart count [NodeConformance] [Conformance]'
|
||||
local flakyTest2='[Fail] [sig-node] Pods [It] should delete a collection of pods [Conformance]'
|
||||
local flakyTest3='[Fail] [sig-node] Pods [It] should run through the lifecycle of Pods and PodStatus [Conformance]'
|
||||
local flakyTest4='[Fail] [sig-network] Proxy version v1 [It] A set of valid responses are returned for both pod and service ProxyWithPath [Conformance]'
|
||||
flakyFails=$( grep -scF -e "$flakyTest1" -e "$flakyTest2" -e "$flakyTest3" -e "$flakyTest4" <<< "$failures" )
|
||||
flakyFails=$( grep -scF -f ./scripts/flaky-tests <<< "$failures" )
|
||||
totalFails=$( grep -scF -e "[Fail]" <<< "$failures" )
|
||||
[ "$totalFails" -le "$flakyFails" ]
|
||||
}
|
||||
|
@ -61,11 +61,7 @@ test-post-hook() {
|
||||
fi
|
||||
local failures=$(awk '/^Summarizing .* Failures?:$/,0' "$TEST_DIR"/sonobuoy/plugins/e2e/results/global/e2e.log)
|
||||
# Ignore sonobuoy failures if only these flaky tests have failed
|
||||
local flakyTest1='[Fail] [sig-node] Probing container [It] should have monotonically increasing restart count [NodeConformance] [Conformance]'
|
||||
local flakyTest2='[Fail] [sig-node] Pods [It] should delete a collection of pods [Conformance]'
|
||||
local flakyTest3='[Fail] [sig-node] Pods [It] should run through the lifecycle of Pods and PodStatus [Conformance]'
|
||||
local flakyTest4='[Fail] [sig-network] Proxy version v1 [It] A set of valid responses are returned for both pod and service ProxyWithPath [Conformance]'
|
||||
flakyFails=$( grep -scF -e "$flakyTest1" -e "$flakyTest2" -e "$flakyTest3" -e "$flakyTest4" <<< "$failures" )
|
||||
flakyFails=$( grep -scF -f ./scripts/flaky-tests <<< "$failures" )
|
||||
totalFails=$( grep -scF -e "[Fail]" <<< "$failures" )
|
||||
[ "$totalFails" -le "$flakyFails" ]
|
||||
}
|
||||
|
@ -61,11 +61,7 @@ test-post-hook() {
|
||||
fi
|
||||
local failures=$(awk '/^Summarizing .* Failures?:$/,0' "$TEST_DIR"/sonobuoy/plugins/e2e/results/global/e2e.log)
|
||||
# Ignore sonobuoy failures if only these flaky tests have failed
|
||||
local flakyTest1='[Fail] [sig-node] Probing container [It] should have monotonically increasing restart count [NodeConformance] [Conformance]'
|
||||
local flakyTest2='[Fail] [sig-node] Pods [It] should delete a collection of pods [Conformance]'
|
||||
local flakyTest3='[Fail] [sig-node] Pods [It] should run through the lifecycle of Pods and PodStatus [Conformance]'
|
||||
local flakyTest4='[Fail] [sig-network] Proxy version v1 [It] A set of valid responses are returned for both pod and service ProxyWithPath [Conformance]'
|
||||
flakyFails=$( grep -scF -e "$flakyTest1" -e "$flakyTest2" -e "$flakyTest3" -e "$flakyTest4" <<< "$failures" )
|
||||
flakyFails=$( grep -scF -f ./scripts/flaky-tests <<< "$failures" )
|
||||
totalFails=$( grep -scF -e "[Fail]" <<< "$failures" )
|
||||
[ "$totalFails" -le "$flakyFails" ]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user