[Teams Chatbot]: next-mypy install 404s should point to CFS auth or --pypi workaround

Đang mở Phù hợp với người mới
#49,886 1 bình luận 1 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ó
1/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/100
Loại issue
Tài liệu
Độ 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
documentation, tooling

Hướng nghiên cứu

Đọc doc/tool_usage_guide.md và theo dõi cách hướng dẫn khắc phục sự cố trong đó đề cập đến lỗi cài đặt azpysdk next-mypy hoặc azpysdk mypy --next từ pkgs.dev.azure.com. Kiểm tra xem xác thực CFS được tài liệu hóa và cách khắc phục bằng --pypi có khớp với hành vi mong đợi hay không. Sau đó, xác minh rằng lỗi 404 hoặc 401 hướng người dùng đến các bước này trước khi đề xuất họ tạo issue.

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

Mô tả

needs-triage
Description

A user asked what to do when azpysdk next-mypy --isolate . failed before mypy ran because ast-serialize could not be downloaded from pkgs.dev.azure.com. The bot incorrectly treated it as a generic tooling/feed outage and told the user to fall back to regular mypy or open an issue instead of giving the documented CFS authentication or PyPI-bypass workaround.

Conversation

https://teams.microsoft.com/l/message/19%3Ab97d98e6d22c41e0970a1150b484d935%40thread.skype/1793916295031?groupId=3e17dcb0-4257-4a30-b843-77f47f1d4121&tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47&createdTime=1793916295031&parentMessageId=1793916295031

Root cause

The KB had CFS authentication and --pypi guidance in doc/tool_usage_guide.md, but it did not make next-mypy/--isolate install 404s from pkgs.dev.azure.com discoverable as a feed/authentication troubleshooting case, so the bot missed the supported remediation.

Fixed document
  • KB document: azure_sdk_for_python_docs/tool_usage_guide.md
  • Upstream: Azure/azure-sdk-for-python, main:/doc/tool_usage_guide.md
  • Source: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/tool_usage_guide.md
  • Validated change: Added troubleshooting guidance that a 404/401 from pkgs.dev.azure.com while azpysdk installs third-party packages is usually a CFS upstream pull-through auth/feed problem, not a package-code problem, and added an explicit azpysdk --pypi next-mypy . / azpysdk --pypi mypy . --next example.
Validation

Result: Passed — the candidate answer treated the failure as an index/feed problem before mypy ran, recommended bypassing CFS with --pypi for next-mypy, and no longer told the user to open an issue as the first action.
Trace ID: 248a78992d5f31d260aa43adc42ba7c1

Expected behavior

When a user reports that azpysdk next-mypy or azpysdk mypy --next fails during dependency installation with a 404 or 401 from pkgs.dev.azure.com, the bot should recognize it as a CFS upstream pull-through/index problem rather than a mypy typing failure, and it should recommend the supported remediation: authenticate for upstream pull-through or bypass CFS with azpysdk --pypi .... It should avoid sending the user to file a new issue before those documented troubleshooting steps are tried.

Ngôn ngữ chính
Python
Star
5.6k
Fork
3.4k
Merge trung bình
2 ngày 16 giờ
Pull request đã merge (30 ngày)
164

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.

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 Azure/azure-sdk-for-python

Tất cả issue của Azure/azure-sdk-for-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.