René's URL Explorer Experiment


Title: Unit test installs kserve into the live interpreter, causing nondeterministic failures in unrelated tests · Issue #6732 · feast-dev/feast · GitHub

Open Graph Title: Unit test installs kserve into the live interpreter, causing nondeterministic failures in unrelated tests · Issue #6732 · feast-dev/feast

X Title: Unit test installs kserve into the live interpreter, causing nondeterministic failures in unrelated tests · Issue #6732 · feast-dev/feast

Description: Expected Behavior Running the unit suite leaves the environment it ran in unchanged, and a test's outcome does not depend on what other tests are doing concurrently. Current Behavior sdk/python/tests/unit/infra/test_dependency_conflicts....

Open Graph Description: Expected Behavior Running the unit suite leaves the environment it ran in unchanged, and a test's outcome does not depend on what other tests are doing concurrently. Current Behavior sdk/python/tes...

X Description: Expected Behavior Running the unit suite leaves the environment it ran in unchanged, and a test's outcome does not depend on what other tests are doing concurrently. Current Behavior sdk/python...

Opengraph URL: https://github.com/feast-dev/feast/issues/6732

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unit test installs kserve into the live interpreter, causing nondeterministic failures in unrelated tests","articleBody":"## Expected Behavior\n\nRunning the unit suite leaves the environment it ran in unchanged, and a test's outcome does not depend on what other tests are doing concurrently.\n\n## Current Behavior\n\n`sdk/python/tests/unit/infra/test_dependency_conflicts.py` installs a package into the interpreter that is running the suite:\n\n```python\ncommand = [sys.executable, \"-m\", \"pip\", \"install\", \"kserve==0.15.2\"]\n```\n\nThere is no isolation and no cleanup, so this mutates the environment every other test is using. Two consequences.\n\n**Unrelated tests fail nondeterministically in the same run.** `pyproject.toml` pins `psutil==5.9.0`; kserve 0.15.2 requires `psutil\u003c6.0.0,>=5.9.6`. pip therefore cannot leave the installed version in place — it uninstalls psutil, then installs 5.9.8:\n\n```\nAttempting uninstall: psutil\n  Found existing installation: psutil 5.9.0\n  Uninstalling psutil-5.9.0:\n    Successfully uninstalled psutil-5.9.0\nInstalling collected packages: … psutil …\n```\n\n`make test-python-unit` runs `pytest -n 8`, so eight workers share one environment. Any test running during that window which imports psutil, directly or through a subprocess, fails. `feast/metrics.py` imports psutil at module scope, and `feast/cli/cli.py` reaches it through `feast/__init__.py`, so every test that shells out to the CLI is exposed.\n\nObserved on an unrelated docs PR, in `unit-test-python (3.12, ubuntu-latest)`:\n\n```\nFAILED sdk/python/tests/unit/cli/test_cli.py::test_3rd_party_providers\nAssertionError: Expected \u003cb'Traceback (most recent call last):\n  File \".../feast/cli/cli.py\", line 27, in \u003cmodule>\n    from feast import utils\n  ...\n  File \".../feast/metrics.py\", line 57, in \u003cmodule>\n    import psutil\nModuleNotFoundError: No module named \\'psutil\\'\n'> to contain item \u003cb\"Provider \\'feast123\\' is not implemented\">\n```\n\nIn that job `test_install_kserve_with_feast` completed at 12:25:54 and the failure landed at 12:29:15. Because it depends on worker timing, a re-run usually passes, so it presents as flake and the blame lands on whichever PR happens to be running.\n\n**A second consecutive local run fails.** kserve also pulls protobuf down to 4.25.x, and the installed `grpcio-health-checking` ships protobuf 6.x generated code that imports `google.protobuf.runtime_version`. The first run still passes, because pytest imports every module during collection before the mid-run install lands; the next run fails at collection with `ImportError: cannot import name 'runtime_version' from 'google.protobuf'`. CI does not see this because its environments are ephemeral.\n\n## Steps to reproduce\n\n```\nmake test-python-unit    # passes\nmake test-python-unit    # collection errors on runtime_version\n```\n\nFor the race, run the suite with `-n 8` and observe that any test shelling out to the CLI can fail while the kserve install is between uninstall and install.\n\n### Specifications\n\n- Version: master\n- Platform: any; observed on `ubuntu-latest` Python 3.12 in CI and locally on macOS\n\n## Possible Solution\n\nThe test checks that kserve and feast can be resolved together. `pip` can answer that without installing anything, using `--dry-run`. Verified both directions:\n\n- no conflict: exits 0, performs full resolution (`Would install … psutil-5.9.8 …`), and leaves the environment untouched — psutil stays at 5.9.0 and kserve is not importable afterwards\n- real conflict: `pip install --dry-run kserve==0.15.2 psutil==5.9.0` exits 1 with `Cannot install kserve==0.15.2 and psutil==5.9.0 because these package versions have conflicting dependencies`\n\nSo the detection is unchanged and the mutation disappears. Happy to open a PR for this.\n\nSeparately, the current assertion looks inverted:\n\n```python\nconflict_occured = \"dependency conflicts\" in err and \"ERROR\" not in err\n```\n\nThat is only true when pip reports conflicts *without* an error, so a run that fails loudly sets it to `False`. The `exit_code == 0` assertion above it is what actually catches failures today.","author":{"url":"https://github.com/larrysingleton007","@type":"Person","name":"larrysingleton007"},"datePublished":"2026-08-12T23:56:12Z","url":"https://github.com/feast-dev/feast/issues/6732"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c0c7546c-f92a-857c-df78-3f34428fa7fd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE258:38CE1B:ED60DE:145093C:6AFE9813
html-safe-nonce2b7b629d68975061417215035bea4650a8dc9ba6aa8d85727f969a76d39fb5e3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjU4OjM4Q0UxQjpFRDYwREU6MTQ1MDkzQzo2QUZFOTgxMyIsInZpc2l0b3JfaWQiOiIxMDY3NjQ4ODQzNDU1MDQzNjAzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac67fa89f9800b0e146527764eaaf53e152a36b2a55f51712f78db1aaf9a0332b4
hovercard-subject-tagissue:5136360707
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feast-dev/feast/6732/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2c68ac8e29ed64d3410ef71d13ad533bfdc3ae6b162f957c4f37c6c57607a870/feast-dev/feast/issues/6732
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2c68ac8e29ed64d3410ef71d13ad533bfdc3ae6b162f957c4f37c6c57607a870/feast-dev/feast/issues/6732
og:image:altExpected Behavior Running the unit suite leaves the environment it ran in unchanged, and a test's outcome does not depend on what other tests are doing concurrently. Current Behavior sdk/python/tes...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelarrysingleton007
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
go-importgithub.com/feast-dev/feast git https://github.com/feast-dev/feast.git
octolytics-dimension-user_id57027613
octolytics-dimension-user_loginfeast-dev
octolytics-dimension-repository_id161133770
octolytics-dimension-repository_nwofeast-dev/feast
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id161133770
octolytics-dimension-repository_network_root_nwofeast-dev/feast
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/feast-dev/feast/issues/6732#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fissues%2F6732
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fissues%2F6732
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=feast-dev%2Ffeast
Reloadhttps://github.com/feast-dev/feast/issues/6732
Reloadhttps://github.com/feast-dev/feast/issues/6732
Reloadhttps://github.com/feast-dev/feast/issues/6732
feast-devhttps://github.com/feast-dev
feasthttps://github.com/feast-dev/feast
Codehttps://github.com/feast-dev/feast
Issues223 (223)https://github.com/feast-dev/feast/issues
Pull requests143 (143)https://github.com/feast-dev/feast/pulls
Discussionshttps://github.com/feast-dev/feast/discussions
Actionshttps://github.com/feast-dev/feast/actions
Security and quality1 (1)https://github.com/feast-dev/feast/security
Insightshttps://github.com/feast-dev/feast/insights
https://github.com/feast-dev/feast
New issuehttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/6732
New issuehttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/6732
#6733https://github.com/feast-dev/feast/pull/6733
Unit test installs kserve into the live interpreter, causing nondeterministic failures in unrelated testshttps://github.com/feast-dev/feast/issues/6732#top
#6733https://github.com/feast-dev/feast/pull/6733
https://github.com/larrysingleton007
larrysingleton007https://github.com/larrysingleton007
on Aug 12, 2026https://github.com/feast-dev/feast/issues/6732#issue-5136360707
ntkatholehttps://github.com/ntkathole
on Aug 14, 2026https://github.com/feast-dev/feast/issues/6732#event-29438082215
fix: Resolve kserve with pip --dry-run instead of installing ithttps://github.com/larrysingleton007/feast/commit/33a8e47c2c45a363915f50063c72b59ed0421c38
https://docs.github.com/articles/closing-issues-via-commit-messages
33a8e47https://github.com/larrysingleton007/feast/commit/33a8e47c2c45a363915f50063c72b59ed0421c38
fix: Resolve kserve with pip --dry-run instead of installing ithttps://github.com/feast-dev/feast/commit/01da132e609ed517983f060a89a5e24bde0f1270
https://docs.github.com/articles/closing-issues-via-commit-messages
01da132https://github.com/feast-dev/feast/commit/01da132e609ed517983f060a89a5e24bde0f1270
ntkatholehttps://github.com/ntkathole
completedhttps://github.com/feast-dev/feast/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#6733https://github.com/feast-dev/feast/pull/6733
on Aug 14, 2026https://github.com/feast-dev/feast/issues/6732#event-29438086910
franciscojavierarceohttps://github.com/franciscojavierarceo
on Aug 21, 2026https://github.com/feast-dev/feast/issues/6732#event-29781434455
chore(release): release 0.66.0https://github.com/feast-dev/feast/commit/1d5be950cf718a674cb01eaf0fd0ad6f0a4c6335
1d5be95https://github.com/feast-dev/feast/commit/1d5be950cf718a674cb01eaf0fd0ad6f0a4c6335
HSarwathttps://github.com/HSarwat
on Aug 22, 2026https://github.com/feast-dev/feast/issues/6732#event-29844848778
fix: Resolve kserve with pip --dry-run instead of installing ithttps://github.com/HSarwat/feast/commit/956a2b79baec563076cc54633a5019709610e866
https://docs.github.com/articles/closing-issues-via-commit-messages
956a2b7https://github.com/HSarwat/feast/commit/956a2b79baec563076cc54633a5019709610e866
Michie-hubhttps://github.com/Michie-hub
on Aug 31, 2026https://github.com/feast-dev/feast/issues/6732#event-30282803604
fix: Resolve kserve with pip --dry-run instead of installing ithttps://github.com/Michie-hub/feast/commit/15c687fe95ed78012b7e926afb08bd94b8391324
https://docs.github.com/articles/closing-issues-via-commit-messages
15c687fhttps://github.com/Michie-hub/feast/commit/15c687fe95ed78012b7e926afb08bd94b8391324
chore(release): release 0.66.0https://github.com/Michie-hub/feast/commit/a29c9231976fd7c68e51570047f9517f06579041
https://docs.github.com/articles/closing-issues-via-commit-messages
a29c923https://github.com/Michie-hub/feast/commit/a29c9231976fd7c68e51570047f9517f06579041
Sign up for freehttps://github.com/signup?return_to=https://github.com/feast-dev/feast/issues/6732
Sign in to commenthttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/6732
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.