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

Minor: Consolidate some integration tests into core_integration #10588

Merged
merged 3 commits into from
May 22, 2024

Conversation

alamb
Copy link
Contributor

@alamb alamb commented May 20, 2024

Which issue does this PR close?

Rationale for this change

In an effort to make it faster to develop and test datafusion , it would be nice if the resources required to run the tests were smaller

For example, on my machine, simply running the memory_limit integration test

cargo test --test memory_limit

Requires creating / linking a 148 MB binary:

andrewlamb@Andrews-MacBook-Pro-2:~/Software/datafusion2$ du -s -h target/debug/deps/memory_limit-47b8096a6ecbd81c
148M	target/debug/deps/memory_limit-47b8096a6ecbd81c

While creating the core_integration test requires 151M

andrewlamb@Andrews-MacBook-Pro-2:~/Software/datafusion2$ du -s -h target/debug/deps/core_integration-2ccc5be60db1701a
151M	target/debug/deps/core_integration-2ccc5be60db1701a

Not only does each integration test target require about 140MB of extra space and the time to link, it also slows down the tests runs as they are not run in parallel with other tests

What changes are included in this PR?

  1. Consoldidate the memory_limit, fifo, custom_sources and simplification tests into the core_integration test

After this PR core_integration is 2MB larger:

andrewlamb@Andrews-MacBook-Pro-2:~/Software/datafusion2$ du -s -h target/debug/deps/core_integration-2ccc5be60db1701a
153M	target/debug/deps/core_integration-2ccc5be60db1701a

So this PR saves creating roughly 600MB of binaries for testing

Are these changes tested?

They are all tests

Are there any user-facing changes?

No this is a developer productivity one only

@github-actions github-actions bot added the core Core DataFusion crate label May 20, 2024
@@ -1,308 +0,0 @@
// Licensed to the Apache Software Foundation (ASF) under one
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was moved to custom_sources_cases.mod

@alamb alamb marked this pull request as ready for review May 20, 2024 18:53
Copy link
Member

@jonahgao jonahgao left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@alamb
Copy link
Contributor Author

alamb commented May 22, 2024

Thank you for the review @jonahgao

@alamb alamb merged commit 4396d5e into apache:main May 22, 2024
25 checks passed
@alamb alamb deleted the alamb/consolidate_test branch May 22, 2024 15:42
findepi pushed a commit to findepi/datafusion that referenced this pull request Jul 16, 2024
…ache#10588)

* Consolidate custom_sources test into core_integration

* Consolidate simplification into core_integration

* Consolidate memory_limit and fifo
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.

2 participants