Key the ACS raw-prior resume checks by the whole batch layout

Aperta Adatta ai principianti
#1,766 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
79/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
testing

Direzione di ricerca

Trova test_production_draws_the_fixture_targets_in_the_fixture_order di #1723 e confronta il modo in cui runtime_batches associa le chiavi ai risultati con le chiavi di mixed_reach e prefix_reach. Aggiorna queste chiavi affinché usino la tupla completa del batch di esecuzione e seleziona first_home_mortgage_origination_year in base al nome nel nuovo tentativo misto dell’unità fiscale. Esegui il test e conferma che entrambi i layout mantengono risultati di vitalità separati e che il nuovo tentativo carica il target nominato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

test_production_draws_the_fixture_targets_in_the_fixture_order, from #1723, runs every layout of a batch that holds two or more fixture targets and keys each run by entity, batch name and target order. Its mixed-bank and pure-prefix liveness results (mixed_reach and prefix_reach) key on entity and batch name alone. If two plans ever give one batch name two different layouts that each hold two or more fixture targets, both layouts run, but one layout's result replaces the other's. The liveness assertions could then pass on one layout while the other layout's retry fed no loaded value that the export changes.

The tax-unit mixed retry also picks the target it loads by position (len(order) - 2), which lands on first_home_mortgage_origination_year in today's layout. A layout that moved another target there, such as unrecaptured_section_1250_gain right before the HSA deduction, would make the retry load that target instead of the year.

Today each batch name that runs has one such layout: declared person batch 5 (the pool plan holds the same one), post-PUF person batch 3 and the tax-unit family. So the test loses no result (inferred from the saved plan inventory, not from a mutant). To close the gap, the test can:

  • key mixed_reach and prefix_reach by the full runtime batch tuple, as runtime_batches does;
  • pick the tax-unit family's loaded target by name (first_home_mortgage_origination_year) instead of by position.

Review round 4 of #1723 raised this at P2.

🤖 Generated with Claude Code

Lingua principale
Python
Stelle
0
Fork
6
Merge medio
1g 17h
PR unite (30g)
190

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PolicyEngine/microcosm

Tutte le issue di PolicyEngine/microcosm

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.