Skip to content

[BUG] setup-devkit-toolchain applies python/uv CI env unconditionally on non-python consumers #1028

Closed

Description

@c-vigo

Description

Surfaced by the commit-action pilot (vig-os/commit-action#32). The shared CI
composite .github/actions/setup-devkit-toolchain/action.yml applies Python/uv
environment unconditionally
, regardless of the consumer's language or
DEVKIT_MODULES:

  • UV_PROJECT_ENVIRONMENT=/root/assets/workspace/.venv (line ~61)
  • forwards UV_PYTHON_DOWNLOADS_JSON_URL (lines ~127-134)
  • filters the Nix CPython out of $GITHUB_PATH so uv sync rebuilds a manylinux
    CPython (lines ~119-125)

On a repo with no Python (e.g. commit-action, a TypeScript action) these run
anyway.

Impact

Harmless today — the vars are unused when CI runs just sync (= npm ci) — but
it is Python-assuming plumbing baked into the shared, language-neutral CI
toolchain. Confusing to read, and a latent footgun (the deliberate PATH filtering
of CPython could surprise a consumer that legitimately wants the Nix python).

Suggested fix

Gate the uv/python env on the project actually being Python (presence of
pyproject.toml, or a python entry in DEVKIT_MODULES), so the composite is a
no-op for non-Python consumers.

Related

Pilot #32; node module #1027. Non-blocking.

Activity

  1. added this to the Backlog milestone on Jul 14, 2026
  2. added
    bug
    priority:low
    area:ci
    effort:small
    semver:patch
    on Jul 14, 2026
  3. c-vigo commented on Jul 14, 2026

    @c-vigo
    ContributorAuthor

    Fixed in #1033 (merged to dev): python/uv env in setup-devkit-toolchain is now gated on a root pyproject.toml — the composite is a no-op for those steps on non-Python consumers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cibugeffort:smallpriority:lowsemver:patch

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions