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

ci: test examples #10098

Merged
merged 5 commits into from
Sep 11, 2024
Merged

ci: test examples #10098

merged 5 commits into from
Sep 11, 2024

Conversation

cpcloud
Copy link
Member

@cpcloud cpcloud commented Sep 11, 2024

We were not testing examples in CI because we did not install the examples extra. Now we are.

@cpcloud cpcloud added bug Incorrect behavior inside of ibis ci Continuous Integration issues or PRs labels Sep 11, 2024
@cpcloud cpcloud added this to the 9.5 milestone Sep 11, 2024
Copy link
Contributor

@ncclementi ncclementi left a comment

Choose a reason for hiding this comment

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

LGTM, just two small comments to check weather those changes belong here or not.

@@ -372,7 +373,7 @@ def _register(
self.con.deregister_table(table_name)
self.con.register_record_batches(table_name, [[source]])
return self.table(table_name)
elif isinstance(source, pa.dataset.Dataset):
elif isinstance(source, ds.Dataset):
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems to be unrelated to including examples in the tests suit, just making sure you are ok with that.

Copy link
Member Author

Choose a reason for hiding this comment

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

These are definitely related. They aren't hit unless the examples are run.

@@ -45,6 +44,8 @@ def test_register_batches(conn):


def test_register_dataset(conn):
import pyarrow.dataset as ds
Copy link
Contributor

Choose a reason for hiding this comment

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

same that the comment above. If we are good with these nits getting in here, all good.

Copy link
Member Author

Choose a reason for hiding this comment

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

Definitely related, for the same reason.

@cpcloud cpcloud merged commit 52fdd89 into ibis-project:main Sep 11, 2024
81 checks passed
@cpcloud cpcloud deleted the actually-test-examples branch September 11, 2024 20:03
ncclementi pushed a commit to ncclementi/ibis that referenced this pull request Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior inside of ibis ci Continuous Integration issues or PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants