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

Don't log warnings when unknown clients connect over TCP #6368

Merged
merged 1 commit into from
May 17, 2024

Conversation

emilk
Copy link
Member

@emilk emilk commented May 17, 2024

@emilk emilk added 📺 re_viewer affects re_viewer itself 😤 annoying Something in the UI / SDK is annoying to use include in changelog labels May 17, 2024
@Wumpf Wumpf mentioned this pull request May 17, 2024
5 tasks
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

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

"extending" this further in #6369
but contains this change as well as-is

@Wumpf Wumpf merged commit 3d4136d into main May 17, 2024
37 checks passed
@Wumpf Wumpf deleted the emilk/silence-warnings-on-tcp branch May 17, 2024 10:01
emilk pushed a commit that referenced this pull request May 20, 2024
### What

The mechanism for identifying Rerun clients was implemented in #6204.
However, during the release I accidentally "fixed" the build of `cargo
build -p re_viewer --no-default-features` twice:
* The seemingly correct fix was to depend on `re_sdk_comms` with the
`server` feature always enabled.
* The definitely wrong thing that slipped through is to feature guard
the section that needs the `re_sdk_comms` server errors with
`#[cfg(feature = "server")]`. But `re_viewer` doesn't have a `server`
feature, disabling this effectively. This was reverted in
#6368

It's up to users of `re_viewer` to allow the serve feature, making
`re_viewer` agonistic of the presence of this error type in its smart
channel. Therefore I now moved out the error type to `re_sdk_comms`
lib.rs so that `re_viewer` doesn't have to depend on the
`re_sdk_comms`'s server feature.


### Checklist
* [x] I have read and agree to [Contributor
Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and
the [Code of
Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md)
* [x] I've included a screenshot or gif (if applicable)
* [x] I have tested the web demo (if applicable):
* Using examples from latest `main` build:
[rerun.io/viewer](https://rerun.io/viewer/pr/6369?manifest_url=https://app.rerun.io/version/main/examples_manifest.json)
* Using full set of examples from `nightly` build:
[rerun.io/viewer](https://rerun.io/viewer/pr/6369?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json)
* [x] The PR title and labels are set such as to maximize their
usefulness for the next release's CHANGELOG
* [x] If applicable, add a new check to the [release
checklist](https://github.com/rerun-io/rerun/blob/main/tests/python/release_checklist)!

- [PR Build Summary](https://build.rerun.io/pr/6369)
- [Recent benchmark results](https://build.rerun.io/graphs/crates.html)
- [Wasm size tracking](https://build.rerun.io/graphs/sizes.html)

To run all checks from `main`, comment on the PR with `@rerun-bot
full-check`.
@Wumpf Wumpf added this to the 0.16.1 milestone May 28, 2024
abey79 pushed a commit that referenced this pull request May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
😤 annoying Something in the UI / SDK is annoying to use include in changelog 📺 re_viewer affects re_viewer itself
Projects
None yet
2 participants