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 CI to build features in isolation #642

Merged
merged 3 commits into from
May 27, 2024

Conversation

gadomski
Copy link
Contributor

@gadomski gadomski commented May 23, 2024

Description

If downstreams want to just depend on a single feature, we need to make sure we can build w/ just that feature enabled ... e.g. as of this writing, parquet implicitly depends on async but isn't configured as such in Cargo.toml.

We can't test w/o installing GDAL and friends because gdal is a dev dependency, so we just build.

@gadomski gadomski force-pushed the isolated-features branch from 58cca41 to 0cd75f1 Compare May 23, 2024 13:45
@gadomski gadomski changed the title Add CI to test features in isolation Add CI to build features in isolation May 23, 2024
@gadomski gadomski force-pushed the isolated-features branch 2 times, most recently from 1963e86 to f18fd24 Compare May 23, 2024 13:47
@gadomski gadomski force-pushed the isolated-features branch from f18fd24 to 3445dbf Compare May 23, 2024 13:58
Can't be in `async` because it's used by sync code. Also fix some tests that
require some features.
@gadomski gadomski marked this pull request as ready for review May 23, 2024 16:42
.github/workflows/ci.yml Outdated Show resolved Hide resolved
@@ -9,18 +9,23 @@
//! use geoarrow::io::parquet::ParquetReaderOptions;
//! use std::fs::File;
//!
//! # #[cfg(feature = "parquet_compression")]
//! # {
Copy link
Member

Choose a reason for hiding this comment

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

I'm curious, why do you have a { here? Is that needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's to feature-gate the whole test in the a block.

Copy link
Member

Choose a reason for hiding this comment

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

oh that makes sense

@kylebarron kylebarron enabled auto-merge (squash) May 27, 2024 12:59
@kylebarron kylebarron merged commit 76a0dcb into geoarrow:main May 27, 2024
21 checks passed
@gadomski gadomski deleted the isolated-features branch May 28, 2024 13:21
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.

2 participants