Skip to content

fix: make CE entity generation deterministic when seeded#117

Merged
ake2l merged 3 commits intodevelopmentfrom
fix/seed-extend-datasets
Oct 5, 2025
Merged

fix: make CE entity generation deterministic when seeded#117
ake2l merged 3 commits intodevelopmentfrom
fix/seed-extend-datasets

Conversation

@ake2l
Copy link
Member

@ake2l ake2l commented Oct 5, 2025

  • rework RNG plumbing across person, insurance, finance, public-sector generators so seeded runs replay deterministically while unseeded runs stay random
  • expand CE datasets (countries, ecommerce currencies, product vocab, shipping/payment tables) for ES/FR/GB coverage and align integration descriptors with new data
  • rebuild CE integration suite around local descriptors (no EE references) and add reproducibility assertions with rngSeed fixtures
  • add regression tests ensuring unseeded generators still emit varied data and “other” gender nobility titles remain strings
  • clean up Faker RNG wiring, bank currency sampling, and adapter services to satisfy mypy/ruff and keep tasks deterministic
  • document WHY blocks in descriptors/scripts for future maintainers and seed ledger helper for deterministic finance scripts
  • verified with uv run pytest -q tests_ce/integration_tests/test_entity, uv run pytest tests_ce/unit_tests/test_generator/test_person_generator_randomness.py, and mypy datamimic_ce

  - rework RNG plumbing across person, insurance, finance, public-sector generators so seeded runs replay deterministically while unseeded runs stay random
  - expand CE datasets (countries, ecommerce currencies, product vocab, shipping/payment tables) for ES/FR/GB coverage and align integration descriptors with new data
  - rebuild CE integration suite around local descriptors (no EE references) and add reproducibility assertions with rngSeed fixtures
  - add regression tests ensuring unseeded generators still emit varied data and “other” gender nobility titles remain strings
  - clean up Faker RNG wiring, bank currency sampling, and adapter services to satisfy mypy/ruff and keep tasks deterministic
  - document WHY blocks in descriptors/scripts for future maintainers and seed ledger helper for deterministic finance scripts
  - verified with `uv run pytest -q tests_ce/integration_tests/test_entity`, `uv run pytest tests_ce/unit_tests/test_generator/test_person_generator_randomness.py`, and `mypy datamimic_ce`
@ake2l ake2l self-assigned this Oct 5, 2025
@ake2l ake2l added bug Something isn't working enhancement New feature or request labels Oct 5, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 5, 2025

@ake2l ake2l merged commit 0e19ee4 into development Oct 5, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant