Skip to content

Conversation

@antznette1
Copy link
Contributor

@antznette1 antznette1 commented Dec 16, 2025

What this PR does / why we need it:

  • Update sdk/python/pytest.ini to avoid relying on internal _pytest.warning_types.* warning classes (breaks on newer pytest).
  • Fix Windows multiprocessing start method selection (sys.platform is win32, not windows).
  • Avoid importing optional integration-only dependencies at conftest.py import time (so test collection doesn’t hard-fail when optional deps aren’t installed).

Why we need it:

  • Unblocks local test runs on newer pytest versions and improves Windows contributor experience.

Testing

  • Local: verified pytest no longer fails early due to invalid warning class / Windows fork start method.

Open with Devin

@antznette1 antznette1 requested a review from a team as a code owner December 16, 2025 16:38
@ntkathole ntkathole changed the title fix: make pytest config compatible with newer pytest fix: Make pytest config compatible with newer pytest Dec 23, 2025
@ntkathole ntkathole force-pushed the fix/pytest-windows-test-config branch from e5ef90b to 99c742d Compare December 23, 2025 07:59
@ntkathole
Copy link
Member

@antznette1 Can you please fix the linting ? Thanks

@antznette1 antznette1 force-pushed the fix/pytest-windows-test-config branch from 081c356 to 1835d0f Compare January 3, 2026 01:13
@antznette1
Copy link
Contributor Author

@antznette1 Can you please fix the linting ? Thanks

@ntkathole

I have done it.

@franciscojavierarceo
Copy link
Member

@antznette1 looks like you need to resolve conflicts please.

@franciscojavierarceo
Copy link
Member

@copilot can you help resolve the conflicts and remove the commits not related to this branch?

@antznette1
Copy link
Contributor Author

@antznette1 looks like you need to resolve conflicts please.

Good day Sir,
Please, I'd love to get the review on the PR

@franciscojavierarceo
Copy link
Member

@antznette1 there are quite a number of conflicts that need to be resolved 😅

Signed-off-by: amiraifori <iforiamira@gmail.com>
Signed-off-by: antznette1 <ochiezeanthonette@gmail.com>
Signed-off-by: Anthonette Adanyin <106275232+antznette1@users.noreply.github.com>
@antznette1 antznette1 force-pushed the fix/pytest-windows-test-config branch from 1835d0f to 11f0ff0 Compare January 26, 2026 15:37
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

View issue and 4 additional flags in Devin Review.

Open in Devin Review

@antznette1
Copy link
Contributor Author

@antznette1 there are quite a number of conflicts that need to be resolved 😅

I have worked on the conflicts; it's not conflicted anymore

Signed-off-by: Anthonette Adanyin <106275232+antznette1@users.noreply.github.com>
Signed-off-by: antznette1 <Ochiezeanthonette@gmail.com>
@antznette1 antznette1 force-pushed the fix/pytest-windows-test-config branch from 11f0ff0 to 2abd8be Compare January 26, 2026 16:21
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

Devin Review found 1 new potential issue.

View issue and 6 additional flags in Devin Review.

Open in Devin Review

Comment on lines +268 to +271
We also utilize indirect parametrization here. Since [environment](cci:1://file:///c:/Users/brass/OneDrive/Desktop/Work/App/Lanre/feast/sdk/python/tests/conftest.py:229:0-245:16) is a fixture,
when we call metafunc.parametrize("environment", ..., indirect=True) we actually
parametrizing this "environment" fixture and not the test itself.
Moreover, by utilizing `_config_cache` we are able to share `environment` fixture between different tests.
Moreover, by utilizing `_config_cache` we are able to share [environment](cci:1://file:///c:/Users/brass/OneDrive/Desktop/Work/App/Lanre/feast/sdk/python/tests/conftest.py:229:0-245:16) fixture between different tests.
Copy link
Contributor

Choose a reason for hiding this comment

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

🟡 Docstring corrupted with IDE-generated link artifacts

The docstring in pytest_generate_tests has been corrupted with IDE-generated link artifacts that make the documentation confusing and hard to read.

Click to expand

What happened

The docstring was modified to include what appear to be IDE-generated links (possibly from Devin AI or another tool):

Before:

We also utilize indirect parametrization here. Since `environment` is a fixture,
...
Moreover, by utilizing `_config_cache` we are able to share `environment` fixture between different tests.

After:

We also utilize indirect parametrization here. Since [environment](cci:1://file:///c:/Users/brass/OneDrive/Desktop/Work/App/Lanre/feast/sdk/python/tests/conftest.py:229:0-245:16) is a fixture,
...
Moreover, by utilizing `_config_cache` we are able to share [environment](cci:1://file:///c:/Users/brass/OneDrive/Desktop/Work/App/Lanre/feast/sdk/python/tests/conftest.py:229:0-245:16) fixture be... [truncated]

These cci:1://file:///c:/Users/... links are not valid markdown or Python documentation, and the second line is also truncated with [truncated].

Impact

Documentation is corrupted and harder to read. No functional impact.

Recommendation: Restore the original docstring text by replacing the IDE-generated links with the original backtick-quoted environment references.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

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.

3 participants