conjur-api-go
conjur-api-go copied to clipboard
The `TestTokenFileAuthenticator_RefreshToken` test times out in Jenkins
Summary
In the TestTokenFileAuthenticator_RefreshToken
test under the "Return the token from the file"
Convey block sometimes the test will timeout in Jenkins. This causes the pipeline to fail. Restarting the test again will usually result in a pass.
Steps to Reproduce
Steps to reproduce the behavior: Run Jenkins pipeline on the repo.
Expected Results
The test should always pass if passing criteria is met.
Actual Results (including error logs, if applicable)
Output logs from Jenkins included below.
Reproducible
- [ ] Always
- [x] Sometimes
- [ ] Non-Reproducible
Version/Tag number
First noticed on version 0.7.0 release.
Additional Information
Output from Jenkins on the relevant test failure.
[2021-02-10T18:59:46.989Z] Failures:
[2021-02-10T18:59:46.989Z]
[2021-02-10T18:59:46.989Z] * /conjur-api-go/conjurapi/authn/token_file_authenticator_test.go
[2021-02-10T18:59:46.989Z] Line 27:
[2021-02-10T18:59:46.989Z] Expected: nil
[2021-02-10T18:59:46.989Z] Actual: 'Operation waitForTextFile timed out.'
[2021-02-10T18:59:46.989Z] goroutine 22 [running]:
[2021-02-10T18:59:46.989Z] /go/pkg/mod/github.com/smartystreets/[email protected]/convey/reporting/reports.go:143 +0x6f
[2021-02-10T18:59:46.989Z] /go/pkg/mod/github.com/smartystreets/[email protected]/convey/reporting/reports.go:103 +0x71
[2021-02-10T18:59:46.989Z] /go/pkg/mod/github.com/smartystreets/[email protected]/convey/context.go:176 +0xe6
[2021-02-10T18:59:46.989Z] /go/pkg/mod/github.com/smartystreets/[email protected]/convey/doc.go:125 +0x66
[2021-02-10T18:59:46.989Z] github.com/cyberark/conjur-api-go/conjurapi/authn.TestTokenFileAuthenticator_RefreshToken.func1.1()
[2021-02-10T18:59:46.989Z] /conjur-api-go/conjurapi/authn/token_file_authenticator_test.go:27 +0xa5
[2021-02-10T18:59:46.989Z] /go/pkg/mod/github.com/smartystreets/[email protected]/convey/discovery.go:80 +0x24
[2021-02-10T18:59:46.989Z] /go/pkg/mod/github.com/smartystreets/[email protected]/convey/context.go:261 +0x125
[2021-02-10T18:59:46.989Z] /go/pkg/mod/github.com/smartystreets/[email protected]/convey/context.go:163 +0x48
[2021-02-10T18:59:46.989Z] github.com/jtolds/gls.(*ContextManager).SetValues.func1(0x0)
[2021-02-10T18:59:46.989Z] /go/pkg/mod/github.com/jtolds/[email protected]+incompatible/context.go:97 +0x462
[2021-02-10T18:59:46.989Z] github.com/jtolds/gls.EnsureGoroutineId(0xc0001225a0)
[2021-02-10T18:59:46.989Z] /go/pkg/mod/github.com/jtolds/[email protected]+incompatible/gid.go:19 +0x11d
[2021-02-10T18:59:46.989Z] github.com/jtolds/gls.(*ContextManager).SetValues(0xc000096540, 0xc000122540, 0xc0000bdc80)
[2021-02-10T18:59:46.989Z] /go/pkg/mod/github.com/jtolds/[email protected]+incompatible/context.go:63 +0x153
[2021-02-10T18:59:46.989Z] /go/pkg/mod/github.com/smartystreets/[email protected]/convey/context.go:162 +0x1c8
[2021-02-10T18:59:46.989Z] /go/pkg/mod/github.com/smartystreets/[email protected]/convey/doc.go:77 +0x92
[2021-02-10T18:59:46.989Z] github.com/cyberark/conjur-api-go/conjurapi/authn.TestTokenFileAuthenticator_RefreshToken.func1()
[2021-02-10T18:59:46.989Z] /conjur-api-go/conjurapi/authn/token_file_authenticator_test.go:20 +0x1b9
[2021-02-10T18:59:46.989Z] /go/pkg/mod/github.com/smartystreets/[email protected]/convey/discovery.go:80 +0x24
[2021-02-10T18:59:46.990Z] /go/pkg/mod/github.com/smartystreets/[email protected]/convey/context.go:261 +0x125
[2021-02-10T18:59:46.990Z] /go/pkg/mod/github.com/smartystreets/[email protected]/convey/context.go:110 +0xf0
[2021-02-10T18:59:46.990Z] github.com/jtolds/gls.(*ContextManager).SetValues.func1(0x0)
[2021-02-10T18:59:46.990Z] /go/pkg/mod/github.com/jtolds/[email protected]+incompatible/context.go:97 +0x462
[2021-02-10T18:59:46.990Z] github.com/jtolds/gls.EnsureGoroutineId.func1()
[2021-02-10T18:59:46.990Z] /go/pkg/mod/github.com/jtolds/[email protected]+incompatible/gid.go:24 +0x2e
[2021-02-10T18:59:46.990Z] github.com/jtolds/gls._m(0x0, 0xc0000bdc00)
[2021-02-10T18:59:46.990Z] /go/pkg/mod/github.com/jtolds/[email protected]+incompatible/stack_tags.go:108 +0x31
[2021-02-10T18:59:46.990Z] github.com/jtolds/gls.github_com_jtolds_gls_markS(0x0, 0xc0000bdc00)
[2021-02-10T18:59:46.990Z] /go/pkg/mod/github.com/jtolds/[email protected]+incompatible/stack_tags.go:56 +0x35
[2021-02-10T18:59:46.990Z] github.com/jtolds/gls.addStackTag(...)
[2021-02-10T18:59:46.990Z] /go/pkg/mod/github.com/jtolds/[email protected]+incompatible/stack_tags.go:49
[2021-02-10T18:59:46.990Z] github.com/jtolds/gls.EnsureGoroutineId(0xc000122450)
[2021-02-10T18:59:46.990Z] /go/pkg/mod/github.com/jtolds/[email protected]+incompatible/gid.go:24 +0xfd
[2021-02-10T18:59:46.990Z] github.com/jtolds/gls.(*ContextManager).SetValues(0xc000096540, 0xc0001223f0, 0xc0000bdbc0)
[2021-02-10T18:59:46.990Z] /go/pkg/mod/github.com/jtolds/[email protected]+incompatible/context.go:63 +0x153
[2021-02-10T18:59:46.990Z] /go/pkg/mod/github.com/smartystreets/[email protected]/convey/context.go:105 +0x231
[2021-02-10T18:59:46.990Z] /go/pkg/mod/github.com/smartystreets/[email protected]/convey/doc.go:75 +0xbe
[2021-02-10T18:59:46.990Z] github.com/cyberark/conjur-api-go/conjurapi/authn.TestTokenFileAuthenticator_RefreshToken(0xc000082d80)
[2021-02-10T18:59:46.990Z] /conjur-api-go/conjurapi/authn/token_file_authenticator_test.go:12 +0x99
[2021-02-10T18:59:46.990Z] testing.tRunner(0xc000082d80, 0x5da8b8)
[2021-02-10T18:59:46.990Z] /usr/local/go/src/testing/testing.go:1123 +0xef
[2021-02-10T18:59:46.990Z] created by testing.(*T).Run
[2021-02-10T18:59:46.990Z] /usr/local/go/src/testing/testing.go:1168 +0x2b3