[P2/P3] lote falha-total vira erro; bypass-note em erro; andamentos determinístico - #71
Merged
Merged
Conversation
… determinístico - /v1/procedimentos e /v1/documentos: se nenhum item teve sucesso e houve falha transitória (timeout/indisponível/HTTP/parse), propaga o erro (não-2xx, não cacheável) em vez de 200 ok:true. all-SoapFault (inexistentes) segue 200. - cache: o bypass (no-cache/no-store) registra `note` mesmo em erro, para o middleware aplicar Cache-Control: no-store também na resposta de erro. - andamentos: coleta dos lotes com `buffered` (não buffer_unordered) -> ordem determinística quando ordenar=false (ordem dos lotes + do SEI). 50 testes (lote falha-total -> 502; no-store em erro -> header no-store). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #68, fixes #69, fixes #70.
/v1/procedimentose/v1/documentospropagam erro (não-2xx, não cacheável) quando nenhum item teve sucesso e houve falha transitória (timeout/indisponível/HTTP/parse). all-SoapFault (inexistentes) segue 200 com erros por item.no-cache/no-storeregistranotemesmo em erro → o middleware aplicaCache-Control: no-storetambém na resposta de erro.buffered(nãobuffer_unordered) → ordem determinística comordenar=false.50 testes. Validado: lote all-fail → 502; no-store em erro → header no-store.
🤖 Generated with Claude Code