Fix possible LCM URL collision#2077
Conversation
Greptile SummaryThis PR removes hardcoded isolated LCM multicast URLs from two test files and replaces them with the shared
Confidence Score: 5/5Safe to merge — changes are limited to test infrastructure and correct the xdist worker isolation for LCM multicast URLs. Both files make the same mechanical substitution: replace a static hardcoded multicast address with the worker-scoped No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[pytest-xdist worker starts] --> B["conftest.py: compute _BUCKET\nhashlib.blake2b(worker_id) % 5000"]
B --> C["Set LCM_DEFAULT_URL env var\nudpm://239.255.76.67:{7700+_BUCKET}?ttl=0"]
B --> D["lcm_url fixture (session-scoped)\nreturns same URL"]
D --> E[test_lcmpubsub.py fixtures]
D --> F[test_pattern_sub.py test functions]
E --> G[LCM instances with worker-specific URL]
F --> H["lcm_typed_context(url) / lcm_bytes_context(url)"]
H --> I[LCM pair with worker-specific URL]
G --> J[Tests isolated per xdist worker]
I --> J
style J fill:#bfb,stroke:#333
Reviews (1): Last reviewed commit: "Fix possible LCM URL collision" | Re-trigger Greptile |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Couple of missed spots from #1901.