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

Specify datetime format in tests #1905

Merged

Conversation

kounelisagis
Copy link
Member

@kounelisagis kounelisagis commented Mar 1, 2024

The tiledb.from_csv and tiledb.from_pandas functions have been causing intermittent errors when running the unit tests with the message:

UserWarning: Could not infer format, so each element will be parsed individually, falling back to `dateutil`. To ensure parsing is consistent and as-expected, please specify a format.

Example failure: https://github.com/TileDB-Inc/TileDB-Py/actions/runs/7911328196/job/21595351207#step:10:1029

This is solved by explicitly passing date_format argument into each from_{csv,pandas} call.

Please note that the date_format argument is not available for Python 3.7 and below, so tests containing it should be skipped.

Copy link

This pull request has been linked to Shortcut Story #34107: Specify datetime Format in Tests.

Copy link
Member

@ihnorton ihnorton left a comment

Choose a reason for hiding this comment

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

LGTM, thanks. I just restarted the CI job, just to see if we can get another clean run. Merge when you want but please check the job when it finishes.

@ihnorton
Copy link
Member

ihnorton commented Mar 1, 2024

I'm going to go ahead and merge, and then rebase 1906 on top of this.

@ihnorton ihnorton merged commit 55d7b3a into dev Mar 1, 2024
34 checks passed
@ihnorton ihnorton deleted the agiskounelis/sc-34107/specify-datetime-format-in-tests branch March 1, 2024 18:18
kounelisagis added a commit that referenced this pull request Mar 4, 2024
* Specify datetime format in tests

* skip tests containing date_format argument for Python 3.7 and below

---
fixes https://app.shortcut.com/tiledb-inc/story/34107
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.

None yet

2 participants