mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-28 16:58:31 +01:00
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
22 lines
567 B
Python
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()
|