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

Đã đóng
#60 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

  • #66 của @santiagxf — đã đóng, không merge
  • #67 của @santiagxf — đã đóng, không merge

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
18
Fork
9
Merge trung bình
1 ngày 16 giờ
Pull request đã merge (30 ngày)
23

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Azure/aigateway

Tất cả issue của Azure/aigateway

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.