Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Restore automatic PyPI Docker checks after the 1.2.0 release

Đang mở
#3,007 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 2 ngày

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, github-actions, python
Lĩnh vực
ci-cd, documentation, testing

Hướng nghiên cứu

Start with docker_build.yml and tests/unit/infra/test_docker_ci.py; review the workflow conditions and event cases described in the issue. After 1.2.0 is published, validate the wheel and run the specified PyPI checks before restoring automatic runs. Update the Docker CI and release documentation, and confirm a main push runs the checks while PRs, merge-queue runs, and release-branch pushes remain skipped.

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

Mô tả

Context

Follow-up to #2969 and Hannah's review comment.

The PyPI Docker lane is being temporarily restricted to manual workflow dispatches. The latest published release, 1.1.0, predates the compatibility mechanism introduced in #2829. Its wheel includes a frontend but lacks pyrit/_compatibility.py, pyrit/_compatibility.json, and pyrit/backend/frontend/compatibility.json, so the production image predictably fails after building the devcontainer and installing the package.

The pause avoids repeating that expensive failure on every main push. It must not become a permanent loss of automatic published-release coverage.

After publishing 1.2.0

  • Verify the actual published 1.2.0 wheel contains the compatibility module, Python stamp, packaged frontend, and matching frontend stamp from one clean source commit. Do not generate replacement stamps during Docker installation.
  • Manually run docker_build.yml with pypiVersion=1.2.0 and confirm the PyPI production image, import, GUI, and Jupyter checks pass with the production compatibility guard enabled.
  • Run the workflow without an override and confirm it selects and exercises the latest stable, non-yanked published release successfully.
  • Restore github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' on build-and-test-pypi. Restore the same eligibility condition inside always() on all four pypi-*-check jobs.
  • Update PYPI_CONDITION and the event cases in tests/unit/infra/test_docker_ci.py: main pushes and manual dispatches enable the PyPI lane; PRs, merge-queue runs, and release-branch pushes remain intentionally skipped.
  • Update the Docker CI and release documentation to remove the temporary manual-only guidance, and verify a main push runs the restored checks.

Keep automatic latest-release selection, independent local/PyPI jobs, named fail-closed gates, source isolation, compatibility/auth enforcement, and no-publish behavior unchanged. If the published artifacts still fail validation, keep this issue open and fix the release prerequisite rather than bypassing the guard or selecting a different release silently.

This is a post-release follow-up. Merging #2969 should not close it.

Ngôn ngữ chính
Python
Star
4.6k
Fork
944
Merge trung bình
2 ngày 18 giờ
Pull request đã merge (30 ngày)
369

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

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 microsoft/PyRIT

Tất cả issue của microsoft/PyRIT

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.