Repository navigation
Wait for Fluent Forward before sending Docker test logs - #5434
Conversation
Wait until the Fluent Forward receiver observes an empty connection before sending the first test record. The metrics endpoint and Docker's published port can respond earlier.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR waits for Fluent Forward connection counters before sending the Docker logging test’s first record. Example: Collector metrics return HTTP 200 before Fluent Forward is ready on port 24224.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored draft open: it addresses a concrete test-readiness race without weakening existing assertions, and no introduced correctness defect was found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Docker integration fixture sends synthetic container logs through Docker’s Fluent logging driver and the pinned Collector to an OTLP capture backend. flowchart LR
Probe[Empty TCP probe] --> Receiver[Fluent Forward receiver]
Receiver --> Metrics[Connection counters]
Metrics --> Gate[Readiness gate]
Gate --> Sender[Docker log sender]
Sender --> Receiver
Receiver --> Backend[OTLP capture backend]
Technical reviewBest possible solution: Retain the bounded receiver-readiness gate in the existing fixture while preserving its independent first-record filtering assertion. Do we have a high-confidence way to reproduce the issue? Source confirms metrics readiness was the only initial gate, and the PR reports a controlled delayed-start baseline failure; no target code was run during this review, and the earlier hosted failure remains unexplained. Is this the best way to solve the issue? The receiver’s own counters distinguish actual acceptance from Docker proxy connectivity, and an empty connection preserves the test’s first-log-record oracle. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0f82ccf02e7f. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 11, 2026, 3:23 AM ET / 08:23 UTC. |
The Docker logging integration test starts its first sender after the Collector's metrics endpoint returns HTTP 200. Docker's published port can already accept a connection while the Fluent Forward listener is still starting. In that interval the sender can exit successfully even when the Collector receives no record.
Wait for the Fluent Forward receiver to count an empty TCP connection opening and closing before starting the sender. One 30-second deadline covers the connection probes and full metrics responses. The near-match remains the first log record. The test verifies that the Collector filters it before the later senders run, then checks transport identity, secrecy, and recovery.
Verification