← Back to Pull requests

Guard workflow visualizer path points #3661

Merged
nixocio merged 3 files (86 lines) on Oct 13, 2026 13:34 UTC
View on GitHub
nixocio nixocio commented on Sep 25, 2026 15:00 UTC
Author

Add explicit guards for workflow visualizer path-point reads before calculating label coordinates and bend segments. Normal geometry is unchanged, while seven production noUncheckedIndexedAccess diagnostics are removed.

Tests:

  • Baseline: npx vitest run frontend/awx/resources/templates/WorkflowVisualizer/hooks/useGetPath.test.ts --coverage.enabled=false (13 passed)

  • After change: same test file (13 passed)

  • npx eslint frontend/awx/resources/templates/WorkflowVisualizer/hooks/useGetPath.tsx frontend/awx/resources/templates/WorkflowVisualizer/hooks/useGetPath.test.ts
  • Risk Analysis - REQUIRED

  • Low — Narrowly scoped TypeScript guard and test changes with focused regression coverage.
  • Diff: 86 lines (+74 / -12) across 3 files Reviewer: h-kataria Review duration: 25834m
    All Vouch review confidence checks passed
    Residual risk 0.05 = Change Risk (0.33) × (1 − Review Confidence (0.85)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.33 · 86 lines diff across 3 files
    0.33
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.75 · 5 substantive comment(s)
    0.75
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    85%
    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
    Diff Size diff_size
    0.267
    Real PR Conversation Timeline
    16 items
    github-actions[bot] github-actions[bot] commented on Sep 25, 2026 15:00 UTC
    Reviewer

    Risk Analysis is required. Please select a risk level (High, Medium, or Low) in the PR description under Risk Analysis - REQUIRED.

    nixocio nixocio commented on Sep 28, 2026 16:52 UTC
    Author

    /run-playwright

    nixocio nixocio commented on Sep 30, 2026 21:03 UTC
    Author

    /run-playwright

    nixocio nixocio commented on Sep 30, 2026 21:11 UTC
    Author

    /run-playwright

    nixocio nixocio commented on Sep 30, 2026 21:14 UTC
    Author

    /run-playwright

    nixocio nixocio commented on Oct 01, 2026 17:53 UTC
    Author

    /run-playwright

    nixocio nixocio commented on Oct 05, 2026 17:49 UTC
    Author

    /run-playwright

    h-kataria h-kataria approved these changes on Oct 06, 2026 15:23 UTC
    Approved Reviewer

    Kersom — the optional chaining and bend fallbacks in useGetPath read cleanly and keep the existing geometry for normal paths while satisfying strict indexed access. Existing unit coverage still exercises the happy paths.

    This review was created with AI assistance.

    nixocio nixocio commented on Oct 07, 2026 20:09 UTC
    Author

    /run-playwright

    nixocio nixocio commented on Oct 07, 2026 20:14 UTC
    Author

    /run-playwright

    github-actions[bot] github-actions[bot] commented on Oct 07, 2026 20:15 UTC
    Bot

    <!-- waiting-on-author-e2e -->
    @nixocio — The E2E pipeline failed. Please check the pipeline run and re-trigger with /run-playwright if needed.

    github-actions[bot] github-actions[bot] commented on Oct 08, 2026 14:02 UTC
    Bot

    <!-- waiting-on-author-sonar -->
    @nixocio — SonarQube Quality Gate failed:

  • Coverage on New Code: 83.3%
  • Please address the SonarQube findings.

    nicklemmon nicklemmon commented on Oct 08, 2026 14:24 UTC
    Reviewer

    AI-Assisted: I reviewed the current diff against its stated scope and repository guidance. I found no actionable findings. I did not run tests.

    github-actions[bot] github-actions[bot] commented on Oct 13, 2026 13:19 UTC
    Bot

    <!-- waiting-on-author-checks -->
    @nixocio — The following PR checks have failed:

  • ❌ build

  • ❌ Vitest (framework)

  • ❌ prettier

  • ❌ tsc

  • ❌ eslint

  • ❌ All checks passed
  • Please address these failures.

    sonarqubecloud[bot] sonarqubecloud[bot] commented on Oct 13, 2026 13:20 UTC
    Bot

    ![Quality Gate Failed](https://sonarcloud.io/dashboard?id=ansible_ansible-ui&pullRequest=3661) Quality Gate failed


    Failed conditions
    ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/failed-16px.png '') 83.3% Coverage on New Code (required ≥ 90%)

    <!-- sqra:qg_revision=9b1b8298b0870bdc3e5a1af9a7288572bbfed89b76fbd9583d3e5db3d8a64766 -->
    <!-- sqra-placement-anchor -->
    See analysis details on SonarQube Cloud

    Reviewers
    Assignees
    nixocio nixocio
    Labels
    risk: low confidence: 85% 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: 32.6% (LOW) · Higher = larger blast radius
    32.6%
    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: 85% · Lower = rushed or shallow review
    85%
    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: 4.9% · Safe to merge
    4.9%