Add: correlate remote task frames across hosts - #2304
doraemonmj wants to merge 1 commit into
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (11)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change preserves TASK frame identity, rewrites CONTROL frames with local sequences, emits remote task spans with base36 correlation tokens, and propagates published frame attributes into successful dispatch traces. ChangesRemote frame identity tracing
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant WorkerThread
participant RemoteL3Endpoint
participant RemoteL3Session
participant HostTrace
WorkerThread->>RemoteL3Endpoint: submit_progress(frame)
RemoteL3Endpoint-->>WorkerThread: progress_frame_attrs()
WorkerThread->>HostTrace: emit dispatch trace with f=session:sequence
RemoteL3Session->>HostTrace: emit remote_task span with same f=session:sequence
Merge Risk: ⚪ Minimal · up to The new tracing preserves normal task failure handling and associates successful dispatches with the correct remote frame. No actionable merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 7.14% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 42 functions across 10 files. (1 skipped: 1 unsupported.) Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit guards the frame’s bright thread Comment |
2c5a046 to
e40fba4
Compare
- Add one frame key to dispatch and peer remote_task spans. - Encode session and sequence in base36; keep worker identity separate. - Preserve TASK identity through MPI while rewriting control traffic. - Keep trace failures and rejected submissions outside protocol state.
e40fba4 to
f01dbd7
Compare
Summary
f=<session>:<sequence>key to successful remote dispatch spans and the corresponding peerremote_taskspan.Testing
python -m pytest tests/ut -m 'not requires_hardware' -q— 2400 passed, 13 skipped, 51 deselected.ctest --test-dir tests/ut/cpp/build -LE requires_hardware -j4 --output-on-failure --timeout 300— 151 passed.test_remote_endpoint,test_scheduler) — 2 passed.network1.dispatch ... f=j2v9176v1xte:dandnode.remote_task ... f=j2v9176v1xte:d; neither record was truncated.pre-commit run --from-ref upstream/main --to-ref HEAD— passed.