Repository navigation
Command Adapter and JUnit Import 2026 09 25
github-actions[bot] edited this page Nov 5, 2026
·
3 revisions
The first external adopter, CarBiz (an Expo app with a Python/AWS backend), wants one orchestrated run across pytest suites, Jest, Playwright and, later, Maestro. Before this change QASight only ran pytest, Behave and BehaveX. Any other runner could not be a stage, and even a wrapper script would produce no Allure results, so it counted as an empty stage in summaries and health %.
-
New equipment
command(qasight/frameworks/command_adapter.py).argsis the complete argv, run verbatim intarget_repo. Nothing is injected (these runners have no Allure flag).TESTO_SHARED_ALLURE_RESULTS_DIRis still exported for runners that can write Allure JSON themselves.argsis required at load time. The default tier isunit; settier:explicitly for e2e suites. -
New stage key
junit_xml(string or list of globs, relative totarget_repo, valid on every equipment). After the process exits, the executor converts each matching file into one Allure*-result.jsonper<testcase>(qasight/reporting/junit_import.py):- Status:
<failure>→ failed,<error>→ broken,<skipped>→ skipped, otherwise passed. -
statusDetailscarries the message and a trace capped at 20k characters. -
historyId= sha256(stage name + full name), so trends line up across runs. - Timing comes from the suite
timestampplus the per-casetime, laid out sequentially.
- Status:
-
Safety.
- Patterns must be relative and cannot use
... Matches that resolve outsidetarget_repo(for example symlinks) are skipped. - Files older than the stage start are ignored, so a stale report never masquerades as this run.
- Parsing uses stdlib expat, which does not resolve external entities.
- The import is best-effort, like the BehaveX report hook: the exit code still decides pass/fail, and the outcome is appended to
run.log.
- Patterns must be relative and cannot use
-
Copy the JUnit XML into
allure-results/and let Allure read it. Rejected. Allure's HTML would show the tests, butallure_results.parse_collected_resultsonly reads*-result.json, so summaries, health %, the DB archive and the dashboard would still see an empty stage. -
A dedicated adapter per tool (Jest, Playwright, ...). Deferred. Every one of them already emits JUnit, so one generic path covers them all. Per-tool adapters only make sense for native report bundles (
native_report), which can be added later without changing this contract. -
Fail the stage when the report is missing. Rejected. A crashed runner already exits non-zero, and a passing run with a misconfigured glob should be visible (the
run.logline) without masking the real result.
-
SUPPORTED_FRAMEWORKSgainscommand, andStagegainsjunit_xml(default(), so existing configs are unchanged). - Docs updated in the same change: Architecture Overview (adapter list), Deep Dive - Execution Logic (post-stage hook), QA Strategies (config example),
CHANGELOG.md. - Tests:
tests/unit/qasight/test_command_adapter.py, 14 cases covering config validation, the adapter, the status and label mapping, malformed, stale and escaping files, and real subprocess stages throughrun_stage.
- Coverage aggregation per cycle (
fail_under) and flaky-test tracking, which the CarBiz pilot needs next (see the CarBiz vault note "Test Strategy - 2026-09-25"). - A Maestro example cycle once CarBiz's native flows exist.
Generated from docs/Specs & ADRs/Command Adapter and JUnit Import - 2026-09-25.md. Edit it there; changes made in the wiki are overwritten.
Architecture
CLI Commands
Processes & Guides
- CI-CD Pipeline Setup
- Closed Network Install
- E2E Harness Operations Guide
- GitLab Pages Demo
- Publishing Docker Images
- Publishing to Artifactory
- Publishing to PyPI
- Setup Snippets
- Shared Resource Pools
- Stability and Deprecation Policy
- Team Server
- Upload Without Python
Prompts & Snippets
Roadmap & Strategy
- Feature Gaps and Quick Wins - 2026-10-31
- New User Journey Audit - 2026-11-01
- Paid Features to Offer Free - 2026-10-31
- Product Roadmap
Specs & ADRs
- Adoption Blockers - 2026-11-12
- Affected Test Selection - 2026-10-30
- Alerts Where Developers Look - 2026-10-22
- Architecture Consolidation - 2026-10-06
- Architecture Review - 2026-10-31
- Automation and Unification - 2026-11-12
- BehaveX Reports - 2026-10-21
- Better Flaky Signal - 2026-11-01
- CLI-Only Bug Hunt - 2026-11-15
- Closed Network Install - 2026-11-15
- Closed-Network Monorepo Rollout - 2026-11-20
- Command Adapter and JUnit Import - 2026-09-25
- Config JSON Schema - 2026-10-22
- Crash Detection - 2026-10-31
- Delta Comparison Policy
- Docs Site - 2026-10-19
- Docs Vault and Wiki Sync - 2026-10-07
- Easy Setup - 2026-11-01
- Engine Fixes - 2026-11-01
- Engineering Health Review - 2026-10-31
- Exporting Results - 2026-11-01
- External Audit Tools - 2026-11-11
- Flaky Test Issues - 2026-11-01
- Flaky Test Quarantine - 2026-10-22
- Focus Review - 2026-11-20
- Free Copies of Paid Features - 2026-11-01
- GitHub Action PR Comment - 2026-10-19
- Go Uploader - 2026-11-20
- Human-Run Resource Provider - 2026-10-30
- Importer and Integration Bug Hunt - 2026-10-31
- Ingest and Team Server - 2026-10-22
- Interview Readiness Fixes - 2026-10-07
- Library Packaging
- Lifecycle Fixes - 2026-11-02
- MCP Server - 2026-11-01
- Menu by Question - 2026-11-12
- Merge and Automate - 2026-11-20
- New User Journey Automation - 2026-11-01
- Open Source Features - 2026-10-19
- OpenTelemetry Export - 2026-10-30
- Phase 3 Delta Comparison Engine Plan
- Phase 3 Unified Dashboard Plan
- Phase 4 BYOK and Failure Analysis
- Phase 5 UI Redesign - Cycles-First Navigation
- Playwright Adapter - 2026-10-19
- Playwright JSON Import - 2026-10-22
- Plug and Play - 2026-11-12
- Plugin API - 2026-10-19
- Product Roadmap Work - 2026-10-25
- Product to Ten - 2026-10-25
- Project Health - 2026-10-26
- QASight Logo - 2026-11-05
- Qualflare Follow-ups - 2026-10-26
- Quarantine From the UI - 2026-11-01
- Specs & ADRs
- Release Gate - 2026-11-12
- Release Scorecard - 2026-11-12
- Rename to QASight - 2026-11-04
- Repository Pattern - Database-Agnostic Refactor
- Resource Lifecycle Hooks - 2026-10-26
- Resource Pools and Leases - 2026-10-26
- Run Deletion and Stop - 2026-11-02
- Runner Coverage - 2026-10-26
- Scale Runs and Stages - 2026-10-24
- Scorecard on MegaLinter - 2026-11-12
- Security and Install Review - 2026-10-31
- Standards Compliance - 2026-11-12
- Switchable Team Features - 2026-10-24
- Test Delivery Metrics - 2026-11-02
- Test Labels, Environments and Releases - 2026-11-02
- Test Source in AI Summaries - 2026-11-01
- Throwaway Stage Containers - 2026-10-24
- Tidy Cards and Demo Examples - 2026-11-05
- UI Design Review - 2026-10-31
- UI Polish - 2026-11-08
- UI Restyle - 2026-10-19
- UI Review Fixes - 2026-11-01
Testing Workflows
Vault