Add maintained Milestone 5 release gates
This commit is contained in:
parent
9071bcc0bc
commit
8919e2af32
1 changed files with 78 additions and 1 deletions
79
Makefile
79
Makefile
|
|
@ -2,10 +2,11 @@ PYTHON := .venv/bin/python
|
|||
PYRIGHT := pyright
|
||||
UV := uv
|
||||
NPM := npm
|
||||
GITLEAKS := gitleaks
|
||||
PYTHONPYCACHEPREFIX := /tmp/docforge-quality-pycache
|
||||
PYTEST_BASETEMP := /tmp/docforge-quality-pytest
|
||||
|
||||
.PHONY: accessibility adoption-m4 benchmark benchmark-m1 benchmark-m1-smoke benchmark-m2 benchmark-m2-smoke benchmark-m3 benchmark-m3-full benchmark-m3-smoke benchmark-m4 benchmark-m4-full benchmark-m4-smoke benchmark-smoke build command-reference-check compile contract dependencies docs-check format-check gate lint lock test type
|
||||
.PHONY: accessibility adoption-m4 benchmark benchmark-m1 benchmark-m1-smoke benchmark-m2 benchmark-m2-smoke benchmark-m3 benchmark-m3-full benchmark-m3-smoke benchmark-m4 benchmark-m4-full benchmark-m4-smoke benchmark-smoke build command-reference-check compatibility-m5 compile concurrency-m5 contract dependencies docs-check format-check gate lint lock migration-m5 recovery-m5 release-artifacts release-gate release-posttag release-pretag secret-scan task-evidence-m5 task-evidence-m5-smoke test type version-check
|
||||
|
||||
accessibility:
|
||||
$(NPM) run test:accessibility
|
||||
|
|
@ -62,6 +63,72 @@ build:
|
|||
adoption-m4:
|
||||
$(PYTHON) tools/milestone4_adoption.py
|
||||
|
||||
version-check:
|
||||
$(PYTHON) tools/check_release_identity.py --mode smoke --tag-state ignore > /dev/null
|
||||
|
||||
release-artifacts:
|
||||
$(PYTHON) tools/check_release_identity.py --mode full --require-clean \
|
||||
--tag-state ignore --output /tmp/docforge-milestone5-release-identity.json > /dev/null
|
||||
|
||||
secret-scan:
|
||||
$(GITLEAKS) git . --no-banner --redact
|
||||
$(GITLEAKS) dir . --no-banner --redact
|
||||
|
||||
migration-m5:
|
||||
$(PYTHON) tools/milestone5_migration.py \
|
||||
--output /tmp/docforge-milestone5-migration.json > /dev/null
|
||||
|
||||
task-evidence-m5-smoke:
|
||||
$(PYTHON) tools/milestone5_task_evidence.py --mode smoke \
|
||||
--output /tmp/docforge-milestone5-task-evidence-smoke.json > /dev/null
|
||||
|
||||
task-evidence-m5:
|
||||
$(PYTHON) tools/milestone5_task_evidence.py --mode full \
|
||||
--output /tmp/docforge-milestone5-task-evidence.json > /dev/null
|
||||
|
||||
compatibility-m5:
|
||||
PYTHONPYCACHEPREFIX=$(PYTHONPYCACHEPREFIX) $(PYTHON) -m pytest -q \
|
||||
-p no:cacheprovider --basetemp=$(PYTEST_BASETEMP)-compatibility \
|
||||
tests/test_public_contract.py \
|
||||
tests/test_adapter_contract.py \
|
||||
tests/test_adapter_sdk.py \
|
||||
tests/test_policy.py \
|
||||
tests/test_projection_policy.py \
|
||||
tests/test_projection_policy_integration.py \
|
||||
tests/test_projection_contract.py \
|
||||
tests/test_projection_schemas.py \
|
||||
tests/test_projection_worker.py \
|
||||
tests/test_projection_fragments.py \
|
||||
tests/test_retrieval.py \
|
||||
tests/test_graph_projection.py \
|
||||
tests/test_graph_rendering.py \
|
||||
tests/test_graph_publication.py
|
||||
|
||||
concurrency-m5:
|
||||
PYTHONPYCACHEPREFIX=$(PYTHONPYCACHEPREFIX) $(PYTHON) -m pytest -q \
|
||||
-p no:cacheprovider --basetemp=$(PYTEST_BASETEMP)-concurrency \
|
||||
tests/test_core.py::DocForgeCoreTests::test_stale_source_fails_closed_and_failed_rebuild_preserves_index \
|
||||
tests/test_core.py::DocForgeCoreTests::test_query_rechecks_source_identity_before_returning \
|
||||
tests/test_core.py::DocForgeCoreTests::test_source_set_change_during_load_fails_closed \
|
||||
tests/test_adapter_contract.py::AdapterContractTests::test_fast_incremental_reads_reverify_a_changed_index_file \
|
||||
tests/test_retrieval.py::TaskRetrievalTests::test_final_generation_change_rejects_the_whole_capsule \
|
||||
tests/test_visualization.py::VisualizationTests::test_snapshot_source_never_mixes_pinned_graph_with_newer_canonical_text \
|
||||
tests/test_graph_publication.py::GraphPublicationTests::test_status_detects_source_and_publication_races \
|
||||
tests/test_changesets.py
|
||||
|
||||
recovery-m5:
|
||||
PYTHONPYCACHEPREFIX=$(PYTHONPYCACHEPREFIX) $(PYTHON) -m pytest -q \
|
||||
-p no:cacheprovider --basetemp=$(PYTEST_BASETEMP)-recovery \
|
||||
tests/test_core.py::DocForgeCoreTests::test_missing_or_corrupt_generation_falls_back_and_repairs \
|
||||
tests/test_core.py::DocForgeCoreTests::test_stale_source_fails_closed_and_failed_rebuild_preserves_index \
|
||||
tests/test_incremental_cache.py \
|
||||
tests/test_python_reference_adapter.py \
|
||||
tests/test_javascript_reference_adapter.py \
|
||||
tests/test_cpp_reference_adapter.py \
|
||||
tests/test_rendering.py \
|
||||
tests/test_graph_publication.py \
|
||||
tests/test_projection_fragments.py
|
||||
|
||||
command-reference-check:
|
||||
$(PYTHON) tools/generate_command_reference.py \
|
||||
--output docs/COMMAND_REFERENCE.md --check > /dev/null
|
||||
|
|
@ -110,3 +177,13 @@ benchmark-m4:
|
|||
benchmark-m4-full: benchmark-m4
|
||||
|
||||
gate: format-check lint type compile contract test accessibility lock dependencies build docs-check benchmark-smoke benchmark-m1-smoke benchmark-m2-smoke benchmark-m3-smoke benchmark-m4-smoke
|
||||
|
||||
release-gate: gate compatibility-m5 migration-m5 concurrency-m5 recovery-m5 task-evidence-m5 adoption-m4 version-check release-artifacts secret-scan
|
||||
|
||||
release-pretag: release-gate
|
||||
$(PYTHON) tools/check_release_identity.py --mode smoke --require-clean \
|
||||
--tag-state absent > /dev/null
|
||||
|
||||
release-posttag:
|
||||
$(PYTHON) tools/check_release_identity.py --mode smoke --require-clean \
|
||||
--tag-state head > /dev/null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue