kubernetes/test/e2e_node
Patrick Ohly 136f89dfc5 e2e: use error wrapping with %w
The recently introduced failure handling in ExpectNoError depends on error
wrapping: if an error prefix gets added with `fmt.Errorf("foo: %v", err)`, then
ExpectNoError cannot detect that the root cause is an assertion failure and
then will add another useless "unexpected error" prefix and will not dump the
additional failure information (currently the backtrace inside the E2E
framework).

Instead of manually deciding on a case-by-case basis where %w is needed, all
error wrapping was updated automatically with

    sed -i "s/fmt.Errorf\(.*\): '*\(%s\|%v\)'*\",\(.* err)\)/fmt.Errorf\1: %w\",\3/" $(git grep -l 'fmt.Errorf' test/e2e*)

This may be unnecessary in some cases, but it's not wrong.
2023-02-06 15:39:13 +01:00
..
builder update ginkgo from v1 to v2 and gomega to 1.19.0 2022-07-08 10:44:46 +08:00
conformance stop using deprecated klog flags 2022-09-04 21:02:43 +02:00
environment Merge pull request #109753 from matthyx/109577 2022-05-13 07:33:49 -07:00
gcp e2e: accept context from Ginkgo 2022-12-10 19:50:18 +01:00
jenkins Remove generated file rules in make 2022-10-04 08:50:30 -07:00
kubeletconfig io/ioutil has already been deprecated in golang 1.16, so replace all ioutil with io and os 2022-02-03 05:32:12 +08:00
perf/workloads e2e: use error wrapping with %w 2023-02-06 15:39:13 +01:00
perftype hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
plugins/gcp-credential-provider Update test to validate against v1 kubelet APIs 2022-10-03 17:57:25 +00:00
remote e2e: use error wrapping with %w 2023-02-06 15:39:13 +01:00
runner e2e: use error wrapping with %w 2023-02-06 15:39:13 +01:00
services e2e: use error wrapping with %w 2023-02-06 15:39:13 +01:00
system hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
testing-manifests chroe: add k8s node-role.kubernetes.io/control-plane taint 2023-01-02 21:04:43 +08:00
apparmor_test.go e2e: use error wrapping with %w 2023-02-06 15:39:13 +01:00
benchmark_util.go e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
checkpoint_container.go Extend checkpoint e2e test to check for results 2023-01-23 18:07:35 +00:00
container_log_rotation_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
container_manager_test.go e2e: use error wrapping with %w 2023-02-06 15:39:13 +01:00
cpu_manager_metrics_test.go node: e2e: cpumgr: Rename: s/getCPUManagerMetrics/getKubeletMetrics 2023-01-19 14:18:05 +00:00
cpu_manager_test.go cpuset: Delete 'builder' methods 2023-01-06 23:32:51 +00:00
critical_pod_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
density_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
device_manager_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
device_plugin_test.go test: Fix node e2e device plugin flake 2023-01-31 17:36:10 -08:00
doc.go fix golint issues in test/e2e_node 2019-11-26 16:26:55 +08:00
e2e_node_suite_test.go e2e: use error wrapping with %w 2023-02-06 15:39:13 +01:00
eviction_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
framework.go update ginkgo from v1 to v2 and gomega to 1.19.0 2022-07-08 10:44:46 +08:00
garbage_collector_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
gubernator.sh fix test/e2e_node/gubernator.sh shellcheck failures 2019-06-23 17:01:54 -07:00
hugepages_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
image_credential_provider.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
image_id_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
image_list.go e2e: use error wrapping with %w 2023-02-06 15:39:13 +01:00
lock_contention_linux_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
log_path_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
memory_manager_test.go e2e: use error wrapping with %w 2023-02-06 15:39:13 +01:00
mirror_pod_grace_period_test.go e2e: use error wrapping with %w 2023-02-06 15:39:13 +01:00
mirror_pod_test.go e2e: use error wrapping with %w 2023-02-06 15:39:13 +01:00
node_container_manager_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
node_perf_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
node_problem_detector_linux.go e2e: replace WaitForPodToDisappear with WaitForPodNotFoundInNamespace 2023-02-06 15:39:12 +01:00
node_shutdown_linux_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
numa_alignment.go cpuset: Make 'ToSlice*' methods look like 'set' methods 2023-01-06 23:32:51 +00:00
os_label_rename_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
OWNERS Remove ehashman from sig-node roles 2022-11-01 12:16:43 -07:00
pids_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
pod_conditions_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
pod_hostnamefqdn_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
podresources_test.go cpuset: Delete 'builder' methods 2023-01-06 23:32:51 +00:00
pods_container_manager_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
quota_lsci_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
README.md Removed broken link to Analytics 2020-08-13 16:03:37 -04:00
resource_collector.go e2e: use error wrapping with %w 2023-02-06 15:39:13 +01:00
resource_metrics_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
resource_usage_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
restart_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
runtime_conformance_test.go e2e: use error wrapping with %w 2023-02-06 15:39:13 +01:00
runtimeclass_test.go e2e node: Update runtime class handler skip logic 2023-01-24 14:43:24 -08:00
seccompdefault_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
security_context_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
summary_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
system_node_critical_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
topology_manager_metrics_test.go node: e2e: topologymgr: add tests for topology manager metrics 2023-01-19 14:40:37 +00:00
topology_manager_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
util_kubevirt.go podresource: do not export NUMA topology if it's empty 2021-08-24 15:38:21 +00:00
util_sriov_linux.go e2e: TM: add option to fail instead of skip 2021-09-13 13:23:36 +02:00
util_sriov_unsupported.go e2e: TM: add option to fail instead of skip 2021-09-13 13:23:36 +02:00
util_sriov.go e2e: TM: add option to fail instead of skip 2021-09-13 13:23:36 +02:00
util_xfs_linux.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
util_xfs_unsupported.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
util.go e2e: use error wrapping with %w 2023-02-06 15:39:13 +01:00
utils_linux.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
utils_unsupported.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
volume_manager_test.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00