Repository navigation
test: compare epidemiology with pinned consumer dependency - #36
BaruqueRodrigues wants to merge 6 commits into
Conversation
esloch
left a comment
There was a problem hiding this comment.
Aqui temos um avanço importante na comparação com a versão utilizada pelo AlertaDengueAnalise. Os testes identificaram uma divergência real no formato do histórico, que foi corrigida, e as 232 métricas comparadas coincidiram.
A ressalva continua sendo o nowcasting bayesiano, que não está coberto por essa comparação. Precisamos manter essa validação como requisito antes da migração do consumidor, junto aos testes reais de concorrência solicitados no PR #34.
2f5ad3e to
c6696b3
Compare
1534d94 to
cdec43b
Compare
esloch
left a comment
There was a problem hiding this comment.
@BaruqueRodrigues, ve should update the documentation to reflect this validation while keeping the full operational comparison as a migration requirement.
I maintain my approval. This PR depends on #35, so let's follow the merge order and rebase onto master.
Compare candidate epidemiological calculations against immutable historical AlertTools function bodies and a pinned principal-consumer dependency, using unique natural keys and explicit numeric tolerances. Preserve the historical snapshots rather than regenerating expected values from the candidate.
Add a real Bayesian reference scenario with the historical fitting budget of four threads. At this stack stage the mandatory INLA runner requires three scenarios, without depending on the consumer test introduced by #37. Keep comparison CSVs, source identities and environment evidence.
Validation already performed locally: 393 focused expectations passed with zero failures/warnings; four optional INLA cases in the general suite were skipped and validated separately by the mandatory native runner (three scenarios, seven expectations, zero skips/failures/warnings). The historical comparison uses the same available engine on both sides with explicit seed/dependency adaptation, not the old national deployment image. Cross-thread posterior interval differences remain documented in the concurrency benchmark; this is not production migration approval.
Stacked on #35.