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:10
Elapsed4m22s
Revisionbe5d9bda8313607362cef629fdda887d3a21a5aa
Refs 1695

Test Failures


Manager Suite manger.Manager Start with leaderelection enabled should return an error if any Components fail to Start and wait for runnables to stop 0.06s

go run hack/e2e.go -v --test --test_args='--ginkgo.focus=Manager\sSuite\smanger\.Manager\sStart\swith\sleaderelection\senabled\sshould\sreturn\san\serror\sif\sany\sComponents\sfail\sto\sStart\sand\swait\sfor\srunnables\sto\sstop$'
/home/prow/go/src/sigs.k8s.io/controller-runtime/pkg/manager/manager_test.go:867
Expected
    <int>: 1
to equal
    <int>: 2
/home/prow/go/src/sigs.k8s.io/controller-runtime/pkg/manager/manager_test.go:898
				
				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 221 lines ...
Will run 82 of 82 specs

••••••••••••••••••••I1013 19:13:07.627691   17831 leaderelection.go:248] attempting to acquire leader lease default/test-leader-election-id-2...
I1013 19:13:07.685518   17831 leaderelection.go:258] successfully acquired lease default/test-leader-election-id-2
•I1013 19:13:07.947069   17831 leaderelection.go:248] attempting to acquire leader lease default/test-leader-election-id-3...
I1013 19:13:07.969840   17831 leaderelection.go:258] successfully acquired lease default/test-leader-election-id-3
E1013 19:13:07.972698   17831 leaderelection.go:330] error retrieving resource lock default/test-leader-election-id-3: Get "https://127.0.0.1:34911/api/v1/namespaces/default/configmaps/test-leader-election-id-3": context canceled
I1013 19:13:07.973067   17831 leaderelection.go:283] failed to renew lease default/test-leader-election-id-3: timed out waiting for the condition
•I1013 19:13:08.229182   17831 leaderelection.go:248] attempting to acquire leader lease default/test-leader-election-id...
I1013 19:13:08.270016   17831 leaderelection.go:258] successfully acquired lease default/test-leader-election-id
I1013 19:13:08.378881   17831 leaderelection.go:248] attempting to acquire leader lease default/test-leader-election-id...
•••••I1013 19:13:08.930384   17831 leaderelection.go:248] attempting to acquire leader lease 2a7fd0d2-2c59-11ec-b351-6e5f7d0a95ca_f0d88a3f-3358-4198-8255-dbce7c438f0b...
I1013 19:13:08.930694   17831 leaderelection.go:258] successfully acquired lease 2a7fd0d2-2c59-11ec-b351-6e5f7d0a95ca_f0d88a3f-3358-4198-8255-dbce7c438f0b
••••••••••••••••••••I1013 19:13:12.782291   17831 leaderelection.go:248] attempting to acquire leader lease 2a7fd0d2-2c59-11ec-b351-6e5f7d0a95ca_16917a26-242a-47ce-8e3b-365b1f4db22f...
... skipping 20 lines ...
manger.Manager
/home/prow/go/src/sigs.k8s.io/controller-runtime/pkg/manager/manager_test.go:59
  Start
  /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 return an error if any Components fail to Start and wait for runnables to stop [It]
      /home/prow/go/src/sigs.k8s.io/controller-runtime/pkg/manager/manager_test.go:867

      Expected
          <int>: 1
      to equal
          <int>: 2

      /home/prow/go/src/sigs.k8s.io/controller-runtime/pkg/manager/manager_test.go:898
------------------------------
1.6341523943785195e+09	INFO	Stopping and waiting for non leader election runnables
1.6341523943787673e+09	INFO	Stopping and waiting for leader election runnables
1.6341523943791225e+09	INFO	Stopping and waiting for caches
1.6341523943789666e+09	ERROR	error received after stop sequence was engaged	{"error": "can't accept new runnable as stop procedure is already engaged"}
1.6341523943794794e+09	ERROR	error received after stop sequence was engaged	{"error": "timed out waiting for the condition"}
1.6341523943796277e+09	INFO	Stopping and waiting for webhooks
1.6341523943798008e+09	INFO	Wait completed, proceeding to shutdown the manager
1.6341523943800993e+09	ERROR	error received after stop sequence was engaged	{"error": "leader election lost"}
I1013 19:13:14.536301   17831 leaderelection.go:248] attempting to acquire leader lease 2a7fd0d2-2c59-11ec-b351-6e5f7d0a95ca_47e74f01-47d3-4e94-98b0-36c71f0c6ea7...
I1013 19:13:14.536570   17831 leaderelection.go:258] successfully acquired lease 2a7fd0d2-2c59-11ec-b351-6e5f7d0a95ca_47e74f01-47d3-4e94-98b0-36c71f0c6ea7
•I1013 19:13:14.788467   17831 leaderelection.go:248] attempting to acquire leader lease 2a7fd0d2-2c59-11ec-b351-6e5f7d0a95ca_6778823c-fd1b-4832-9756-f340d8a60943...
I1013 19:13:14.788730   17831 leaderelection.go:258] successfully acquired lease 2a7fd0d2-2c59-11ec-b351-6e5f7d0a95ca_6778823c-fd1b-4832-9756-f340d8a60943
•I1013 19:13:14.966089   17831 leaderelection.go:248] attempting to acquire leader lease 2a7fd0d2-2c59-11ec-b351-6e5f7d0a95ca_260d0041-39d9-451a-8f4f-207af8d9c4ad...
I1013 19:13:14.966392   17831 leaderelection.go:258] successfully acquired lease 2a7fd0d2-2c59-11ec-b351-6e5f7d0a95ca_260d0041-39d9-451a-8f4f-207af8d9c4ad
... skipping 5 lines ...

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


Summarizing 1 Failure:

[Fail] manger.Manager Start with leaderelection enabled [It] should return an error if any Components fail to Start and wait for runnables to stop 
/home/prow/go/src/sigs.k8s.io/controller-runtime/pkg/manager/manager_test.go:898

Ran 82 of 82 Specs in 25.175 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.51s)
FAIL
FAIL	sigs.k8s.io/controller-runtime/pkg/manager	25.734s
ok  	sigs.k8s.io/controller-runtime/pkg/manager/signals	1.079s
?   	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.424s
?   	sigs.k8s.io/controller-runtime/pkg/ratelimiter	[no test files]
... skipping 7 lines ...
ok  	sigs.k8s.io/controller-runtime/pkg/webhook	15.447s
ok  	sigs.k8s.io/controller-runtime/pkg/webhook/admission	0.333s
?   	sigs.k8s.io/controller-runtime/pkg/webhook/admission/admissiontest	[no test files]
ok  	sigs.k8s.io/controller-runtime/pkg/webhook/authentication	0.246s
ok  	sigs.k8s.io/controller-runtime/pkg/webhook/conversion	0.372s
?   	sigs.k8s.io/controller-runtime/pkg/webhook/internal/metrics	[no test files]
FAIL