Repository navigation
test: skip providers que bloqueiam o runner (B3 + CEP v3) - #888
Merged
Merged
Conversation
…rvices - CI: step de ESLint no workflow E2E (lint nunca rodava — 43 erros passaram despercebidos) - lint: mapUfToUfCode (42x prettier), weather.js, cpf (console.log redundante), cep-error-handler (disable scoped) - teste NCM: expect.assertions + comportamento real (200 [] pós-984c956) — antes passava sem validar nada - move pages/api/indices/codes.js → services/indices/codes.js (módulo de constantes virava rota 500 em produção) Co-authored-by: Hermes Agent <[email protected]>
Auditoria achou 26 rotas sem doc + ~10 params divergentes (doc PT-BR vs código EN, dos rebases #861-#876). Correções: - params renomeados: fipe (tipoVeiculo→vehicleType...), ibge (siglaUF→uf...), cptec (icaoCode→airport), ibpt (siglaUF→uf), solar (path→query) - paths novos: /ibge/uf/v1/regiao, /fipe/marcas/v1, /feriados/v1, /oms/cid10/v1, /status/v1 (cid10.json + status.json novos) - eleicoes.json: prefixo /api removido dos paths - holydays/statewide: path fantasma {ano}/{uf} removido (UF é query) - ibpt: ?ex=01 removido do path key (query param) - teste novo: docs-parity.test.js (paridade rotas reais ↔ doc) Co-authored-by: Hermes Agent <[email protected]>
O b3-v1.test.js não tinha o padrão health-check+skip dos outros providers — quando a B3 bloqueia o runner (403 por IP de datacenter), 22 testes E2E + CORS falhavam e derrubavam o CI de todos os PRs. Padrão: describe.skipIf(shouldSkipTests) (como ibge-populacao-fix). Co-authored-by: Hermes Agent <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
O runner pegou OpenCEP fora do ar: coordinates vieram null e o teste toEqua... quebrava (1 falha flaky derrubando o CI). Mesmo padrão describe.skipIf(shouldSkipTests) dos outros providers. Co-authored-by: Hermes Agent <[email protected]>
|
This branch was successfully deployed
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.



Problema
Testes E2E falhavam no runner por provider externo, derrubando o CI de todos os PRs:
Fix
Padrão health-check +
describe.skipIf(shouldSkipTests)(como ibge-populacao-fix #883 / corretoras):tests/b3-v1.test.js: health-check B3 + skip de 40 testes (E2E + CORS)tests/cep-v3.test.js: health-check OpenCEP + skipVerificação