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

gtsystem / lightkube / 17969083791
94%

Build:
DEFAULT BRANCH: master
Ran 24 Sep 2025 07:05AM UTC
Jobs 3
Files 26
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

24 Sep 2025 07:04AM UTC coverage: 93.607% (-0.1%) from 93.745%
17969083791

push

github

gtsystem
Fix httpx.ResponseNotRead if streaming unready pod logs

If calling Client.log() on a Pod that exists but the container has not
started yet, the Kubernetes API will return 400, considering that a
client error.

Lightkube will try to convert that httpx.HTTPStatusError into an
ApiError. While doing so, it will read the response body for the Status
object that the Kubernetes API returns on errors.

However, if the `follow` parameter is True, this function will set
`stream` to True, which will instruct httpx to delay reading of the
response. Then, when lightkube attempts to parse the response body,
httpx errors because it has not yet been read.

To fix this, simply read the body before creating the error. Now an
ApiError will be raised with the status set to 400 as expected.

2 of 4 new or added lines in 2 files covered. (50.0%)

1186 of 1267 relevant lines covered (93.61%)

2.81 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
97.5
-1.22% lightkube/core/async_client.py
1
98.78
-1.22% lightkube/core/client.py
Jobs
ID Job ID Ran Files Coverage
1 17969083791.1 24 Sep 2025 07:05AM UTC 26
93.61
GitHub Action Run
2 17969083791.2 24 Sep 2025 07:05AM UTC 26
93.59
GitHub Action Run
3 17969083791.3 24 Sep 2025 07:05AM UTC 26
93.61
GitHub Action Run
Source Files on build 17969083791
  • Tree
  • List 26
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 8cfe0c97 on github
  • Prev Build on master (#17355602970)
  • Next Build on master (#18816906713)
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