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 vsock connection tests #846

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

add vsock connection tests #846

wants to merge 3 commits into from

Conversation

elmarco
Copy link
Contributor

@elmarco elmarco commented Jun 17, 2024

The test fails with tokio-vsock, which doesn't seem to send or flush the BEGIN command. More investigation needed.

@zeenix
Copy link
Contributor

zeenix commented Jun 17, 2024

We already have an automatically created pr for nix update and cargo.lock isn't really something that affects users. Please don't touch it directly. Bots take care of it.

@elmarco
Copy link
Contributor Author

elmarco commented Jul 1, 2024

@zeenix any idea why tokio-vsock doesn't receive BEGIN.. or how to debug that.. I am bit stuck.

(cargo test --features tokio-vsock,p2p connection::p2p_tests::vsock_connect)

zbus/src/connection/mod.rs Outdated Show resolved Hide resolved
zbus/src/connection/mod.rs Outdated Show resolved Hide resolved
@zeenix
Copy link
Contributor

zeenix commented Jul 1, 2024

@zeenix any idea why tokio-vsock doesn't receive BEGIN.. or how to debug that.. I am bit stuck.

Seems to be only an issue for tokio-vsock (vsock works). I left a comment for improvement and that might help but otherwise, I'm stumped too. Maybe a bug in tokio-vsock?

@zeenix
Copy link
Contributor

zeenix commented Jul 11, 2024

@elmarco do you see this PR going forward?

This is backward since commit cf35fbd and triggers extra compilation
warning (target_family vs target_os). Let's drop it.
Use local CID, and bind to any port.

If vsock is enabled, assume the host is capable to run the tests.
zbus/Cargo.toml Outdated Show resolved Hide resolved
@elmarco elmarco changed the title WIP: add vsock connection tests add vsock connection tests Jul 16, 2024
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.

None yet

2 participants