You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This might look like an odd request, but please bear with me.
In Narwhals we take some effort to make sure that what we release/merge does not end up breaking downstream libraries that use Narwhals. We run tests of these libraries as part of our usual CI with Narwhals installing from the PR codebase (see downstream_tests.yaml).
For some libraries, these test might take a while and we end up running only specific tests (see darts example).
In a way this is a hack which might break easily in (at least) the following two scenarios:
A test is moved -> breaks our CI (happened with plotly)
A new test is added and we don't run it -> silent "failure"
I would consider Fairlearn to be among the libraries which tests can be quite long in their entirety.
In light of the progressive Narwhals adoption in Fairlearn, I am here to ask what should we test, that also runs in reasonable time.
Would the minimal-deps test suffice? Will there be in the future parts of the code outside of what's tested with minimal-deps workflow that use Narwhals, either directly or indirectly?
One idea would be to add a pytestmark = pytest.mark.narwhals at the top of the test files that run with Narwhals.
In this way we simply run pytest test -m narwhals to collect all and only these tests, without the need to change it over time.
I would consider Fairlearn to be among the libraries which tests can be quite long in their entirety.
Agreed 💯 (I'm working on speeding them up 🤞)
One idea would be to add a pytestmark
I'm ok with this solution, it would resolve the first breaking case you mentionned (a test is moved), and the second one too (silent failures) provided that we do not forget to mark new narwhals related tests 👍
@fairlearn/fairlearn-maintainers Any objections ? I guess that in practice this would involve:
I am also in favour of this, it makes sense for both sides. Maybe we can do a check if a test is added/changed to have a tag like we have for the changelog so we don't forget? "not a narwhals test"
Activity
[-]TEST Add pytest narwhals marker[/-][+]TEST Add pytest marker for narwhals[/+]taharallouche commentedon Oct 21, 2025
Agreed 💯 (I'm working on speeding them up 🤞)
I'm ok with this solution, it would resolve the first breaking case you mentionned (a test is moved), and the second one too (silent failures) provided that we do not forget to mark new narwhals related tests 👍
@fairlearn/fairlearn-maintainers Any objections ? I guess that in practice this would involve:
@pytest.mark.narwhalsat the top)TamaraAtanasoska commentedon Oct 21, 2025
I am also in favour of this, it makes sense for both sides. Maybe we can do a check if a test is added/changed to have a tag like we have for the changelog so we don't forget? "not a narwhals test"