Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Scheduled test pipelines fail at the Analyze_Test stage due to date formatting

クローズ 初心者向け
#49,614 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

関連するプルリクエストがすでにマージされています。

  • #49642 @l0lawrence による — マージ済み

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
ci-cd, testing

調査の方向性

まず、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 の本文から書いたものです。

説明

EngSys

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:

  1. Queue any python - <service> - tests pipeline with Build.Reason = Schedule (or wait for the nightly). Analyze_Test is 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:178
    Condition: and(succeeded(), in(format('{0:ddd}', pipeline.startTime), 'Sat', 'Sun'))
    
  • eng/pipelines/templates/stages/python-analyze-weekly-standalone.yml:22
    Condition: 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

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Azure/azure-sdk-for-python のほかの issue

Azure/azure-sdk-for-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。