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

Combinatorialize tarpc feature tests. #428

Merged
merged 1 commit into from
Feb 4, 2024
Merged

Combinatorialize tarpc feature tests. #428

merged 1 commit into from
Feb 4, 2024

Conversation

tikue
Copy link
Collaborator

@tikue tikue commented Feb 4, 2024

In the CI github workflow, in the job test-with-features, make a separate matrix dimension for each Cargo feature to enable. Github Actions should combine these features, so that we get more test coverage of different feature enablements.

This also introduces a minor breaking change by renaming serde_transport::{tcp,unix}::Connect to {Tcp,Unix}Connect.

Rationale: enabling all combinations actually revealed a compile_fail error that only arises when certain combinations of features are enabled! In the serde_transport module, there are two submodules, tcp and unix, which each provide a Connect type. When only one of the tcp/unix features is enabled, there is a unique path to the Connect type, and the name gets shortened in compile error messages. When both features are enabled, there is no longer a unique path to the Connect type, and the compile error messages print the full path.

@tikue tikue added the feature label Feb 4, 2024
@tikue tikue self-assigned this Feb 4, 2024
In the CI github workflow, in the job test-with-features, make a
separate matrix dimension for each Cargo feature to enable. Github
Actions should combine these features, so that we get more test coverage
of different feature enablements.

This also introduces a minor breaking change by renaming
serde_transport::{tcp,unix}::Connect to {Tcp,Unix}Connect.

Rationale: enabling all combinations actually revealed a compile_fail
error that only arises when certain combinations of features are
enabled! In the serde_transport module, there are two submodules, tcp
and unix, which each provide a Connect type. When only one of the
tcp/unix features is enabled, there is a unique path to the Connect
type, and the name gets shortened in compile error messages. When both
features are enabled, there is no longer a unique path to the Connect
type, and the compile error messages print the full path.
@tikue tikue merged commit 30067db into google:master Feb 4, 2024
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant