Skip to content

fix: more hatch -> failures#8655

Merged
mscolnick merged 2 commits intomainfrom
dm/failures
Mar 12, 2026
Merged

fix: more hatch -> failures#8655
mscolnick merged 2 commits intomainfrom
dm/failures

Conversation

@dmadisetti
Copy link
Collaborator

📝 Summary

is_in_uv_project always returns true now- so we it patch it in relevant tests

Copilot AI review requested due to automatic review settings March 12, 2026 00:11
@vercel
Copy link

vercel bot commented Mar 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Error Error Mar 12, 2026 0:17am

Request Review

@dmadisetti dmadisetti added the bug Something isn't working label Mar 12, 2026
@dmadisetti dmadisetti requested review from mscolnick and removed request for Copilot March 12, 2026 00:11
Copilot AI review requested due to automatic review settings March 12, 2026 00:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR stabilizes uv-related runtime tests by forcing UvPackageManager.is_in_uv_project to False, avoiding environment-dependent behavior (e.g., when running tests under tooling that makes uv project detection always true).

Changes:

  • Patch UvPackageManager.is_in_uv_project to False in script-metadata management tests.
  • Patch UvPackageManager.is_in_uv_project (and _uv_bin) in the uv pip install test to ensure deterministic command selection/format.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
tests/_runtime/test_manage_script_metadata.py Forces non-uv-project behavior for uv script-metadata tests to prevent env-dependent failures.
tests/_runtime/packages/test_package_managers.py Forces uv pip install codepath (and a stable _uv_bin) so the expected command is consistent across environments.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mscolnick mscolnick merged commit 0b5467c into main Mar 12, 2026
43 of 45 checks passed
@mscolnick mscolnick deleted the dm/failures branch March 12, 2026 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants