Feature request: support an explicit base and target commit for incremental publish
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Funcionalidade
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- azure, typescript
Direção de pesquisa
Start with the referenced src/services/git-diff-service.ts implementation and the incremental publish guide to trace how --commit-id selects artifact changes and deletions. Then follow the apiops publish entry point and its dry-run output. Done means an explicit base and target select the net changes and deletions for that range, with the requested validation and dry-run details.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Problem or use case
A deployment pipeline needs to promote all intended changes since the last successful deployment to a particular destination, not necessarily only the changes made by one commit.
In the reviewed implementation, --commit-id C selects the difference between C~1 and C. This is appropriate for publishing one commit when its parent is fully deployed, but does not cover releases that intentionally skip intermediate commits or batch several commits.
Version reviewed: @azure-tools/apiops-cli 1.0.4. This is a feature request based on documentation and source review. The following is a synthetic scenario, not a runtime reproduction.
Example scenario
Consider a linear history A -> B -> C:
- A is the last successfully deployed commit.
- B updates managed API X and removes the artifact for managed Product Y.
- C updates managed API Z but does not change X or Y.
- The pipeline intentionally skips deploying B and next deploys C.
With C checked out, incremental publish using --commit-id <C_SHA> --delete-unmatched considers B-to-C, not A-to-C. The intended change to X and deletion of Y are outside the selected difference.
Full publish without deletion does not address the missing deletion. Full publish with deletion is not an acceptable substitute when the destination contains resources outside the repository's management scope.
Proposed solution
Allow the caller to provide both an explicit comparison base and target commit, with the pipeline retaining the successful deployment SHA separately for each destination.
For the example above, publication should use the net A-to-C artifact changes and the actual files from C. Commit-scoped deletion should be computed from that same range, not from a comparison of the entire destination against repository contents.
Please document and validate:
- The relationship between the target commit and checked-out artifact/override files.
- The requirement that both commits and the required history are available.
- The handling of invalid or unavailable commits, without silently reporting a successful no-op.
- Whether the base must be an ancestor of the target, and how merge histories are treated.
The existing single-commit mode could remain unchanged for compatibility. No automatic discovery of deployment history is required; the pipeline can provide the base.
Desired outcome
Using A as the base and C as the target selects the intended update to X, deletion of Y, and update to Z. Unrelated destination resources remain untouched. Dry-run should display the selected base, target, updates, and deletions.
Affected command
apiops publish
References and related issues
- Git comparison implementation, v1.0.4
- Incremental publish guide, v1.0.4
- #333: documentation wording for
--commit-iddescribes the distinction between changes in and since a commit. This request is for explicit range functionality, not only that documentation correction. - #34: original single-commit feature
If range publication is already supported in a newer release, please point to the relevant command and its deletion semantics.
- Linguagem predominante
- TypeScript
- Estrelas
- 44
- Forks
- 14
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de Azure/apiops-cli
-
type:bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 71/100
Azure/apiops-cli#350 ·
-
stale
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 84/100
Azure/apiops-cli#333 · 1 comentário ·
-
extract fails when a policy uses set-backend-service backend-id="{{namedValue}}"Talvez já em andamento @dannyward630 assumiu há 36 dias. Abertastale type:bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Azure/apiops-cli#331 · 1 comentário ·
-
Docs example says products are auto-included transitively, but they aren't extracted with `products: []`Talvez já em andamento @cdayne assumiu há 27 dias. Abertastale type:question
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Azure/apiops-cli#277 · 1 comentário ·
-
Extractor mistakes set-body json response as transitive dependency which causes pipeline failureAbertatype:bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 56/100
Azure/apiops-cli#349 ·
Todas as issues de Azure/apiops-cli
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
nicobailon/pi-subagents#3425 ·
Mantenedores costumam responder em até 1 dia
-
[PORT] A2A: map audio file parts to audio content and ignore MIME parameters (TS→Py)Talvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertaarea-a2a bug port python
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
strands-agents/harness-sdk#6697 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
api technical-debt
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
opencollective/opencollective#9235 ·
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
openwatersio/slackwater#603 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia