migrate-apim: configurationComplete is written by the planner and read by nothing, so preflight misses unappliable objects

クローズ
#60 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

まだ誰も着手していません。

  • #66 @santiagxf による — マージされずにクローズ
  • #67 @santiagxf による — マージされずにクローズ

評価

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

調査の方向性

Start by reading the planner locations in plan.py (lines 1283, 1341, and 1351) and the preflight findings in apply.py (lines 153-265). Trace how findings are represented and whether they block a run, then add coverage for objects marked configurationComplete: false. Done means preflight reports each such object's incompleteReason and fullConfigurationAt before any writes.

索引モデルが issue の本文から書いたものです。

説明

bug

Summary

plan.py sets configurationComplete: false with an incompleteReason in three places (1283, 1341, 1351). Neither field appears anywhere in apply.py.

Preflight emits only noTarget, badTarget, secretNotRetrievable, secretMissing, secretRetrievalUntried, and prerequisites (apply.py:153-265).

So a condition the planner has already detected, explained, and written down surfaces only as a step failure mid-phase, carrying a generic builder message instead of the specific incompleteReason the plan holds.

Impact

Preflight's stated job is "everything checkable before the first write", and its rationale is that finding a problem halfway leaves a half-built gateway. An object the plan itself marked unappliable is checkable by definition.

This is also the containment that would have limited #58: with it, a fragment-scoped token limit reports at preflight with the right explanation, rather than aborting a phase with a remedy that cannot fix it.

Suggested fix

Add a preflight finding enumerating every object with configurationComplete: false, quoting incompleteReason and fullConfigurationAt.

Blocking seems right by analogy with plannerGaps, since the run cannot produce the object either way, but non-blocking with a clear message would still be a large improvement over discovering it mid-phase.


Found while documenting the migration flow. Derived from reading the source; not reproduced against a live APIM instance.

主要言語
Python
スター
18
フォーク
9
平均マージ
1日 16時間
マージ済み PR(30日)
23

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

Azure/aigateway のほかの issue

Azure/aigateway の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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