release-verify-rc: the Nexus staging id shape refuses Maven's maven-NNNN ids

Đang mở
#2,197 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

@Anurag-S1ngh đang làm issue này rồi.

Từ ngày 20/11/2026.

  • #2209 của @Anurag-S1ngh — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/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ệ
python
Lĩnh vực
tooling

Hướng nghiên cứu

Start with tools/release-management/src/release_management/verify_rc/nexus.py: inspect ID_SHAPE, its error text, and the --profile output parser. Then review the affected Nexus documentation and eval fixture listed in the issue, and regenerate the plugin mirror from the source. Done when Maven maven-NNNN IDs and the existing orgapache...-NNNN IDs are handled, unsafe IDs still fail closed, and snapshots remains skipped.

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

Mô tả

Summary

verify_rc/nexus.py validates the staging repository id against ^orgapache[a-z0-9]+-[0-9]+$ (ID_SHAPE) before any probe is rendered, and the --profile output parse only keeps rows whose first cell starts with orgapache. Apache Maven's staging repositories do not match that shape: Nexus names them maven-NNNN (the last three votes on [email protected] used maven-2471, maven-2472 and maven-2473), while Commons gets orgapachecommons-1965. The prefix is not always derived from the groupId.

For a Maven RC that sets nexus_staging_repo, Step 6c therefore reports the id as malformed and skips the probe, even when the RM supplies the full, valid URL.

Raised on PR #2150 by @slachiewicz. That PR widened the vote-draft check (tools/release-management/src/release_management/vote_draft/render.py) to accept ^[a-z0-9]+-[0-9]+$, which covers both families and still excludes the literal snapshots; the verify-rc side was kept out of scope there and is tracked here.

Affected places

  • tools/release-management/src/release_management/verify_rc/nexus.py: ID_SHAPE, the error text built from it, and the startswith("orgapache") in the --profile output parse
  • tools/asf-nexus/operations.md: the id-shape wording and the grep -i "orgapache<name>" filter on the profile_repositories listing
  • tools/asf-nexus/staging-verification.md and tools/asf-nexus/tool.md: the id-shape wording
  • plugins/magpie-release-management/skills/verify-rc/nexus-staging.md: the shape sentence
  • plugins/magpie-setup/templates/release-build.md: the nexus_staging_repo row describes the id as orgapache<name>-NNNN
  • tools/skill-evals/evals/release-verify-rc/step-6c-nexus-staging/fixtures/output-spec.md: the shape sentence
  • the plugin mirror under plugins/magpie-security-tools/tools/release-management/ needs regenerating from tools/release-management/ after the source changes

Suggestion

Accept ^[a-z0-9]+-[0-9]+$ for the id fullmatch. It covers maven-2471 and orgapachecommons-1965, and still refuses the literal snapshots, which stays a skip by design. For the --profile listing, match the row on the repository id itself instead of the orgapache prefix, or keep the prefix filter but treat a miss as STATE-UNVERIFIED (a warn) rather than a gate.

Whatever is chosen, the id is spliced into curl URLs, so the check must keep failing closed on anything carrying /, .. or uppercase letters.

Ngôn ngữ chính
Python
Star
152
Fork
133
Merge trung bình
12 giờ 39 phút
Pull request đã merge (30 ngày)
384

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 apache/magpie

Tất cả issue của apache/magpie

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.