← Back to Pull requests

chore: add React effect guardrail plugin #3727

Open
nixocio opened this pull request with 53 lines diff across 5 files
View on GitHub
nixocio nixocio commented on Oct 07, 2026 17:51 UTC
Author

Summary

  • Add eslint-plugin-react-you-might-not-need-an-effect as a development dependency.

  • Enable its recommended rules as warnings in the advisory guardrails configuration.

  • Keep the existing ESLint 8 setup unchanged.
  • Validation

  • npm ci lockfile preflight passed.

  • Focused guardrails lint passed with warnings and zero errors.
  • Risk Analysis - REQUIRED

  • Medium — Adds a new recommended ESLint rule set to the advisory guardrails configuration. The rules remain warnings-only and do not block the existing ESLint gate.
  • Diff: 53 lines (+53 / -0) across 5 files Reviewer: h-kataria Review duration: 9980m
    All Vouch review confidence checks passed
    Residual risk 0.03 = Change Risk (0.33) × (1 − Review Confidence (0.91)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.33 · 53 lines diff across 5 files
    0.33
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.89 · 5 substantive comment(s)
    0.89
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    90%
    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.239
    Real PR Conversation Timeline
    13 items
    github-actions[bot] github-actions[bot] commented on Oct 07, 2026 17:51 UTC
    Reviewer

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

    h-kataria h-kataria commented on code on Oct 07, 2026 18:05 UTC
    Code Review
    eslint.guardrails.config.mjs:1
    @@ -43,9 +44,11 @@ export default [
           prettier,
           react,
           'react-hooks': reactHooks,
    +      'react-you-might-not-need-an-effect': reactEffectPlugin,

    Wiring eslint-plugin-react-you-might-not-need-an-effect into the guardrails config is the right place to start — advisory signal without blocking main ESLint on day one.

    Please mark the PR Risk Analysis tier as at least Medium (shared lint/tooling config). After merge, watch the guardrails job for a warning-count jump vs devel; if it spikes, consider enabling rules incrementally rather than the full recommended set at once.

    Same tsc failure as other branches: leaderboard test types on an older base — rebase on current devel.

    This review comment was created with AI assistance.

    nixocio nixocio commented on code on Oct 08, 2026 13:32 UTC
    Code Review
    eslint.guardrails.config.mjs:1
    @@ -43,9 +44,11 @@ export default [
           prettier,
           react,
           'react-hooks': reactHooks,
    +      'react-you-might-not-need-an-effect': reactEffectPlugin,

    Updated the Risk Analysis tier to Medium. The current head is up to date with devel; the older leaderboard typing failure is no longer present in the current check set. The remaining current blockers are Konflux checks, so I’m treating this review finding as addressed.

    nicklemmon nicklemmon commented on Oct 08, 2026 14:22 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.

    nicklemmon nicklemmon commented on code on Oct 08, 2026 19:38 UTC
    Code Review
    frontend/awx/analytics/automation-dashboard/views/useAutomationLeaderboardsView.test.tsx:1
    @@ -372,8 +372,8 @@ describe('mapLeaderboardReport', () => {
               user_organization_rank: 1,
               total_organizations: 2,
               leaderboard: [
    -            { rank: 1, name: null, runs: 20 },
    -            { rank: 2, name: '', runs: 10 },
    +            { rank: 1, name: null, runs: 20, user_organization: false },
    +            { rank: 2, name: '', runs: 10, user_organization: false },

    Need to rebase with devel to clear this out?

    nicklemmon nicklemmon commented on Oct 08, 2026 19:38 UTC
    Reviewer

    Very glad this is being introduced!

    nixocio nixocio commented on Oct 09, 2026 13:12 UTC
    Author

    /run-playwright

    nixocio nixocio commented on Oct 13, 2026 14:25 UTC
    Author

    /run-playwright

    aap-pde-ci-bot aap-pde-ci-bot commented on Oct 13, 2026 16:05 UTC
    Bot

    <!-- aap-ui-playwright-shard-summary -->

    Currents dashboard

    nixocio nixocio commented on Oct 14, 2026 14:17 UTC
    Author

    /run-playwright

    aap-pde-ci-bot aap-pde-ci-bot commented on Oct 14, 2026 16:03 UTC
    Bot

    <!-- aap-ui-playwright-shard-summary -->

    Currents dashboard

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