• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gophercloud / gophercloud / 4020 / 1
79%
master: 79%

Build:
DEFAULT BRANCH: master
Ran 17 Oct 2019 01:53AM UTC
Files 579
Run time 32s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Oct 2019 01:45AM UTC coverage: 76.995% (+0.09%) from 76.91%
4020.1

push

travis-ci

jtopjian
avoid reauthentication loops (#1746)

* avoid reauthentication loops

It does not make sense to reauthenticate multiple times for a single
request. When the backing service returns 401 for a brand-new token,
reauthenticating again will just send us into an infinite loop.

Closes #1745.

* rewrite ProviderClient.Reauthenticate()

The old implementation has several places where the reauth mutex is
unlocked before being locked again. This allows concurrent goroutines to
glitch through reauthentication without the token having changed at all.

Since mutexes and esp. RW mutexes are incredibly hard to get right, I
propose this alternate implementation that coordinates concurrent
Reauthenticate calls with channels.

* add testcase for reauthentication loop avoidance

17702 of 22991 relevant lines covered (77.0%)

2.6 hits per line

Source Files on job 4020.1
  • Tree
  • List 0
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 3372
  • Travis Job 4020.1
  • 8faecdad on github
  • Prev Job for on master (#4018.1)
  • Next Job for on master (#4021.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc