Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add publish to up-streamer rust #20

Merged

Conversation

matthewd0123
Copy link
Contributor

@matthewd0123 matthewd0123 commented Jun 27, 2024

  • Add support for tracking subscriptions and forwarding published messages in ustreamer.rs
  • Add usubscription-static-file to stub out subscriptions before usubscription is written
  • Add tests for mE (SOME/IP) subscribe/publish and uE (zenoh) subscribe/publish

@matthewd0123
Copy link
Contributor Author

#18

@matthewd0123 matthewd0123 force-pushed the feature/streamer_publish branch 2 times, most recently from 7e6d1a3 to 785ff9e Compare June 27, 2024 18:05
Copy link

@AnotherDaniel AnotherDaniel left a comment

Choose a reason for hiding this comment

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

LGTM - some minor questions, and we'll have some settling-in to do once I get usub published, but I don't see any surprises.

example-utils/usubscription-static-file/Cargo.toml Outdated Show resolved Hide resolved
example-utils/usubscription-static-file/Cargo.toml Outdated Show resolved Hide resolved
subscription-cache/src/lib.rs Show resolved Hide resolved
subscription-cache/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@PLeVasseur PLeVasseur left a comment

Choose a reason for hiding this comment

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

Hey @matthewd0123 -- thanks for the PR!

Take a look at some suggestions 🙂

example-utils/usubscription-static-file/src/lib.rs Outdated Show resolved Hide resolved
up-streamer/src/ustreamer.rs Outdated Show resolved Hide resolved
example-utils/usubscription-static-file/src/lib.rs Outdated Show resolved Hide resolved
subscription-cache/src/lib.rs Outdated Show resolved Hide resolved
up-streamer/src/ustreamer.rs Outdated Show resolved Hide resolved
up-streamer/src/ustreamer.rs Outdated Show resolved Hide resolved
up-streamer/src/ustreamer.rs Outdated Show resolved Hide resolved
example-utils/usubscription-static-file/src/lib.rs Outdated Show resolved Hide resolved
@matthewd0123 matthewd0123 force-pushed the feature/streamer_publish branch 25 times, most recently from a9adfc9 to 8001b84 Compare August 7, 2024 20:06
Copy link
Contributor

@PLeVasseur PLeVasseur left a comment

Choose a reason for hiding this comment

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

Hey @matthewd0123 -- take a look at some further thoughts.

up-linux-streamer/examples/uE_client.rs Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
subscription-cache/src/lib.rs Outdated Show resolved Hide resolved
subscription-cache/src/lib.rs Outdated Show resolved Hide resolved
up-linux-streamer/examples/mE_subscriber.rs Outdated Show resolved Hide resolved
up-linux-streamer/examples/uE_subscriber.rs Outdated Show resolved Hide resolved
up-linux-streamer/examples/mE_publisher.rs Outdated Show resolved Hide resolved
up-linux-streamer/examples/uE_subscriber.rs Outdated Show resolved Hide resolved
up-linux-streamer/examples/uE_publisher.rs Outdated Show resolved Hide resolved
@matthewd0123 matthewd0123 force-pushed the feature/streamer_publish branch 6 times, most recently from 0d4f0f2 to 7aefa30 Compare August 8, 2024 20:18
Copy link
Contributor

@PLeVasseur PLeVasseur left a comment

Choose a reason for hiding this comment

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

Hey @matthewd0123 -- I like your idea of UUris to backpedal. that's a good way to go about it.

I left some requests for change, please take a look.

subscription-cache/src/lib.rs Show resolved Hide resolved
subscription-cache/src/lib.rs Show resolved Hide resolved
subscription-cache/src/lib.rs Show resolved Hide resolved
subscription-cache/src/lib.rs Show resolved Hide resolved
subscription-cache/src/lib.rs Outdated Show resolved Hide resolved
up-streamer/src/ustreamer.rs Outdated Show resolved Hide resolved
up-streamer/src/ustreamer.rs Outdated Show resolved Hide resolved
up-streamer/src/ustreamer.rs Outdated Show resolved Hide resolved
up-streamer/src/ustreamer.rs Outdated Show resolved Hide resolved
up-streamer/src/ustreamer.rs Outdated Show resolved Hide resolved
@matthewd0123 matthewd0123 force-pushed the feature/streamer_publish branch 3 times, most recently from d6de3ef to b236907 Compare August 9, 2024 15:46
@PLeVasseur PLeVasseur linked an issue Aug 9, 2024 that may be closed by this pull request
@matthewd0123 matthewd0123 force-pushed the feature/streamer_publish branch from b236907 to 71dfe2f Compare August 9, 2024 16:06
Copy link
Contributor

