Skip to content

fix: make statistics backfill runnable in API image - #383

Merged
suguanYang merged 1 commit into
mainfrom
fix/wangbinqi/statistics-backfill-runtime-path
Sep 3, 2026
Merged

fix: make statistics backfill runnable in API image#383
suguanYang merged 1 commit into
mainfrom
fix/wangbinqi/statistics-backfill-runtime-path

Conversation

@suguanYang

Copy link
Copy Markdown
Contributor

Summary

  • Fix runtime path resolution for /app/scripts/backfill_map_unit_statistics.py.
  • Avoid indexing beyond the root path when the API image does not contain a repository checkout.
  • Keep source-checkout and runtime-image layouts supported.
  • Add contract coverage for both layouts.

Validation

  • uv run pytest -q apps/api/tests/contract/test_backfill_map_unit_indexes_contract.py
  • uv run ruff check apps/api/scripts/backfill_map_unit_statistics.py apps/api/tests/contract/test_backfill_map_unit_indexes_contract.py

Related to #382: the original serving-index rollout PR is already merged; this follow-up unblocks the statistics backfill task.

@suguanYang
suguanYang merged commit 671057d into main Sep 3, 2026
6 checks passed
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.

1 participant