microsoft / microsoft/azure-devops-python-api
Getting The request specifies YAML override content but that is allowed only for dry run builds error
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 684
- フォーク
- 218
- 平均マージ
- 8日 10時間
- マージ済み PR(30日)
- 1
説明
while trying to override the azure devops azure-pipelines.yml file using python script through azure devops sdk getting below error:
Error: azure.devops.exceptions.AzureDevOpsServiceError: The request specifies YAML override content but that is allowed only for dry run builds.
could you please have a look into this and provide the solution.
Note: using azure-devops-6.0.0b4 version.
Execution logs:
Traceback (most recent call last):
File "test_demo.py", line 120, in
response = client_p.run_pipeline(project=project, run_parameters=res, pipeline_id=x)
File "C:\Program Files\lib\site-packages\azure\devops\v6_0\pipelines\pipelines_client.py", line 241, in run_pipeline
content=content)
File "C:\Program Files\lib\site-packages\azure\devops\client.py", line 106, in _send
response = self._send_request(request=request, headers=headers, content=content, media_type=media_type)
File "C:\Program Files\lib\site-packages\azure\devops\client.py", line 69, in _send_request
self._handle_error(request, response)
File "C:\Program Files\lib\site-packages\azure\devops\client.py", line 272, in _handle_error
raise AzureDevOpsServiceError(wrapped_exception)
azure.devops.exceptions.AzureDevOpsServiceError: The request specifies YAML override content but that is allowed only for dry run builds.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
test_demo.py の run_pipeline 呼び出しと、pipelines_client.py の 241 行目にあるリクエスト構築から始め、報告されている azure-devops-6.0.0b4 の動作をコンテキストとして使用します。リクエストを再現し、その YAML オーバーライド内容がサービスの dry-run 制限とどのように関係するかを判断します。対応しているリクエスト形式を文書化するか、再現可能な SDK の不具合を確認できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- azure, python
- 領域
- api, devops
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100