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

Fixes flaky test test_datetime_split[dask] #2232

Merged
merged 1 commit into from
Jul 6, 2022

Conversation

dantreiman
Copy link
Collaborator

Fixes #2227

If we assign the date column df["date_col"] = df["C"].map(random_date) after converting df to a dask dataframe, then the map gets lazy evaluated which gives a new set of random dates each time we access it.

Fixed by assigning df["date_col"] to the pandas dataframe before converting to dask.

… dataframe, otherwise the map is lazy-evaluated.
@github-actions
Copy link

github-actions bot commented Jul 6, 2022

Unit Test Results

       6 files  +    2         6 suites  +2   2h 25m 51s ⏱️ + 1h 11m 22s
2 910 tests ±    0  2 864 ✔️ ±    0    46 💤 ±  0  0 ±0 
8 730 runs  +336  8 588 ✔️ +290  142 💤 +46  0 ±0 

Results for commit 6f028ee. ± Comparison against base commit 5d6a970.

@tgaddair tgaddair merged commit 61a72a0 into ludwig-ai:master Jul 6, 2022
@dantreiman dantreiman deleted the daniel/date_split_test branch July 6, 2022 02:06
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.

Flaky test: tests/ludwig/data/test_split.py::test_datetime_split[dask]
2 participants