Files
Pulse/scripts/tests/test_go_package_slices.py
pulse-triage[bot] cf7db40103 Keep rest-shard validation fatal with optional cache transport
The hosted rest workers stopped in an obsolete whole-job assertion before Go execution. Admit only the full pinned read-only cache-restore shape while keeping admission, task execution and coverage capture fatal. Add adverse controls and include the existing worker contract suite in normal smoke discovery so it cannot be omitted from full source validation.

Contract-Neutral: Test-only repair preserves the documented cache, admission, coverage and runtime contract; no workflow or application behaviour changes.
Change-source: pulse-maintainer
2026-10-31 17:02:44 +00:00

22 lines
567 B
Python

#!/usr/bin/env python3
"""Include the runtime worker's contract controls in ordinary smoke discovery."""
import importlib.util
from pathlib import Path
import unittest
ROOT = Path(__file__).resolve().parents[2]
SPEC = importlib.util.spec_from_file_location(
"go_package_slice_tests", ROOT / "scripts/release_control/run_go_package_slice_test.py")
TESTS = importlib.util.module_from_spec(SPEC)
SPEC.loader.exec_module(TESTS)
def load_tests(loader, tests, pattern):
return loader.loadTestsFromModule(TESTS)
if __name__ == "__main__":
unittest.main()