feat(ecosystem): adopt hub-core dependency and CI pin gate (CORE-WP-0009)
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:
parent
564830c4aa
commit
0709262ffd
21 changed files with 1082 additions and 55 deletions
21
Makefile
21
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue