Scheduled test pipelines fail at the Analyze_Test stage due to date formatting
Maintainers usually reply within 1 day
A pull request for this has already been merged.
- #49642 by @l0lawrence — merged
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Start with the two conditions named in the issue: eng/pipelines/templates/stages/archetype-sdk-tests.yml around line 178 and eng/pipelines/templates/stages/python-analyze-weekly-standalone.yml around line 22. Check Azure Pipelines expression support for date formatting, then queue a scheduled test pipeline to verify the Analyze_Test stage completes. Done means scheduled Python service and storage test runs no longer fail on the date format expression.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Python
- Stars
- 5.6k
- Forks
- 3.4k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 189
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/azure-sdk-for-python
-
needs-triage
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Azure/azure-sdk-for-python#50155 · 1 reaction ·
Maintainers usually reply within 1 day
-
[Teams Chatbot]: next-mypy install 404s should point to CFS auth or --pypi workaroundPossibly taken @jianingwang123 claimed this 16 days ago. Openneeds-triage
Difficulty 1/5 1-3 hours Newbie friendliness 72/100
Azure/azure-sdk-for-python#49886 · 1 comment · 2 reactions · 2 assignees ·
Maintainers usually reply within 1 day
-
[AI Projects] AIProjectInstrumentor: non-streamed responses.create raises AttributeError ('NonRecordingSpan' object has no attribute 'attributes') when the span is not sampledPossibly taken @14H034160212 claimed this 19 days ago. OpenAI Projects Client customer-reported question
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Azure/azure-sdk-for-python#49854 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
azure-eventhub migration guide: legacy checkpoint sample writes "None" metadata for partitions that were never checkpointedPossibly taken @hidingmyname claimed this 27 days ago. OpenClient customer-reported Event Hubs needs-team-attention question Service Attention
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Azure/azure-sdk-for-python#49723 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
[Teams Chatbot]: Clarify Python dev-feed publication from a branch versus PyPI releasePossibly taken @jianingwang123 claimed this 42 days ago. Opencustomer-reported question
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Azure/azure-sdk-for-python#49548 · 1 comment · 2 reactions · 2 assignees ·
Maintainers usually reply within 1 day
All issues in Azure/azure-sdk-for-python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
vllm-project/vllm#70030 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
TigreGotico/tugaphone#408 ·
Maintainers usually reply within 1 day
-
t: bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
bug (unverified)
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
scikit-hep/awkward#4581 · 1 comment ·
Maintainers usually reply within 1 day