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

zentralopensource / zentral / 39776932544
92%

Build:
DEFAULT BRANCH: main
Ran 22 Oct 2026 12:27PM UTC
Jobs 1
Files 1055
Run time 1min
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

22 Oct 2026 11:57AM UTC coverage: 91.373% (+0.1%) from 91.241%
39776932544

push

github

np5
jamf: Use the client adapter for every request

The CustomHTTPAdapter of the client, with its 15 s timeout and its retries,
was mounted on api_base_url, the /JSSResource path. The bearer token request
goes to /api/v1/auth/token, so it used the default adapter of the session,
which has no timeout. A Jamf server that accepted the connection and did not
answer kept the token request waiting with no limit. The preprocess worker is
serial, so it stopped too.

Mount the adapter on base_url. Every request of the session has the timeout
now. The token request also uses the connection pool of the other requests,
so its connection is less often idle.

The timeout raises a ReadTimeout, which is not a ConnectionError. Raise an
APIClientError for it, and for every other requests error of the token
request, with no retry. The setup and cleanup views, and the policy lookup of
the preprocessor, catch only APIClientError.

When the server cannot be reached, the adapter makes 5 attempts, each one
with the 15 s timeout, with backoffs of 0, 2, 4 and 8 s, then raises a
ConnectTimeout. ConnectTimeout is a ConnectionError, so _post_token_request
starts a second round: up to 10 attempts, about 3 minutes. The second round
stays, because it is the retry for a connection that the server closed while
it was idle. urllib3 does not retry a POST after it sent the request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

2 of 2 new or added lines in 1 file covered. (100.0%)

82 existing lines in 2 files now uncovered.

54612 of 59768 relevant lines covered (91.37%)

0.91 hits per line

Coverage Regressions

Lines Coverage ∆ File
79
77.25
8.91% zentral/contrib/jamf/api_client.py
3
89.19
2.7% zentral/contrib/jamf/events/__init__.py
Jobs
ID Job ID Ran Files Coverage
1 39776932544.1 22 Oct 2026 12:27PM UTC 1055
91.37
GitHub Action Run
Source Files on build 39776932544
  • Tree
  • List 1055
  • Changed 7
  • Source Changed 3
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39776932544
  • 9f387b41 on github
  • Prev Build on main (#39774064337)
  • Next Build on main (#39925391310)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc