This job view page is being replaced by Spyglass soon. Check out the new job view.
PRvincepri: ⚠️ Refactor manager to avoid race conditions and provide clean shutdown
ResultFAILURE
Tests 1 failed / 1084 succeeded
Started2021-10-13 19:20
Elapsed4m35s
Revisiond219fb532f2f2a86c5d688b2736149a35a103cfe
Refs 1695

Test Failures


Manager Suite manger.Manager Start with leaderelection enabled should wait for runnables to stop 0.46s

go run hack/e2e.go -v --test --test_args='--ginkgo.focus=Manager\sSuite\smanger\.Manager\sStart\swith\sleaderelection\senabled\sshould\swait\sfor\srunnables\sto\sstop$'
/home/prow/go/src/sigs.k8s.io/controller-runtime/pkg/manager/manager_test.go:815
Unexpected error:
    <*errors.errorString | 0xc0002b2b60>: {
        s: "timed out waiting for the condition",
    }
    timed out waiting for the condition
occurred
/home/prow/go/src/sigs.k8s.io/controller-runtime/pkg/manager/manager_test.go:856
				
				Click to see stdout/stderrfrom junit_Manager Suite_1.xml

Filter through log files | View test history on testgrid


Show 1084 Passed Tests

Show 39 Skipped Tests

Error lines from build-log.txt

... skipping 222 lines ...
Will run 82 of 82 specs

••••••••••••••••••••I1013 19:23:55.735062   17713 leaderelection.go:248] attempting to acquire leader lease default/test-leader-election-id-2...
I1013 19:23:55.772057   17713 leaderelection.go:258] successfully acquired lease default/test-leader-election-id-2
•I1013 19:23:56.020987   17713 leaderelection.go:248] attempting to acquire leader lease default/test-leader-election-id-3...
I1013 19:23:56.040365   17713 leaderelection.go:258] successfully acquired lease default/test-leader-election-id-3
E1013 19:23:56.042322   17713 leaderelection.go:330] error retrieving resource lock default/test-leader-election-id-3: Get "https://127.0.0.1:37945/api/v1/namespaces/default/configmaps/test-leader-election-id-3": context canceled
I1013 19:23:56.042631   17713 leaderelection.go:283] failed to renew lease default/test-leader-election-id-3: timed out waiting for the condition
•I1013 19:23:56.314759   17713 leaderelection.go:248] attempting to acquire leader lease default/test-leader-election-id...
I1013 19:23:56.329478   17713 leaderelection.go:258] successfully acquired lease default/test-leader-election-id
I1013 19:23:56.535283   17713 leaderelection.go:248] attempting to acquire leader lease default/test-leader-election-id...
•••••I1013 19:23:57.082049   17713 leaderelection.go:248] attempting to acquire leader lease a765f104-2c5a-11ec-a43b-3a3c05ae6ad7_5ebc913f-8d73-4f90-b79c-cfe7b8fd0d18...
I1013 19:23:57.082365   17713 leaderelection.go:258] successfully acquired lease a765f104-2c5a-11ec-a43b-3a3c05ae6ad7_5ebc913f-8d73-4f90-b79c-cfe7b8fd0d18
••••••••••••••••••••I1013 19:24:00.902883   17713 leaderelection.go:248] attempting to acquire leader lease a765f104-2c5a-11ec-a43b-3a3c05ae6ad7_e32dac87-0dbb-415b-828e-414bb3fa908d...
... skipping 21 lines ...
  /home/prow/go/src/sigs.k8s.io/controller-runtime/pkg/manager/manager_test.go:585
    with leaderelection enabled
    /home/prow/go/src/sigs.k8s.io/controller-runtime/pkg/manager/manager_test.go:1056
      should wait for runnables to stop [It]
      /home/prow/go/src/sigs.k8s.io/controller-runtime/pkg/manager/manager_test.go:815

      Unexpected error:
          <*errors.errorString | 0xc0002b2b60>: {
              s: "timed out waiting for the condition",
          }
          timed out waiting for the condition
      occurred

      /home/prow/go/src/sigs.k8s.io/controller-runtime/pkg/manager/manager_test.go:856
