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

Improve feature flag CI coverage datafusion and datafusion-functions #15203

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Mar 13, 2025

Which issue does this PR close?

Rationale for this change

I reviewed the CI coverage for datafusion's (many!) feature flag and it is haphazard -- for example it was not clear where to add a test for #15124

What changes are included in this PR?

  1. I reviewed and ensured there is full feature flag coverage for the datafusion and datafusion-functions crate

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the development-process Related to development process of DataFusion label Mar 13, 2025
@@ -82,6 +82,8 @@ jobs:
uses: ./.github/actions/setup-builder
with:
rust-version: stable
- name: Check datafusion-common (default features)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

there was no check for default set of features (even the tests run with avro, etc) so I added that

@alamb alamb changed the title Improve feature flag CI coverage datafusion and datafusion-functions Improve feature flag CI coverage datafusion and datafusion-functions, remove core_expressions feature Mar 13, 2025
@github-actions github-actions bot added the functions Changes to functions implementation label Mar 13, 2025
@alamb alamb force-pushed the alamb/features2 branch from a02b1be to 18de2aa Compare March 13, 2025 15:12
@github-actions github-actions bot removed the functions Changes to functions implementation label Mar 13, 2025
@alamb alamb changed the title Improve feature flag CI coverage datafusion and datafusion-functions, remove core_expressions feature Improve feature flag CI coverage datafusion and datafusion-functions Mar 13, 2025
@github-actions github-actions bot added the core Core DataFusion crate label Mar 13, 2025
- name: Check datafusion-substrait (no-default-features)
run: cargo check --profile ci --all-targets --no-default-features -p datafusion-substrait
#
# Note: Only check libraries (not --all-targets) to cover end user APIs
Copy link
Contributor Author

@alamb alamb Mar 13, 2025

Choose a reason for hiding this comment

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

The idea is to test only --all-targets for the default features (what a developer would likely run), otherwise the CI will just verify that a user of the crate can compile things rather than check all tests and benches too

@alamb alamb force-pushed the alamb/features2 branch from feaa790 to e31b779 Compare March 13, 2025 16:01
@alamb alamb marked this pull request as ready for review March 13, 2025 16:21
@alamb
Copy link
Contributor Author

alamb commented Mar 13, 2025

@xudong963 I wonder if you have some time to review this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate development-process Related to development process of DataFusion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improved CI test coverage for rust features
1 participant