← Back to Pull requests

Deprecations dashboard: read deprecation text from verbose events #3662

Open
unknown opened this pull request with 325 lines diff across 4 files
View on GitHub
unknown unknown commented on Sep 25, 2026 16:25 UTC
Author

Summary

Improves the Ansible UI deprecations dashboard by extracting actual deprecation text from verbose event logs rather than categorizing all unmatched warnings as "Other deprecation."

Previously, the dashboard only read event=deprecated markers with empty stdout fields, lumping unmatched warnings into a generic category. Now the system implements three separate API queries per job to locate and pair deprecation markers with their accompanying text from verbose events, automatically extracting actual deprecation messages.

Result: 50+ unique issues showing actual deprecation messages like "The bool filter coerced invalid value" instead of just 7 hardcoded patterns.

Type of Change

  • Bug fix

  • Enhancement

  • Tests

  • Documentation

  • Other (please specify)
  • 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.
  • Scope:

  • Frontend-only change in AWX deprecations dashboard

  • No API modifications

  • No runner or backend changes

  • Affects only deprecation warning display logic
  • Mitigation:

  • 40 unit tests covering event shapes from ansible-core 2.16-2.20

  • Manual testing validated on AAP 2.7 with 57 warnings across 54 types

  • Fallback behavior maintains existing "Other deprecation" category for edge cases

  • Backward compatible with existing event data

  • No database schema changes
  • Rollback Plan:

  • Simple revert if categorization issues discovered

  • No data migration or cleanup required
  • Testing

    Manual Testing

    Tested on AAP 2.7 with real job data:

  • Validated 57 deprecation warnings correctly categorized into 54 unique types

  • Confirmed message extraction from verbose events (ansible-core 2.16+ format)

  • Verified deduplication logic prevents double-counting

  • Tested pagination handling for jobs with 1,000+ events
  • Unit Tests

    40 unit tests pass including:

  • Message extraction from verbose event streams

  • Empty marker handling and deduplication

  • Multi-step query strategy

  • Edge cases (truncation, partial data, API failures)
  • Diff: 325 lines (+243 / -82) across 4 files Reviewer: keithjgrant Review duration: 22742m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.42) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 325 lines diff across 4 files
    0.42
    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
    Diff Size diff_size
    0.346
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #3662"
    general weight: 0.35
    Reviewers
    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: 42% (MEDIUM) · Higher = larger blast radius
    42%
    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: 22.4% · Safe to merge
    22.4%