Scheduled test pipelines fail at the Analyze_Test stage due to date formatting
Los mantenedores suelen responder en 1 día
Ya se ha fusionado un pull request relacionado.
- #49642 de @l0lawrence — fusionado
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 78/100
Línea de trabajo
Empieza por las dos condiciones mencionadas en el issue: eng/pipelines/templates/stages/archetype-sdk-tests.yml alrededor de la línea 178 y eng/pipelines/templates/stages/python-analyze-weekly-standalone.yml alrededor de la línea 22. Comprueba la compatibilidad de las expresiones de Azure Pipelines con el formato de fechas y, después, pon en cola una canalización de pruebas programada para verificar que se completa la fase Analyze_Test. El objetivo se cumple cuando las ejecuciones programadas de las pruebas de servicios y almacenamiento de Python ya no fallan por la expresión de formato de fecha.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
Since around 2026-10-10, scheduled python - <service> - tests runs fail before any tests run. Azure DevOps reports: Stage Analyze_Test abandoned: The format specifiers 'ddd' are not valid for objects of type 'DateTime'. Example: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6970519&view=results
This affects more than one service. python - healthdataaiservices - tests (def 7098) and -tests-weekly (def 7099) fail every scheduled run, and the storage tests pipeline fails the same way.
To Reproduce
Steps to reproduce the behavior:
- Queue any
python - <service> - testspipeline withBuild.Reason = Schedule(or wait for the nightly).Analyze_Testis abandoned with the error above. Example:python - healthdataaiservices - tests(def 7098), https://dev.azure.com/azure-sdk/internal/_build?definitionId=7098
Expected behavior
Build succeeds.
Screenshots
N/A
Additional context
Introduced in #48391 ("Update test templates to check weekly runs based on run start time", merged 2026-08-12):
eng/pipelines/templates/stages/archetype-sdk-tests.yml:178Condition: and(succeeded(), in(format('{0:ddd}', pipeline.startTime), 'Sat', 'Sun'))eng/pipelines/templates/stages/python-analyze-weekly-standalone.yml:22Condition: and(succeeded(), eq(variables['Build.Reason'], 'Schedule'), in(format('{0:ddd}', pipeline.startTime), 'Sat', 'Sun'))
The Azure Pipelines format() expression uses .NET custom date and time format specifiers, but documents only a subset of them: yyyy, yy, MM, M, dd, d, HH, H, m, mm, ss, s, f, ff, ffff, K. Day-of-week (ddd / dddd) isn't in that list, even though .NET itself supports it, and ADO's own error confirms the runtime rejects it. So the condition can't be evaluated and the stage is abandoned. Because the stage sits inside ${{ if eq(variables['Build.Reason'], 'Schedule') }}, only scheduled runs are affected. Manual and PR runs still pass, which may be why this wasn't caught.
- Lenguaje dominante
- Python
- Estrellas
- 5.6k
- Forks
- 3.4k
- Merge medio
- 2 d 13 h
- PR fusionados (30 d)
- 213
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Azure/azure-sdk-for-python
-
[Teams Chatbot]: Clarify Python dev-feed publication from a branch versus PyPI releasePosiblemente ocupada @jianingwang123 la tomó hace 10 días. Abiertocustomer-reported question
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Azure/azure-sdk-for-python#49548 · 1 comentario · 2 reacciones · 2 asignados ·
Los mantenedores suelen responder en 1 día
-
Client customer-reported Hosted Agents needs-team-attention question Service Attention
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Azure/azure-sdk-for-python#49477 · 6 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
azure-ai-evaluation: a content-harm score of 0 (no harm) is parsed as NaN in _parse_content_harm_response (numeric branch uses 0 < x instead of 0 <= x)Posiblemente ocupada @pujitha24 la tomó hace 26 días. AbiertoEvaluation Service Attention
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Azure/azure-sdk-for-python#49190 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Update CODEOWNERSAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
Azure/azure-sdk-for-python#49183 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
azure-ai-evaluation: PromptyEvaluatorBase falls back to the first digit anywhere in the judge's reply, and the threshold turns a stray digit into a wrong pass/fail (15 evaluators)Posiblemente ocupada @wasim-builds la tomó hace 20 días. AbiertoEvaluation Service Attention
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Azure/azure-sdk-for-python#49153 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
Todos los issues de Azure/azure-sdk-for-python
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
google-agentic-commerce/AP2#388 ·
-
area:codegen backend:cuda backend:hip bug direction:input
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
CrossGL/crosstl#3061 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
rlaope/oh-my-hermes#2304 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
mochan-tk/agentic-dev-kit-for-codex#64 ·
Los mantenedores suelen responder en 1 día
-
Windows ARM memory-leakAbiertobug docs performance
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
Los mantenedores suelen responder en 3 días