Evaluate Develocity Build Scans for the Python client

Đang mở
#966 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
28/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
github-actions, python
Lĩnh vực
build-system, ci-cd

Hướng nghiên cứu

Start by obtaining confirmation from the Develocity Solutions team that Python Build Scan publishing is enabled for project meshtastic on community.develocity.cloud. If approved, inspect pyproject.toml, poetry.lock, pytest.ini, and the existing CI test job to plan .develocity.py, a hash-pinned development-only agent wheel, and the DEVELOCITY_ACCESS_KEY secret. Done means publishing is enabled for the Python project without adding the beta wheel to runtime dependencies.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Context

Every Meshtastic Gradle repo is now onboarded to the OSS Community
Develocity instance at https://community.develocity.cloud under project ID
meshtastic — Build Scans® plus a shared remote build cache:

  • meshtastic/Meshtastic-Android#6531
  • meshtastic/kzstd#36
  • meshtastic/gradle-flatpak-sources#28
  • meshtastic/MQTTastic-Client-KMP#118
  • meshtastic/meshtastic-sdk#91
  • meshtastic/protobufs#1027

Develocity now has a Python agent, so the question is whether this repo can join.
This issue records what was found; no change is proposed yet, because the
answer depends on something only Gradle can confirm.

What the Python agent is today

Per the Develocity Python Agent manual:

  • Beta, currently 0.10.x.
  • Not on PyPI. It installs from a vendor URL:
    https://develocity-python-pkgs.gradle.com/develocity_agent-0.10.1-py3-none-any.whl
  • Python support is off by default — "To enable it, contact Gradle."
  • Configuration lives in a .develocity.py at the repo root, exposing a
    develocity_configuration() function. develocity_url is required;
    access_key comes from the config or the DEVELOCITY_ACCESS_KEY environment
    variable.
  • Instruments pip, poetry, pytest, pylint, mypy, flake8, autopep8,
    isort, django, and others — but test results are pytest-only.
  • The manual states that publishing to Gradle's own hosted Develocity is not
    supported. Whether that wording excludes community.develocity.cloud is the
    open question.

This repo is otherwise a clean fit

Poetry-managed (pyproject.toml, poetry.lock), pytest-driven (pytest.ini),
with a CI job that runs lint + type check + tests via
poetry install --all-extras --with dev,powermon. The agent instruments
exactly that toolchain.

Blocking question

Can Python Build Scan publishing be enabled for project meshtastic on
community.develocity.cloud?
This needs an answer from the Develocity
Solutions team; it is not something we can determine or configure ourselves.

Decision needed if the answer is yes

Adding the agent means adding a wheel served outside PyPI to poetry.lock.
That is a supply-chain decision for the maintainers, not a mechanical change: it
would want a pinned hash, and a view on taking a beta dependency into the
dependency graph of a published client library. Worth considering whether it
belongs in the dev group only.

Shape of the change, if approved

  1. .develocity.py at the repo root setting develocity_url and
    project_id = "meshtastic".
  2. The agent wheel in the dev dependency group, pinned by hash.
  3. A DEVELOCITY_ACCESS_KEY repository secret, value
    community.develocity.cloud=<key> — the host prefix is required, and
    omitting it is the most common onboarding failure.
  4. The existing CI test job picks it up with no workflow restructuring.

Until question (1) is answered, nothing in this repo should change.

Ngôn ngữ chính
Python
Star
855
Fork
355
Merge trung bình
3 ngày 3 giờ
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của meshtastic/python

Tất cả issue của meshtastic/python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.