← Back to Pull requests

test(e2e): restore overview hosts Ready/Failed redirect coverage #3926

Open
unknown opened this pull request with 271 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 19, 2026 21:08 UTC
Author

Summary

Original PR: test(e2e): https://github.com/ansible/ansible-ui/pull/3881
This version includes updates from chai-bot's review comments.

  • Restores the original hosts resource counts should redirect correctly assertions in playwright/tests/overview.spec.ts (Ready Status / Failed Status chips and “Show only …” text).

  • Those checks were removed in b06bb0e02 (fix(overview): stop linking hosts counts to unsupported API filters), immediately before #3615.

  • Safe to restore now that derived last_job_host_summary__failed list filtering landed in ansible/awx#16699.
  • Type of Change

  • Tests
  • Risk Analysis - REQUIRED

  • High — Broad platform impact (e.g., SWR config, shared framework components, authentication, routing, API wrappers, build/bundler config). Changes affect multiple workspaces or could cause widespread regressions.

  • Medium — Scoped but cross-cutting (e.g., shared utility functions, changes to multiple pages within one workspace, component library updates, test infrastructure). Limited blast radius but touches common code paths.

  • Low — Narrowly scoped (e.g., single page fix, styling tweak, documentation, test-only changes, copy/string updates). Minimal risk of unintended side effects.
  • Test-only restoration of overview hosts redirect assertions.

    Dependencies

  • Backend: ansible/awx#16699 (merged)

  • Related: b06bb0e02, #3615, #3700
  • Testing

    Ephemeral E2E Tests

    Once PR is ready and preliminary checks pass, trigger tests by posting a comment /run-playwright on this PR.

    Tests run against a fresh AAP instance (version based on branch).

    External Server E2E Runs

    cd playwright && npx playwright test tests/overview.spec.ts -g "hosts resource counts" --project "live chromium" --retries=0
    

    Manual Testing

    1. Open Overview with AWX enabled.
    2. Click Hosts Ready (if linked) → Hosts page shows Ready Status / “Show only ready hosts”.
    3. Return to Overview, click Failed → Hosts page shows Failed Status / “Show only failed hosts”.

    Screenshots

    N/A (E2E only)

    Diff: 271 lines (+203 / -68) across 3 files Reviewer: redhat-chai-bot Review duration: 4263m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 271 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.335
    Real PR Conversation Timeline
    1 comments
    "Review active on #3926"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.5% (MEDIUM) · Higher = larger blast radius
    39.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 21% · Safe to merge
    21%