@PLeVasseur PLeVasseur left a comment

Choose a reason for hiding this comment

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

We're nearing the home stretch!

subscription-cache/src/lib.rs Show resolved Hide resolved
example-utils/usubscription-static-file/src/lib.rs Outdated Show resolved Hide resolved
subscription-cache/src/lib.rs Show resolved Hide resolved
up-linux-streamer/DEFAULT_CONFIG.json5 Outdated Show resolved Hide resolved
up-linux-streamer/src/main.rs Outdated Show resolved Hide resolved
up-linux-streamer/ZENOH_CONFIG.json5 Show resolved Hide resolved
up-streamer/src/ustreamer.rs Outdated Show resolved Hide resolved
up-streamer/src/ustreamer.rs Outdated Show resolved Hide resolved
up-streamer/src/ustreamer.rs Outdated Show resolved Hide resolved
up-streamer/src/ustreamer.rs Outdated Show resolved Hide resolved
@matthewd0123 matthewd0123 force-pushed the feature/streamer_publish branch from f82e6bc to 7b9bfbc Compare August 9, 2024 18:59
Copy link
Contributor

@PLeVasseur PLeVasseur left a comment

Choose a reason for hiding this comment

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

Some more ideas

subscription-cache/src/lib.rs Show resolved Hide resolved
up-linux-streamer/README.md Outdated Show resolved Hide resolved
up-streamer/tests/usubscription_bad_data.rs Outdated Show resolved Hide resolved
subscription-cache/src/lib.rs Show resolved Hide resolved
@matthewd0123
Copy link
Contributor Author

To the question about what "full" means... the "status", "config", and "attributes" aren't currently being used by us in the streamer, so they're just added to the cache for tracking. Maybe in the future they'll be needed for something, but for now, I'm leaving them as optional

@matthewd0123 matthewd0123 force-pushed the feature/streamer_publish branch 3 times, most recently from 858926d to 6c2396a Compare August 12, 2024 15:35
Copy link
Contributor

@PLeVasseur PLeVasseur left a comment

Choose a reason for hiding this comment

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

LGTM.

Please now squash down to clean commit history. If single commit makes sense, that's fine. If you think several commits more cleanly lays out what was done, that's fine too.

matthewd0123 added a commit to matthewd0123/up-streamer-rust that referenced this pull request Aug 12, 2024
* Add support for tracking subscriptions and forwarding published messages in ustreamer.rs
* Add usubscription-static-file to stub out subscriptions before usubscription is written
* Add tests for mE (SOME/IP) subscribe/publish and uE (zenoh) subscribe/publish
* Add information about pub/sub in READMEs
* Support zenoh configuration in command line file
* Add test for usubscription with bad data

Implements [eclipse-uprotocol#18]
@matthewd0123 matthewd0123 force-pushed the feature/streamer_publish branch from 6c2396a to ab78bfc Compare August 12, 2024 18:44
* Add support for tracking subscriptions and forwarding published messages in ustreamer.rs
* Add usubscription-static-file to stub out subscriptions before usubscription is written
* Add examples for mE (SOME/IP) subscribe/publish and uE (zenoh) subscribe/publish
* Add information about pub/sub in READMEs
* Support zenoh configuration in command line file
* Add test for usubscription with bad data

Implements [eclipse-uprotocol#18]
@matthewd0123 matthewd0123 force-pushed the feature/streamer_publish branch from ab78bfc to 7c73d07 Compare August 12, 2024 18:48
@PLeVasseur PLeVasseur merged commit 15ffc8b into eclipse-uprotocol:main Aug 12, 2024
8 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.

Support publish in up-streamer-rust
3 participants