Scheduled test pipelines fail at the Analyze_Test stage due to date formatting
メンテナーはふだん 1 日以内に返信
関連するプルリクエストがすでにマージされています。
- #49642 @l0lawrence による — マージ済み
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
調査の方向性
まず、issueで挙げられている2つの条件を確認します。eng/pipelines/templates/stages/archetype-sdk-tests.yml の178行目付近と、eng/pipelines/templates/stages/python-analyze-weekly-standalone.yml の22行目付近です。日付書式設定に関する Azure Pipelines の式のサポートを確認し、次にスケジュールされたテストパイプラインをキューに入れて、Analyze_Test ステージが完了することを検証します。スケジュールされた Python のサービスおよびストレージのテスト実行が、日付書式設定の式が原因で失敗しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Python
- スター
- 5.6k
- フォーク
- 3.4k
- 平均マージ
- 2日 13時間
- マージ済み PR(30日)
- 213
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Azure/azure-sdk-for-python のほかの issue
-
[Teams Chatbot]: Clarify Python dev-feed publication from a branch versus PyPI release対応中かも @jianingwang123 が 8 日前に担当しました。 オープンcustomer-reported question
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Azure/azure-sdk-for-python#49548 · コメント 1 件 · リアクション 2 件 · 担当者 2 名 ·
メンテナーはふだん 1 日以内に返信
-
Client customer-reported Hosted Agents needs-team-attention question Service Attention
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Azure/azure-sdk-for-python#49477 · コメント 6 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
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)対応中かも @pujitha24 が 24 日前に担当しました。 オープンEvaluation Service Attention
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Azure/azure-sdk-for-python#49190 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Update CODEOWNERSオープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
Azure/azure-sdk-for-python#49183 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
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)対応中かも @wasim-builds が 18 日前に担当しました。 オープンEvaluation Service Attention
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Azure/azure-sdk-for-python#49153 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
Azure/azure-sdk-for-python の issue をすべて見る
似ている issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
fossasia/visdom-dev#69 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
BUG: PROD: v1.3.0-beta Onboarding Profile Picture Misaligns When Name Validation Error Appears対応中かも @RitikaSen27 が今日担当しました。 オープンbug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
AOSSIE-Org/PictoPy#1647 · コメント 2 件 ·
メンテナーはふだん 2 日以内に返信
-
[oblt-aw][autodoc] Update workflow docs for gh-aw v0.92.5 and detector permission scope対応中かも @github-actions が今日担当しました。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信