Skip to content

chore: Better errors, more logging#6491

Open
hunger wants to merge 2 commits into
prefix-dev:mainfrom
hunger:push-vtyyyvqmuqzz
Open

chore: Better errors, more logging#6491
hunger wants to merge 2 commits into
prefix-dev:mainfrom
hunger:push-vtyyyvqmuqzz

Conversation

@hunger

@hunger hunger commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Description

Improve error message and logging related to rich platform selection

AI Disclosure

  • This PR contains AI-generated content.
    • I have tested any AI-generated content in my PR.
    • I take responsibility for any AI-generated content in my PR.

Tools: Claude

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added sufficient tests to cover my changes.
  • I have verified that changes that would impact the JSON schema have been made in schema/model.py.

hunger added 2 commits July 1, 2026 14:19
…g interpreter error

When an environment's only declared platform requires a virtual package
the host does not provide (e.g. a `__cuda`-requiring platform on a host
without CUDA), pypi resolution failed with `there is no compatible Python
interpreter for 'linux-64'` -- naming the bare host subdir picked as a
fallback rather than the real cause: no declared platform is runnable here.

`make_unsupported_pypi_platform_error` now returns the
`UnsupportedPlatformError` in that case, which names the unsatisfied
requirements and suggests the matching `CONDA_OVERRIDE_*` mocks. Its help
is carried across the build-dispatch panic path in a separate field so
miette renders it as its own help section.
Add a debug log recording, per environment, the host subdir and detected
virtual packages, the platforms the environment declares, the
host-runnable candidates, and the final selection (or why none matched).
This surfaces why a rich platform is or isn't chosen without having to
reconstruct it from the manifest.
@hunger hunger requested a review from wolfv July 1, 2026 14:32
@Hofer-Julian Hofer-Julian changed the title chore: Better erros, more logging chore: Better errors, more logging Jul 1, 2026
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.

1 participant