Skip to content

Conversation

acul71
Copy link

@acul71 acul71 commented Sep 22, 2025

Fix: Rendezvous Module Build System Integration

Problem

The rendezvous module in PR libp2p#916 had build system integration issues that caused:

  • Missing protobuf file generation during CI builds
  • Mypy typecheck errors due to missing .pyi stub files
  • Type annotation mismatches in Python code

Solution

  • Added rendezvous.proto to Makefile: Ensures protobuf files are generated during build process
  • Fixed type annotations: Updated Message.ResponseStatus to Message.ResponseStatus.ValueType for mypy compatibility
  • Maintained CI compatibility: Changes ensure proper protobuf generation with correct version

Files Changed

  • Makefile - Added rendezvous.proto to PB variable
  • libp2p/discovery/rendezvous/errors.py - Fixed type annotations
  • libp2p/discovery/rendezvous/messages.py - Fixed type annotations

Impact

  • ✅ All 765 tests pass
  • ✅ Typecheck passes
  • ✅ CI/CD compatibility restored
  • ✅ Rendezvous module fully functional

This fix resolves the build system integration issues while maintaining the groundbreaking nature of the first complete rendezvous protocol implementation in the libp2p ecosystem.

- Add rendezvous.proto to Makefile PB variable for protobuf generation
- Fix type annotations in errors.py and messages.py for mypy compatibility
- Changes ensure proper protobuf file generation and type checking
@sumanjeet0012 sumanjeet0012 merged commit e461148 into sumanjeet0012:feature/rendezvous Sep 22, 2025
27 checks passed
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.

2 participants