Skip to content

fix: restore logging.basicConfig in test remote servers#435

Merged
xzrderek merged 1 commit intomainfrom
fix/restore-logging-config-remote-server
Mar 10, 2026
Merged

fix: restore logging.basicConfig in test remote servers#435
xzrderek merged 1 commit intomainfrom
fix/restore-logging-config-remote-server

Conversation

@xzrderek
Copy link
Contributor

@xzrderek xzrderek commented Mar 10, 2026

Summary

  • Restores the logging.basicConfig(level=logging.INFO) call that was accidentally removed in revert #434 (revert PR)
  • Without it, the root logger defaults to WARNING, silently dropping the logger.info() call that emits Status.rollout_finished() via FireworksTracingHttpHandler
  • This caused the RemoteRolloutProcessor polling loop to time out after 180s instead of finding the status log in ~1s

Root Cause

The revert in #434 reverted two PRs but also removed the logging config line as collateral damage. The FireworksTracingHttpHandler is attached to the root logger, but logger.info() (level 20) is below the root logger's default WARNING (level 30), so the log record is discarded before it ever reaches the handler. No POST /logs is made to the tracing gateway, and the polling loop gets empty 192-byte responses until it times out.

The error path (logger.error()) was unaffected because ERROR (40) >= WARNING (30).

Test plan

  • CI: test_remote_fireworks should complete in ~10-30s instead of timing out at 180s
  • CI: test_remote_fireworks_propagate_status should continue to pass as before

Made with Cursor


Note

Low Risk
Low risk: test-only change that restores INFO-level logging so rollout status events reach the tracing handler; behavior impact is limited to remote-server test harnesses.

Overview
Restores explicit logging.basicConfig(level=logging.INFO, ...) in the test remote servers so logger.info() messages are emitted.

This ensures FireworksTracingHttpHandler attached to the root logger receives the Status.rollout_finished() info log, preventing remote rollout polling from timing out during tests.

Written by Cursor Bugbot for commit 0df74b7. This will update automatically on new commits. Configure here.

The revert in #434 accidentally removed the `logging.basicConfig(level=logging.INFO)`
call from the test remote servers. Without it, the root logger defaults to WARNING,
which silently drops the `logger.info()` call that emits `Status.rollout_finished()`.
The FireworksTracingHttpHandler never fires, no POST /logs is made, and the
RemoteRolloutProcessor polling loop times out after 180 seconds.

This restores the original line (with its explanatory comment) in both
remote_server.py and remote_server_multi_turn.py.

Made-with: Cursor
@xzrderek xzrderek merged commit 69cb5dc into main Mar 10, 2026
3 checks passed
@xzrderek xzrderek deleted the fix/restore-logging-config-remote-server branch March 10, 2026 12:01
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.

1 participant