Publish curated ITWorx-ModelForge source from 990401737f96c8d46a9f7b0d84994516cadcb6a0

This commit is contained in:
Public Source Publisher committed 2026-09-30 09:23:17 +00:00
1 parent 7082ab955a
commit 848f0d8f8a
434 files changed
+67298 -4315

No files matched your search

+19 -8
View File
@@ -114,7 +114,6 @@ def test_the_production_overlay_exists_and_sets_the_production_profile() -> None
"MODELFORGE_RUNTIME_DB_PASSWORD",
"MODELFORGE_MIGRATION_DATABASE_URL",
"MODELFORGE_RUNTIME_DATABASE_URL",
"MODELFORGE_OPERATOR_API_KEY",
"MODELFORGE_BACKUP_ENCRYPTION_KEY",
"MODELFORGE_CORS_ORIGINS",
],
@@ -215,13 +214,13 @@ def test_the_release_builder_never_mutates_a_floating_latest_tag() -> None:
assert 'f"{image}:latest"' not in source
def test_upgrade_runbook_starts_prebuilt_release_images() -> None:
def test_upgrade_runbook_marks_its_v1_2_3_commands_as_historical() -> None:
runbook = (ROOT / "docs" / "UPGRADE.md").read_text("utf-8")
start_step = runbook.split("## 5. Start the new version", 1)[1].split("## 6. Verify", 1)[0]
version = (ROOT / "VERSION").read_text("utf-8").strip()
assert f"MODELFORGE_VERSION={version}" in start_step
assert f"MODELFORGE_API_IMAGE=modelforge-api:{version}" in start_step
assert f"MODELFORGE_WEB_IMAGE=modelforge-web:{version}" in start_step
assert "The remaining release commands document the previously documented v1.2.3 hotfix" in runbook
assert "MODELFORGE_VERSION=1.2.3" in start_step
assert "MODELFORGE_API_IMAGE=modelforge-api:1.2.3" in start_step
assert "MODELFORGE_WEB_IMAGE=modelforge-web:1.2.3" in start_step
assert "up -d --no-build api web" in start_step
assert "up -d --build api web" not in start_step
@@ -275,15 +274,27 @@ def test_the_release_package_includes_what_an_operator_needs_to_install() -> Non
module = module_from_spec(spec)
spec.loader.exec_module(module)
paths = set(module.ARTIFACT_PATHS)
assert "clients" in paths
for client in ("python/modelforge_client.py", "typescript/modelforge-client.mjs", "typescript/modelforge-client.d.mts"):
assert (ROOT / "clients" / client).is_file()
for required in (
"docker-compose.yml",
"docker-compose.production.yml",
"docker-compose.rc-ingress.yml",
"docker-compose.validation-tls.yml",
".env.example",
"VERSION",
"docs",
"config",
"deploy/validation",
"scripts/bootstrap.py",
"scripts/preflight.py",
"scripts/operator_identity.py",
"scripts/rc_isolation_preflight.py",
"scripts/rc_stack_retention.py",
"scripts/m16_chaos.py",
"scripts/m16_invariants.py",
"scripts/m16_soak.py",
):
assert required in paths, f"a release without {required} cannot be installed from"
@@ -361,7 +372,7 @@ def test_every_manifest_the_control_plane_needs_at_startup_is_tracked() -> None:
@pytest.mark.parametrize(
"directory",
["config", "backend/src", "backend/tests", "node-agent/src", "runtime-worker/src", "docs"],
["config", "backend/src", "backend/tests", "node-agent/src", "runtime-worker/src", "docs", "clients"],
)
def test_no_source_file_is_excluded_from_the_repository(directory: str) -> None:
"""Whatever these directories grow, none of it may be invisible to a clean clone.
@@ -374,7 +385,7 @@ def test_no_source_file_is_excluded_from_the_repository(directory: str) -> None:
"""
tracked = _tracked_files()
suffixes = {".py", ".ts", ".tsx", ".md", ".yaml", ".yml", ".json", ".inc", ".template"}
suffixes = {".py", ".ts", ".tsx", ".mts", ".mjs", ".md", ".yaml", ".yml", ".json", ".inc", ".template"}
on_disk = {
str(path.relative_to(ROOT)).replace("\\", "/")
for path in (ROOT / directory).rglob("*")