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

fix: skip compression tests on --no-default-features #7172

Conversation

not-my-profile
Copy link
Contributor

Previously cargo test -p datafusion --no-default-features --lib failed with 77 tests panicking with the message:

Compression is not supported in this build

This commit fixes this test failure under --no-default-features by excluding the tests via #[cfg(feature = "compression")].

Previously `cargo test -p datafusion --no-default-features --lib`
failed with 77 tests panicking with the message:

> Compression is not supported in this build

This commit fixes this test failure under --no-default-features
by excluding the tests via `#[cfg(feature = "compression")]`.
@github-actions github-actions bot added the core Core DataFusion crate label Aug 1, 2023
@not-my-profile
Copy link
Contributor Author

Perhaps the CI should run the tests with --no-default-features as well to spot such errors?

https://github.com/apache/arrow-datafusion/blob/7af25decf0505fe9f835b7440fc498cad90dde35/.github/workflows/rust.yml#L98-L99

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you very much @not-my-profile -- this is great and a very nice contribution to DataFusion

Perhaps the CI should run the tests with --no-default-features as well to spot such errors?

Yes that makes a lot of sense. Would you be able to create a PR to do so?

@jackwener
Copy link
Member

Thanks @not-my-profile

@jackwener jackwener merged commit 5faa10b into apache:main Aug 2, 2023
not-my-profile added a commit to not-my-profile/arrow-datafusion that referenced this pull request Aug 2, 2023
…7172)"

This reverts commit 5faa10b
to test if the CI addition is working as intended.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants