Skip to content

feat(dv2): X5 Retail Hero loader (loader + mappers + schemas + test)#70

Merged
brownjuly2003-code merged 1 commit into
mainfrom
feat/x5-loader
Jun 13, 2026
Merged

feat(dv2): X5 Retail Hero loader (loader + mappers + schemas + test)#70
brownjuly2003-code merged 1 commit into
mainfrom
feat/x5-loader

Conversation

@brownjuly2003-code

Copy link
Copy Markdown
Owner

What

First of a thematic series splitting the long-lived feat/dv2-x5-real-data branch (X5 Retail Hero loader) into reviewable PRs onto main. This PR carries the Python loader as a self-contained unit:

  • warehouse/agentflow/dv2/loaders/x5_retail_hero/loader.py — Click entrypoint
  • …/mappers.py — record → Data-Vault hub/sat/link mappers
  • …/schemas.py — pydantic input/row schemas
  • tests/unit/test_x5_retail_hero_loader.py — unit test

Why split this way

The X5 branch had diverged (16 feature commits, behind main). All 36 of its files are untouched on main since the merge-base, so each theme overlays without conflict. This series replaces a single 208-file mega-diff with reviewable per-theme PRs (loader → dbt models → infra/load-test → docs).

Verification (no-Docker, Windows)

  • pytest tests/unit/test_x5_retail_hero_loader.py3 passed
  • ruff check + ruff format --check → clean (mappers.py reformatted to current ruff)
  • Out of mypy scope (mypy packages = ["src"]); no src/ imports

🤖 Generated with Claude Code

…test

Bring the X5 Retail Hero loader from feat/dv2-x5-real-data onto main as a
self-contained, reviewable unit: the Click loader entrypoint, the
record→Data-Vault mappers, the pydantic schemas, and the unit test.

These files are X5-only (untouched on main since the merge-base), so the
overlay is conflict-free. mappers.py reformatted to current ruff format.

Verified no-Docker: pytest 3 passed; ruff check + format clean. Out of mypy
scope (mypy packages=["src"]).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

DORA Metrics

  • Window: last 30 days
  • Branch: main
  • Deployment frequency: 217 total / 50.63 per week
  • Lead time for changes: avg 0.19h / median 0.0h
  • Change failure rate: 70.51% (153/217)
  • MTTR: 0.35h across 13 incident(s)

@brownjuly2003-code brownjuly2003-code merged commit 3da3a26 into main Jun 13, 2026
19 checks passed
@brownjuly2003-code brownjuly2003-code deleted the feat/x5-loader branch June 13, 2026 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants