Question: how should a partially failed incremental publish be recovered when artifacts or overrides need correction?
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Documentazione
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- azure, typescript
- Ambito
- devops, documentation
Direzione di ricerca
Read the incremental publish guide and the referenced first-parent selection and publish target logic in src/services/git-diff-service.ts and src/services/publish-service.ts. Determine whether the CLI supports combining corrected inputs with the original change and deletion set, including unchanged artifacts with corrected overrides. Document a safe recovery sequence or the limitation and manual procedure, with evidence required before advancing the successful deployment SHA.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Question
What is the recommended recovery procedure when an incremental publish partially fails and resolving the cause requires changing an artifact or override configuration in a new commit?
The goal is to complete the original intended updates and deletions together with the correction, without deleting destination resources outside the repository's management scope.
Version under evaluation: @azure-tools/apiops-cli 1.0.4. This question is based on the documented selection semantics and source review. The following is a synthetic scenario, not a reproduced APIM incident.
Example scenario
Consider a linear history A -> B -> C:
| Commit | Intended repository state / changes | Deployment status |
|---|---|---|
| A | Baseline configuration | Fully deployed |
| B | Updates managed Policies P and Q, and deletes the artifact for managed Product R | Publication attempted but only partially applied |
| C | Corrects the invalid content of P; Q and R have no additional Git changes | Not yet deployed |
Assume the partial result of publishing B includes an unsuccessful update of Q and an unsuccessful deletion of R. Correcting P requires C, so an identical-input retry of B is not sufficient.
Based on the documented first-parent selection:
- Publishing
--commit-id <C_SHA> --delete-unmatchedselects B-to-C, which does not include Q's original update or R's deletion. - Checking out B and retrying the original input still uses P's invalid content.
- Checking out C while supplying B as
--commit-idappears to mix one commit's change selection with another commit's file contents. We do not want to assume this is a supported recovery method. - Full publish without deletion does not complete R's deletion.
- Full publish with deletion is unsuitable because the destination also contains resources outside the repository's management scope.
Requested guidance
- Is there a supported sequence for completing B's outstanding changes using corrected artifacts and overrides from C? Please identify the exact checkout, comparison, and input requirements.
- How should the sequence preserve the original deletion set and safely handle changes already applied during the first attempt?
- What evidence should the pipeline use before marking the recovered release successful and advancing its successful deployment SHA?
- If this cannot be expressed safely with the current CLI, could the limitation and a recommended manual recovery procedure be documented?
If the correction is in an override file rather than an artifact, please also explain how to ensure the corrected override is applied when the corresponding artifact is unchanged.
Context
Only part of the destination APIM configuration is managed by this repository. Recovery therefore cannot rely on unrestricted full destination reconciliation.
The question is not about resuming at the failed resource, automatic rollback, or rerunning the same SHA after fixing only an external condition. It specifically concerns a correction that changes the publish inputs and introduces a new commit.
A documented, repeatable procedure would help pipelines avoid treating a later successful but narrower incremental run as completion of an earlier partially failed release.
References and related issues
- Incremental publish guide, v1.0.4
- First-parent change selection, v1.0.4
- Publish target selection, v1.0.4
- #333: clarification of single-commit selection
- #134: scenario-based documentation is related at a broader documentation level; this question asks for a specific failure-recovery procedure.
If a newer release already provides a supported recovery workflow, guidance for that version would also be useful.
- Lingua principale
- TypeScript
- Stelle
- 44
- Fork
- 14
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Azure/apiops-cli
-
type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 71/100
Azure/apiops-cli#350 ·
-
stale
Difficoltà 1/5 1-3 ore Idoneità per principianti 84/100
Azure/apiops-cli#333 · 1 commento ·
-
extract fails when a policy uses set-backend-service backend-id="{{namedValue}}"Forse già presa @dannyward630 l’ha presa 37 giorni fa. Apertastale type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Azure/apiops-cli#331 · 1 commento ·
-
Docs example says products are auto-included transitively, but they aren't extracted with `products: []`Forse già presa @cdayne l’ha presa 27 giorni fa. Apertastale type:question
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Azure/apiops-cli#277 · 1 commento ·
-
Extractor mistakes set-body json response as transitive dependency which causes pipeline failureApertatype:bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 56/100
Azure/apiops-cli#349 ·
Tutte le issue di Azure/apiops-cli
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
tashfeenahmed/freellmapi#2217 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
remotion-dev/skills#37 ·
-
gui: a narrow window's gateway key row with a line under it wraps its faded badges onto blank linesAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
Slider: Escape during a thumb drag keeps and commits the dragged value, unlike ui-sdk's other dragsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
vercel-labs/ui#1758 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
nicobailon/pi-subagents#3425 ·
I maintainer di solito rispondono entro 1 giorno