feat(ecosystem): adopt hub-core dependency and CI pin gate (CORE-WP-0009)
Some checks failed
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / pytest-smoke (push) Failing after 2s
Build and Publish Container Image / build-and-push (push) Failing after 1m51s

Import slugify_or_default from hub-core, add contract tests, vendor hub-core in
Docker/Forgejo CI, document metadata isolation and pagination deferral, and
align INTENT/SCOPE with three-repo stack.
This commit is contained in:
tegwick 2026-07-11 01:26:53 +02:00
parent 564830c4aa
commit 0709262ffd
21 changed files with 1082 additions and 55 deletions

View file

@ -1,4 +1,7 @@
.PHONY: install test lint run openapi migrate-validate deployed-smoke stabilization-check operator-cli staging-profile-check container-build playwright-install visual-check
.PHONY: install test lint run openapi migrate-validate deployed-smoke stabilization-check operator-cli staging-profile-check container-build playwright-install visual-check ecosystem-regression hub-core-pin
ECOSYSTEM_REGRESSION ?= /home/worsch/the-custodian/scripts/hub-ecosystem-regression.sh
HUB_CORE_ROOT ?= /home/worsch/hub-core
UV ?= /home/worsch/.local/bin/uv
PYTHONPATH ?= src
@ -10,7 +13,13 @@ install:
$(UV) sync --extra dev
test:
PYTHONPATH=$(PYTHONPATH) $(UV) run --extra dev pytest
PYTHONPATH=$(PYTHONPATH) $(UV) run python -m pytest
hub-core-pin:
$(UV) run python -c "import hub_core; print(hub_core.__version__)"
ecosystem-regression:
bash $(ECOSYSTEM_REGRESSION)
lint:
PYTHONPATH=$(PYTHONPATH) $(UV) run --extra dev ruff check .
@ -38,7 +47,13 @@ staging-profile-check:
PYTHONPATH=$(PYTHONPATH) $(UV) run --extra dev python scripts/check_staging_profile.py
container-build:
docker build -t $(IMAGE_REPOSITORY):$(IMAGE_TAG) .
rm -rf .docker-hub-core
mkdir -p .docker-hub-core
cp $(HUB_CORE_ROOT)/pyproject.toml .docker-hub-core/
cp -r $(HUB_CORE_ROOT)/hub_core .docker-hub-core/
docker build --build-context hub_core_src=.docker-hub-core \
--build-arg DEPS_LOCK_ID=2 \
-t $(IMAGE_REPOSITORY):$(IMAGE_TAG) .
playwright-install:
$(UV) run --extra dev playwright install chromium