Skip to content

quality: release a pinned prebuilt bundle of the core Python quality tools #10544

Open

Description

@TrapsterDK

Follow-up to #10117 (part of #10085).

The always-attached core quality aspects default to py_binary targets in core/quality/tools/python, whose BUILD loads @rules_py. Every consumer then fetches rules_py, a Python toolchain and the pypi hub, even a Go-only workspace. //core/quality:core_load_graph_test lists this package in its shrink-only PENDING_TOOL_PACKAGES.

Where

  • core/quality/tools/python/BUILD.bazel (docstrfmt, yamllint, sqlfluff, cmakelint, djlint, mbake, ansible_lint_tool, cfn_lint)
  • the release workflow that publishes the dx-<platform> assets (cli/prebuilt/hub.bzl ASSET_PLATFORMS)

Fix

  • Add a target that builds one relocatable bundle per release platform: a python-build-standalone install_only interpreter, one site-packages per tool installed from the pinned uv.lock files, and a launcher per tool (.cmd on Windows).
  • Publish it next to the dx assets as dx-python-tools-<platform>.tar.gz with a sha256 pin, the same way the dx binary is pinned.
  • Do not repoint any aspect attr in this issue; that is the next issue.

Activity

  1. added
    P2
    model:sonnet
    on Nov 10, 2026
  2. TrapsterDK commented on Nov 10, 2026

    @TrapsterDK
    CollaboratorAuthor

    Design: #10648. The bundle is a release-assembled asset (python-build-standalone interpreter plus the wheels locked in uv.lock, nothing compiled), so it depends on the hosting decision in #10063 like #10645. ansible-lint stays unsupported on Windows. If rules_dx hosts no tool assets, close this and #10545 as not planned; core/quality/tools/python then stays in PENDING_TOOL_PACKAGES.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01Xut2hw7VSwpTcKWzXNfUDz

  3. added
    blocked
    on Nov 10, 2026
  4. TrapsterDK commented on Nov 10, 2026

    @TrapsterDK
    CollaboratorAuthor

    Remaining: #10612 put the bundle targets on main (//core/quality/tools/python_bundle:dx_python_tools_<platform>). Left:

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01Xut2hw7VSwpTcKWzXNfUDz

  5. github-actions commented on Nov 10, 2026

    @github-actions
    Contributor

    This issue has the blocked label but no Blocked on: line in its body. Add one naming the blocking issue (#N), a pull request URL, or the owner action. See CONTRIBUTING.md.

  6. TrapsterDK commented on Nov 17, 2026

    @TrapsterDK
    CollaboratorAuthor

    PR #12906 publishes dx-python-tools-<host>.tar.gz from release-tools.yml and lists them in dx-tool-sha256sums.txt. Remaining:

    • After the first release with the bundles, add the sha256 pins and the asset list in cli/prebuilt/hub.bzl.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K

  7. TrapsterDK commented on Nov 17, 2026

    @TrapsterDK
    CollaboratorAuthor

    Skipped: remaining item (sha256 pins + asset list in cli/prebuilt/hub.bzl) needs the first release that publishes dx-python-tools-<host>.tar.gz via release-tools.yml (#12906); no such release exists yet. Owner action: cut that release.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K

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

    P2blockedmodel:sonnet

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions