Skip to content

Fix md5srv binary web.post handling and improve CI observability#235

Merged
haydenroche5 merged 1 commit intomasterfrom
hayden/card_binary_trace
Mar 8, 2026
Merged

Fix md5srv binary web.post handling and improve CI observability#235
haydenroche5 merged 1 commit intomasterfrom
hayden/card_binary_trace

Conversation

@haydenroche5
Copy link
Copy Markdown
Collaborator

  • Fix md5srv.py to handle requests using Transfer-Encoding: chunked instead of Content-Length. Notehub sends binary web.post payloads chunked, causing post_data to read 0 bytes and write_file to return 400 "Request body is empty."
  • Fix write_file to fall back to len(self.post_data) when the Content-Length header is absent, rather than calling int(None) and crashing with a 500.
  • Add error logging to md5srv.py: on any failed request, log the Content-Length, Transfer-Encoding, and Content-Type headers along with the error code and message to aid future debugging.
  • Capture Notecard USB trace output (req, comm, sync, mem) to trace.log during the test run and upload it as a CI artifact.
  • Upload md5srv.log as a CI artifact so server-side failures are visible without needing to reproduce locally.

Commit message written by Claude.

- Fix md5srv.py to handle requests using Transfer-Encoding: chunked
  instead of Content-Length. Notehub sends binary web.post payloads
  chunked, causing post_data to read 0 bytes and write_file to
  return 400 "Request body is empty."
- Fix write_file to fall back to len(self.post_data) when the
  Content-Length header is absent, rather than calling int(None)
  and crashing with a 500.
- Add error logging to md5srv.py: on any failed request, log the
  Content-Length, Transfer-Encoding, and Content-Type headers along
  with the error code and message to aid future debugging.
- Capture Notecard USB trace output (req, comm, sync, mem) to
  trace.log during the test run and upload it as a CI artifact.
- Upload md5srv.log as a CI artifact so server-side failures are
  visible without needing to reproduce locally.

Commit message written by Claude.
@haydenroche5 haydenroche5 requested a review from zfields March 8, 2026 18:23
@haydenroche5 haydenroche5 self-assigned this Mar 8, 2026
@haydenroche5 haydenroche5 merged commit 361fe8f into master Mar 8, 2026
15 checks passed
@haydenroche5 haydenroche5 deleted the hayden/card_binary_trace branch March 8, 2026 19:58
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