← Back to Pull requests

fix(e2e): restore org link on manage-roles and stabilize host bulk delete #3682

Closed
unknown closed this pull request without merging on Oct 02, 2026 17:49 UTC
View on GitHub
unknown unknown commented on Sep 30, 2026 17:19 UTC
Author

Summary

  • Restore the organization link in the manage-roles indirect-roles alert. ManageResourceRoles uses <Trans i18nKey="indirectRolesAlert"> with OrganizationUsersLink in the default children. After the locale catalog rebuild (#3641), catalogs contain a placeholder entry ("indirectRolesAlert": "indirectRolesAlert"). i18next then renders that string and does not mount the link, which breaks live coverage in project.spec.ts.

  • Pass organization id into OrganizationUsersLink when the resource already has it, so the link does not depend on a name-only gateway lookup.

  • Stabilize InventoryHost.ui.bulkDelete for live Playwright (row selection, post-bulk refresh, empty-table assert).
  • Why live E2E started reporting this recently

  • The UI behavior changed on devel when the rebuilt translation catalogs landed (#3641, 2026-09-24). Before that commit the key was absent from locales/en/translation.json, so Trans fell back to its children and the link worked.

  • The Playwright spec is not new; it exercises manage-roles user access that has been in the suite for a long time.

  • Failures became easier to see once Currents runs and diagnostic baseline #3568 compared against current devel tip (which includes the catalog change). Live E2E also does not run on every merge, so the gap between landing on devel and a failing baseline run can be several days.

  • Org propagation waits (#3571) affect other live specs; this failure is a deterministic missing link in the alert, not a timing flake in org setup.
  • Local verification (2026-09-30)

    Stack: aap-dev API http://localhost:44928, local platform UI https://localhost:4100, Playwright project live chromium, --retries=0.

    | Spec | Result | Approx. time |
    | --- | --- | --- |
    | playwright/tests/integration/automation-execution/projects/project.spec.ts — project - test user access organization link | pass | ~40s |
    | playwright/tests/integration/automation-execution/infrastructure/hosts/inventory-host-regular.spec.ts — can bulk delete multiple hosts from the hosts tab of an inventory | pass | ~27–41s |

    Both runs included global/coverage setup/teardown; exit code 0.

    Test plan

  • project.spec.ts org link test (local live setup above)

  • inventory-host-regular.spec.ts bulk delete test (same setup)

  • Konflux / Currents E2E on PR head (/run-playwright when ready)
  • Risk Analysis - REQUIRED

  • Low — Narrowly scoped (manage-roles alert copy, link helper, Playwright helper). Minimal risk of unintended side effects.
  • Diff: 344 lines (+258 / -86) across 4 files Reviewer: nicklemmon Review duration: 2909m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 344 lines diff across 4 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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.350
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3682"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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.4% (MEDIUM) · Higher = larger blast radius
    42.4%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 16.7% · Safe to merge
    16.7%