kubernetes/test
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
..
cmd Merge pull request #113542 from ardaguclu/fix-shortname-disperancy 2023-01-03 09:29:43 -08:00
conformance Merge pull request #115214 from ii/create-apiservice-test-v4 2023-01-31 07:38:49 -08:00
e2e e2e: use error wrapping with %w 2023-02-06 15:39:13 +01:00
e2e_kubeadm e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
e2e_node e2e: use error wrapping with %w 2023-02-06 15:39:13 +01:00
fixtures Updating pause image refernces to 3.9 2022-11-14 10:24:54 -08:00
fuzz
images [go] Bump images, dependencies and versions to go 1.20 2023-02-03 22:55:24 +01:00
instrumentation Make generated-stable-metrics use git ls-files 2023-01-22 15:22:55 -08:00
integration Add integration tests for StatefulSetStartOrdinal feature (#115466) 2023-02-03 05:26:29 -08:00
kubemark Drop unsupported iks configuration for kubemark 2022-09-25 17:33:22 -04:00
list
soak/serve_hostnames fix typos 2022-06-15 13:38:48 +09:00
typecheck Avoid typechecking stdlib 2023-01-28 23:32:50 -05:00
utils etcd: Update to version 3.5.7 2023-01-27 17:24:00 +01:00
OWNERS test/OWNERS: add pohly as approver 2023-01-09 09:54:10 +01:00