Run workflow system validation tests.
(self)
| 121 | return False |
| 122 | |
| 123 | def _run_validation_tests(self) -> bool: |
| 124 | """Run workflow system validation tests.""" |
| 125 | print("Running Workflow System Validation...") |
| 126 | |
| 127 | validator_script = self.root_path / "scripts" / "workflow-validator.py" |
| 128 | |
| 129 | if not validator_script.exists(): |
| 130 | print("[ERROR] Workflow validator script not found") |
| 131 | return False |
| 132 | |
| 133 | try: |
| 134 | result = subprocess.run([sys.executable, str(validator_script), "--root", str(self.root_path)], capture_output=True, text=True, cwd=self.root_path, timeout=300, shell=False) # nosec |
| 135 | |
| 136 | print("Validation Output:") |
| 137 | print(result.stdout) |
| 138 | |
| 139 | if result.stderr: |
| 140 | print("Validation Errors:") |
| 141 | print(result.stderr) |
| 142 | |
| 143 | return result.returncode == 0 |
| 144 | |
| 145 | except subprocess.TimeoutExpired: |
| 146 | print("[ERROR] Validation tests timed out") |
| 147 | return False |
| 148 | except Exception as e: |
| 149 | print(f"[ERROR] Validation tests failed: {e}") |
| 150 | return False |
| 151 | |
| 152 | def _run_integration_tests(self) -> bool: |
| 153 | """Run integration tests.""" |
no test coverage detected