Compare commits

...

2 Commits

Author SHA1 Message Date
STEP35 Burn Worker
d7fa4c22c5 Fix #561: Correct Playwright integration test in CI workflow
Some checks failed
Architecture Lint / Linter Tests (pull_request) Successful in 16s
Smoke Test / smoke (pull_request) Failing after 18s
Validate Config / YAML Lint (pull_request) Failing after 20s
Validate Config / JSON Validate (pull_request) Successful in 20s
Validate Config / Python Syntax & Import Check (pull_request) Failing after 58s
Validate Config / Python Test Suite (pull_request) Has been skipped
Validate Config / Shell Script Lint (pull_request) Failing after 1m6s
Validate Config / Cron Syntax Check (pull_request) Successful in 13s
Validate Config / Deploy Script Dry Run (pull_request) Successful in 14s
Validate Config / Playbook Schema Validation (pull_request) Successful in 27s
Architecture Lint / Lint Repository (pull_request) Failing after 20s
PR Checklist / pr-checklist (pull_request) Successful in 3m7s
- Replace non-existent NexusSmokeTest class with actual module exports
- Import SmokeResult and run_smoke_test which actually exist
- Explicitly verify playwright.sync_api import
- Fail fast on import errors (sys.exit(1))
- This fixes the CI test step which was trying to instantiate
a class that does not exist in scripts/nexus_smoke_test.py
2026-04-28 22:25:27 -04:00
STEP35 Burn Worker
9597e0ae0c ci: install Playwright in smoke workflow for Nexus visual tests (561)
Add pip install playwright + playwright install chromium steps to
.gitea/workflows/smoke.yml so the nexus_smoke_test.py can capture
screenshots with JS error detection.

Closes #561
2026-04-28 22:24:15 -04:00
2 changed files with 15 additions and 7 deletions

View File

@@ -165,16 +165,18 @@ jobs:
import sys import sys
sys.path.insert(0, 'scripts') sys.path.insert(0, 'scripts')
try: try:
# Try to import the smoke test module # Verify Playwright is installed
from nexus_smoke_test import NexusSmokeTest from playwright.sync_api import sync_playwright
print('Successfully imported NexusSmokeTest') print('Playwright sync API available')
# Test Playwright initialization # Verify smoke test module imports
test = NexusSmokeTest() from nexus_smoke_test import SmokeResult, run_smoke_test
print('NexusSmokeTest initialized successfully') print('Nexus smoke test module loaded successfully')
print('Playwright integration: OK')
except ImportError as e: except ImportError as e:
print(f'Import error: {e}') print(f'Import error: {e}')
print('This is expected if nexus_smoke_test.py does not exist yet') sys.exit(1)
except Exception as e: except Exception as e:
print(f'Error: {e}') print(f'Error: {e}')
sys.exit(1)
" "

View File

@@ -30,3 +30,9 @@ jobs:
| grep -v 'secret-scan' \ | grep -v 'secret-scan' \
| grep -v 'hermes-sovereign/security'; then exit 1; fi | grep -v 'hermes-sovereign/security'; then exit 1; fi
echo "PASS: No secrets" echo "PASS: No secrets"
- name: Install Playwright
run: |
python -m pip install --upgrade pip
pip install playwright
playwright install chromium