------------------------------
1.6341530420525365e+09	INFO	Stopping and waiting for non leader election runnables
1.6341530420528023e+09	INFO	Stopping and waiting for leader election runnables
1.6341530420530047e+09	INFO	Stopping and waiting for caches
1.6341530420531929e+09	INFO	Stopping and waiting for webhooks
1.6341530420534024e+09	ERROR	error received after stop sequence was engaged	{"error": "timed out waiting for the condition"}
1.6341530420536313e+09	INFO	Wait completed, proceeding to shutdown the manager
1.6341530420539596e+09	ERROR	error received after stop sequence was engaged	{"error": "leader election lost"}
1.6341530422099538e+09	INFO	Stopping and waiting for non leader election runnables
1.634153042210295e+09	INFO	Stopping and waiting for leader election runnables
1.6341530425089824e+09	INFO	Stopping and waiting for caches
1.6341530425091946e+09	INFO	Stopping and waiting for webhooks
1.6341530425092993e+09	INFO	Wait completed, proceeding to shutdown the manager
1.634153042509448e+09	ERROR	error received after stop sequence was engaged	{"error": "leader election lost"}
I1013 19:24:02.659762   17713 leaderelection.go:248] attempting to acquire leader lease a765f104-2c5a-11ec-a43b-3a3c05ae6ad7_21124cd9-789b-4fd0-a8f6-08c82b61c15a...
I1013 19:24:02.660074   17713 leaderelection.go:258] successfully acquired lease a765f104-2c5a-11ec-a43b-3a3c05ae6ad7_21124cd9-789b-4fd0-a8f6-08c82b61c15a
•I1013 19:24:02.825835   17713 leaderelection.go:248] attempting to acquire leader lease a765f104-2c5a-11ec-a43b-3a3c05ae6ad7_e21556ef-9c73-4ecf-8227-7ef9e72eb7c8...
I1013 19:24:02.826090   17713 leaderelection.go:258] successfully acquired lease a765f104-2c5a-11ec-a43b-3a3c05ae6ad7_e21556ef-9c73-4ecf-8227-7ef9e72eb7c8
•I1013 19:24:03.099407   17713 leaderelection.go:248] attempting to acquire leader lease a765f104-2c5a-11ec-a43b-3a3c05ae6ad7_26734691-a63c-4df9-bd27-d8ec9744597b...
I1013 19:24:03.099737   17713 leaderelection.go:258] successfully acquired lease a765f104-2c5a-11ec-a43b-3a3c05ae6ad7_26734691-a63c-4df9-bd27-d8ec9744597b
... skipping 7 lines ...

JUnit report was created: /logs/artifacts/junit_Manager Suite_1.xml


Summarizing 1 Failure:

[Fail] manger.Manager Start with leaderelection enabled [It] should wait for runnables to stop 
/home/prow/go/src/sigs.k8s.io/controller-runtime/pkg/manager/manager_test.go:856

Ran 82 of 82 Specs in 25.489 seconds
FAIL! -- 81 Passed | 1 Failed | 0 Pending | 0 Skipped
You're using deprecated Ginkgo functionality:
=============================================
Ginkgo 2.0 is under active development and will introduce (a small number of) breaking changes.
To learn more, view the migration guide at https://github.com/onsi/ginkgo/blob/v2/docs/MIGRATING_TO_V2.md
To comment, chime in at https://github.com/onsi/ginkgo/issues/711

... skipping 2 lines ...
  If this change will be impactful to you please leave a comment on https://github.com/onsi/ginkgo/issues/711
  Learn more at: https://github.com/onsi/ginkgo/blob/v2/docs/MIGRATING_TO_V2.md#removed-custom-reporters

To silence deprecations that can be silenced set the following environment variable:
  ACK_GINKGO_DEPRECATIONS=1.16.4

--- FAIL: TestSource (25.93s)
FAIL
FAIL	sigs.k8s.io/controller-runtime/pkg/manager	26.118s
ok  	sigs.k8s.io/controller-runtime/pkg/manager/signals	1.085s
?   	sigs.k8s.io/controller-runtime/pkg/metrics	[no test files]
?   	sigs.k8s.io/controller-runtime/pkg/patterns/application	[no test files]
?   	sigs.k8s.io/controller-runtime/pkg/patterns/operator	[no test files]
ok  	sigs.k8s.io/controller-runtime/pkg/predicate	0.334s
?   	sigs.k8s.io/controller-runtime/pkg/ratelimiter	[no test files]
... skipping 7 lines ...
ok  	sigs.k8s.io/controller-runtime/pkg/webhook	15.470s
ok  	sigs.k8s.io/controller-runtime/pkg/webhook/admission	0.468s
?   	sigs.k8s.io/controller-runtime/pkg/webhook/admission/admissiontest	[no test files]
ok  	sigs.k8s.io/controller-runtime/pkg/webhook/authentication	0.354s
ok  	sigs.k8s.io/controller-runtime/pkg/webhook/conversion	0.281s
?   	sigs.k8s.io/controller-runtime/pkg/webhook/internal/metrics	[no test files]
FAIL