Skip to content

Improve launcher logging - Part 2#367

Merged
MikeSpreitzer merged 2 commits intollm-d-incubation:mainfrom
diegocastanibm:improve-logs-launcher
Mar 20, 2026
Merged

Improve launcher logging - Part 2#367
MikeSpreitzer merged 2 commits intollm-d-incubation:mainfrom
diegocastanibm:improve-logs-launcher

Conversation

@diegocastanibm
Copy link
Copy Markdown
Collaborator

Summary:

Address review feedback from Issue #320 (RFC 9110 compliance improvements for the log endpoint) and implement Issue #338
(log CLI arguments on launcher startup).

  • Add Content-Range header to 200 OK log responses (not just 206)
  • Remove dead-code guard on actual_end calculation
  • Improve get_log_bytes docstring: clarify inclusive semantics and return value
  • Add explanatory comment in parse_range_header for open-ended ranges
  • Update log endpoint docstring with RFC 9110 §14 reference
  • Log CLI arguments on launcher startup with logging.basicConfig() setup
  • Fix test mock total (29→30) and assert Content-Range on 200 responses

Test plan:

  • python -m pytest tests/test_launcher.py -v — all 73 tests pass
  • Verify Content-Range header present on both 200 and 206 responses
  • Verify launcher logs its CLI arguments on startup

- Add Content-Range header to 200 OK log responses (not just 206)
  - Remove dead-code guard on actual_end calculation
  - Improve get_log_bytes docstring: clarify inclusive semantics and return value
  - Add explanatory comment in parse_range_header for open-ended ranges
  - Update log endpoint docstring with RFC 9110 §14 reference
  - Log CLI arguments on launcher startup with logging.basicConfig() setup
  - Fix test mock total (29→30) and assert Content-Range on 200 responses

Signed-off-by: Diego-Castan <diego.castan@ibm.com>
Copy link
Copy Markdown
Collaborator

@MikeSpreitzer MikeSpreitzer left a comment

Choose a reason for hiding this comment

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

I left some independent comments.

Signed-off-by: Diego-Castan <diego.castan@ibm.com>
@MikeSpreitzer
Copy link
Copy Markdown
Collaborator

/ok-to-test

@github-actions
Copy link
Copy Markdown

🚀 E2E tests triggered by /ok-to-test

View the OpenShift E2E workflow run

Copy link
Copy Markdown
Collaborator

@MikeSpreitzer MikeSpreitzer left a comment

Choose a reason for hiding this comment

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

The E2E-on-OpenShift test passed.

LGTM

@MikeSpreitzer MikeSpreitzer merged commit f87ffe0 into llm-d-incubation:main Mar 20, 2026
25 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