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

Chiusa
#60 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

  • #66 di @santiagxf — chiusa senza merge
  • #67 di @santiagxf — chiusa senza merge

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
18
Fork
9
Merge medio
1g 16h
PR unite (30g)
23

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Azure/aigateway

Tutte le issue di Azure/aigateway

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.