Skip to content

fix(server): surface the exception detail in GitHub update-check warnings - #3023

Merged
vpetersson merged 2 commits into
masterfrom
fix/github-errdesc-detail
Jun 9, 2026
Merged

fix(server): surface the exception detail in GitHub update-check warnings#3023
vpetersson merged 2 commits into
masterfrom
fix/github-errdesc-detail

Conversation

@vpetersson

Copy link
Copy Markdown
Contributor

Issues Fixed

Follow-up to ANTHIAS-8 / #3019; ports the one improvement from #3014 that #3019 didn't carry.

Description

handle_github_error's no-response branch logged a literal no data, which is what made the original Sentry title ("ConnectionError fetching latest release from GitHub: no data") unactionable. Use str(exc) or 'no data' so the warning carries the host/timeout detail.

The rest of #3014 (the warning-level downgrade) already shipped in #3019, so #3014 can be closed.

Checklist

  • I have performed a self-review of my own code.
  • New and existing unit tests pass locally and on CI with my changes.
  • I have done an end-to-end test for Raspberry Pi devices.
  • I have tested my changes for x86 devices.
  • I added a documentation for the changes I have made (when necessary).

🤖 Generated with Claude Code

…ings

- A bare 'no data' hid the host/timeout info str(exc) carries —
  Sentry ANTHIAS-8 read 'ConnectionError fetching latest release
  from GitHub: no data', which said nothing actionable
- Ported from #3014 (the rest of that PR shipped via #3019)

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the observability of Anthias’ GitHub “latest release” update-check by ensuring that warning logs include meaningful exception details when the request fails without an HTTP response (e.g., timeouts), making Sentry/event titles actionable.

Changes:

  • Update handle_github_error() to log str(exc) (falling back to 'no data') when exc.response is None.
  • Add a regression test ensuring the no-response branch surfaces the exception detail in the warning log.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/anthias_server/lib/github.py Improves warning log content for no-response GitHub request failures by surfacing exception detail.
tests/test_github.py Adds a focused unit test to assert the warning log includes the exception message for no-response failures.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@sonarqubecloud

sonarqubecloud Bot commented Jun 7, 2026

Copy link
Copy Markdown

@vpetersson
vpetersson merged commit 2f10160 into master Jun 9, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants