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

Abierto Apto para principiantes
#49,886 1 comentario 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
1/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
72/100
Tipo de issue
Documentación
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python

Línea de trabajo

Lee doc/tool_usage_guide.md y sigue cómo sus indicaciones para solucionar problemas cubren los fallos de instalación de azpysdk next-mypy o azpysdk mypy --next desde pkgs.dev.azure.com. Comprueba que la autenticación CFS documentada y la alternativa con --pypi coincidan con el comportamiento esperado. Después, valida que un 404 o un 401 remita a esos pasos antes de sugerir que se presente un issue.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
5.6k
Forks
3.4k
Merge medio
2 d 16 h
PR fusionados (30 d)
164

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Azure/azure-sdk-for-python

Todos los issues de Azure/azure-sdk-for-python

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.