Skip to content

tests: Add Narwhals pytest marker - #1597

Merged
taharallouche merged 3 commits into
fairlearn:mainfrom
FBruzzesi:tests/add-narwhals-marker
Oct 23, 2025
Merged

taharallouche merged 3 commits into
fairlearn:mainfrom
FBruzzesi:tests/add-narwhals-marker

Conversation

@FBruzzesi

Copy link
Copy Markdown
Contributor

Description

Closes #1555

Tests

  • no new tests required
  • new tests added
  • existing tests adjusted

Documentation

  • no documentation changes needed
  • user guide added or updated
  • API docs added or updated
  • example notebook added or updated

Screenshots

It's possible to run pytest test/unit -m narwhals to execute only the relevant tests:

image

Comment thread test/unit/postprocessing/test_plots.py Resolved

@taharallouche taharallouche left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me @FBruzzesi 🙏 I will merge as soon as the pipeline passes

@FBruzzesi

Copy link
Copy Markdown
Contributor Author

@taharallouche do you have any insight here? I am not able to reproduce there failures locally independently of which python and library versions I use 😭

@taharallouche

Copy link
Copy Markdown
Member

@taharallouche do you have any insight here? I am not able to reproduce there failures locally independently of which python and library versions I use 😭

Unfortunately this is a recurrent failure where the pipeline fails to pull some data from the OpenMl API 🫠 It is not related to these changes

@FBruzzesi

Copy link
Copy Markdown
Contributor Author

Unfortunately this is a recurrent failure where the pipeline fails to pull some data from the OpenMl API 🫠 It is not related to these changes

Oh I see! Maybe there is a way to use the github runners caches to store the datasets there so that you can avoid the API call completely?
I tried locally, the total size is <25Mb with one dataset (acs_income) which is 22Mb. Not sure if you want to have that in the repo tests, 25Mb seems on the high end to me, but github caches might work. I can try to put a PR if this is of interest 🙏🏼

@taharallouche

Copy link
Copy Markdown
Member

Unfortunately this is a recurrent failure where the pipeline fails to pull some data from the OpenMl API 🫠 It is not related to these changes

Oh I see! Maybe there is a way to use the github runners caches to store the datasets there so that you can avoid the API call completely? I tried locally, the total size is <25Mb with one dataset (acs_income) which is 22Mb. Not sure if you want to have that in the repo tests, 25Mb seems on the high end to me, but github caches might work. I can try to put a PR if this is of interest 🙏🏼

Whenever you have time to try this please do, that would be very nice and would benefit all the parties (less pings for openml, less failures on our side) ! @FBruzzesi 🙏

@taharallouche
taharallouche merged commit 2177902 into fairlearn:main Oct 23, 2025
@FBruzzesi
FBruzzesi deleted the tests/add-narwhals-marker branch October 23, 2025 07:57
@FBruzzesi FBruzzesi mentioned this pull request Oct 23, 2025
2 of 7 tasks
@TamaraAtanasoska

Copy link
Copy Markdown
Contributor

Unfortunately we can't download and serve the datasets legally because of licensing, at least that is how it was explained to me. When we had the big OpenML outage last year that left most of us not being able to work, including scikit-learn, I was involved then, some projects downloaded and served caches on their own, but it is a bit of a grey zone . We have some caching implemented in the actions themselves, but it might not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TEST Add pytest marker for narwhals

3 participants