Skip to content

Split TCP RR infrastructure from the workload#1905

Open
usamasaqib wants to merge 3 commits into
mainfrom
usama.saqib/rr-refactor
Open

Split TCP RR infrastructure from the workload#1905
usamasaqib wants to merge 3 commits into
mainfrom
usama.saqib/rr-refactor

Conversation

@usamasaqib
Copy link
Copy Markdown
Contributor

What does this PR do?

This PR refactors the tcp_rr workload to split the infrastructure elements into a separate file. This will allow subsequent workloads to reuse the same thread and flow management code.

Motivation

Related issues

Additional Notes

@usamasaqib usamasaqib requested a review from a team as a code owner June 1, 2026 14:36
@datadog-prod-us1-5
Copy link
Copy Markdown

datadog-prod-us1-5 Bot commented Jun 1, 2026

Pipelines

Fix all issues with BitsAI

⚠️ Warnings

🚦 3 Pipeline jobs failed

Continuous integration | Rust Actions (Check/Fmt/Clippy) (macos-latest, fmt)   View in Datadog   GitHub Actions

🔧 Fix in code (Fix with Cursor). Compilation error in /Users/runner/work/lading/lading/lading/src/neper/rr.rs:392: expected closing parenthesis

Continuous integration | Rust Actions (Check/Fmt/Clippy) (ubuntu-latest, fmt)   View in Datadog   GitHub Actions

🔧 Fix in code (Fix with Cursor). Compilation error in /home/runner/work/lading/lading/lading/src/neper/rr.rs:392: expected ';', found None

Changelog Check | changelog-check   View in Datadog   GitHub Actions

🛟 This job is unlikely to succeed on retry. Please review your pipeline configuration. No changes to CHANGELOG.md detected. Add 'no-changelog' label if this is intentional.

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 1785a95 | Docs | Datadog PR Page | Give us feedback!

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1785a95bb9

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +52 to +54
/// Flow count is *not* configured here — it is owned by the
/// `tcp_rr` blackhole and communicated to the generator over the control port
/// during startup.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve existing tcp_rr flow configs

When an existing tcp_rr generator config contains the previously documented flows field, this new schema rejects it because Config still uses deny_unknown_fields; moving the field solely to the blackhole means those user configs fail at startup rather than running, despite /workspace/lading/AGENTS.md stating that user configs need stability. Please keep accepting the generator-side field during a migration or otherwise translate it instead of making existing experiment configs invalid.

Useful? React with 👍 / 👎.

Comment thread lading/src/neper/rr.rs

/// Control-channel handshake: server writes `flows` to the accepted control
/// connection as a 2-byte big-endian `u16` and closes; client reads the same
/// 2 bytes after connecting. Internal protocol — no magic / version byte.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Use ASCII-only documentation

This newly added doc comment contains a non-ASCII em dash, and /workspace/lading/AGENTS.md requires US-ASCII only in code and documentation. There are multiple new occurrences in this file, so replace these punctuation characters with ASCII equivalents before landing.

Useful? React with 👍 / 👎.

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