Skip to content

feat(status): stream logs and tachometer metrics to the collector - #35

Closed
cquil11 wants to merge 4 commits into
mainfrom
feat/status-log-streaming
Closed

cquil11 wants to merge 4 commits into
mainfrom
feat/status-log-streaming

Conversation

@cquil11

@cquil11 cquil11 commented Sep 29, 2026 •

Copy link
Copy Markdown

Adds opt-in live log and Tachometer uploads with reporting.status.logging-stream-interval.

The cluster sends raw bytes in 1 MiB chunks over reused HTTP connections. The collector handles UTF-8/Arrow/Parquet decoding, deduplication, and JSONL output. No metric parsing, hashing, or local indexing runs in the uploader.

Arrow snapshots are published atomically so uploads survive file replacement. Retries are idempotent; shutdown waits at most five seconds. Changed snapshots are uploaded in full, so disk and network overhead remain.

Validation: 125 status tests and 16 schema tests passed on the implementation branch; Ruff and Python type checks passed. Rust formatting passed, but the Rust test build ran out of disk space compiling dependencies.

@cursor cursor Bot 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.

Stale Bugbot comment from a previous run.

Comment thread src/srtctl/core/status.py Outdated
for batch in batches(path):
for row in batch.to_pylist():
if row["timestamp_ns"] > self._tachometer_ns:
out.write(json.dumps(row) + "\n")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Tachometer export emits invalid JSON

Medium Severity

json.dumps allows non-finite floats, so a tachometer row with NaN or Infinity is written as invalid JSON into tachometer_rows.jsonl. Downstream json.loads on those lines fails. Non-finite metric values already occur in captures and are skipped elsewhere in ingest.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5c7a773. Configure here.

Comment thread src/srtctl/cli/do_sweep.py Resolved

@cursor cursor Bot 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.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 954508c. Configure here.

Comment thread src/srtctl/core/status.py Resolved
@cquil11

cquil11 commented Oct 5, 2026

Copy link
Copy Markdown
Author

Closing because log and Tachometer streaming was merged upstream in NVIDIA#539.

@cquil11 cquil11 closed this Oct 5, 2026
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