Skip to content

Server log_url parity + graceful report-file handling in add-log-file - #323

Merged
timdegroot1996 merged 1 commit into
mainfrom
server-logurl-report-handling
Sep 14, 2026
Merged

timdegroot1996 merged 1 commit into
mainfrom
server-logurl-report-handling

Conversation

@timdegroot1996

Copy link
Copy Markdown
Collaborator

Summary

  • Closes [Improvement] Add server API support for custom log URLs #315: AddOutput (JSON /add-outputs) gains output_log_url, and multipart /add-output-file gains a log_url form field. Both reuse the existing CLI --logurl mechanism (RobotDashboard.log_url, {run_alias} substitution) and mirror the CLI's guard against a missing {run_alias} placeholder when a single request may add more than one run (e.g. output_folder_path).
  • Closes [Needs clarification] Uploading report as html.gz using add-log-file is successful but throws error #308: /add-log-file now recognizes a report substring in the uploaded filename and skips DB output-matching entirely for it (reports were never going to match a stored output/log path anyway). It checks whether a same-named log file already exists in robot_logs/; if so the response confirms it, if not it's just a WARNING in the console — the endpoint still returns success: "1" and saves the file either way, instead of the previous misleading success: "0" DB-matching error.

Test plan

  • bash scripts/python-tests.sh — 320/320 passing, server.py at 100% coverage (8 new tests added in tests/python/test_server.py covering output_log_url, the {run_alias} guard, the log_url form field, and the report warn/success paths)
  • Manual end-to-end smoke test against a real SQLite DB (not mocked): confirmed output_log_url with {run_alias} lands correctly in the runs.path column, confirmed /add-log-file on a report*.html warns when uploaded before its log and succeeds cleanly when uploaded after
  • Docs updated: .github/skills/server-api.md, docs/dashboard-server.md, docs/log-linking.md, and all three example/server/interact.* scripts

🤖 Generated with Claude Code

- Add output_log_url (AddOutput/JSON) and log_url (add-output-file form
  field) so the server API can store an externally-hosted log link,
  mirroring the CLI's --logurl, including the {run_alias} multi-output
  guard. Closes #315.
- /add-log-file now detects filenames containing "report" and skips DB
  output-matching entirely (reports aren't tracked in the DB); it warns
  instead of erroring when no matching log file is found yet, but still
  saves the file and returns success either way. Closes #308.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@timdegroot1996
timdegroot1996 merged commit 72091dc into main Sep 14, 2026
3 checks passed
@timdegroot1996
timdegroot1996 deleted the server-logurl-report-handling branch September 16, 2026 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant