← Back to Pull requests

fix(controller): use notificationConfigNamespace in EventRecorder apiFactory #5040

Open
AruneshDwivedi opened this pull request with 7 lines diff across 3 files
View on GitHub
AruneshDwivedi AruneshDwivedi commented on Sep 17, 2026 09:22 UTC
Author

The EventRecorder was hardcoded to use the controller's namespace instead of the notification config namespace (which is NamespaceAll when self-service notifications are enabled). This caused per-namespace notification configs to be ignored for event recording.\n\nFixes #4865. Used AI to help identify and draft this fix — reviewed and tested before submitting.

Diff: 7 lines (+5 / -2) across 3 files Reviewer: kostis-codefresh Review duration: 58061m
All Vouch review confidence checks passed
Residual risk 0.06 = Change Risk (0.49) × (1 − Review Confidence (0.88)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.49 · 7 lines diff across 3 files
0.49
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.91 · 4 substantive comment(s)
0.91
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
87%
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.124
Sensitive Paths sensitive_paths
0.049
Real PR Conversation Timeline
6 items
github-actions[bot] github-actions[bot] commented on Sep 17, 2026 10:03 UTC
Bot

Published E2E Test Results


  4 files    4 suites   4h 9m 9s ⏱️
149 tests 138 ✅  7 💤 4 ❌
600 runs  568 ✅ 28 💤 4 ❌

For more details on these failures, see this check.

Results for commit 68658675.

[test-results]:data:application/gzip;base64,H4sIAAa7q2oC/03MSw7CIBSF4a00jB1A5V6omzGUQkLsw/AYGffurRXs8P9Ocl7Mh9klduvkpWOphNxiKtHksK2UQg5yIKIxp6Nr3VOxdqer/tMjPIlUA2/C/Hs9wMW4RRJOEsu6fyKvUS8BdZPjsW9wevz2+dBuyxIyBUONoFEBWnAOuIRx5IM0iGryyoEaBVfC98DeHy4zOM4IAQAA

github-actions[bot] github-actions[bot] commented on Sep 17, 2026 10:03 UTC
Bot

Published Unit Test Results


2 644 tests   2 644 ✅  3m 29s ⏱️
  131 suites      0 💤
    1 files        0 ❌

Results for commit 68658675.

[test-results]:data:application/gzip;base64,H4sIAA27q2oC/2XMSw7CIBSF4a00jB0Aci+tmzFAISG2xVAYGfcutD5Qh/93knMjzk92JaeOHTqyZp/2ONYcc1TJh6UAp0OBMqY6cxTilec1G/NnF38tRt/glJ++wMYY4lNiXprXWj+nO30+t24ut24fTZhnn0oQ7BF6lIAGrAUqQGs6CIUoRyctSM2oZI4DuT8A+pyaNgsBAAA=

codecov[bot] codecov[bot] commented on Sep 17, 2026 10:04 UTC
Bot

Codecov Report


:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 85.27%. Comparing base (c483863) to head (6865867).
:warning: Report is 1 commits behind head on master.

<details><summary>Additional details and impacted files</summary>

@@            Coverage Diff             @@
##           master    #5040      +/-   ##
==========================================
+ Coverage   85.25%   85.27%   +0.02%     
==========================================
  Files         166      166              
  Lines       19461    19462       +1     
==========================================
+ Hits        16591    16597       +6     
+ Misses       2014     2011       -3     
+ Partials      856      854       -2     

| Flag | Coverage Δ | |
|---|---|---|
| e2e | 53.09% <100.00%> (+0.11%) | :arrow_up: |
| unit-tests | 81.73% <33.33%> (+0.01%) | :arrow_up: |

Flags with carried forward coverage won't be shown. Click here to find out more.
</details>

:umbrella: View full report in Codecov by Harness.
:loudspeaker: Have feedback on the report? Share it here.
<details><summary> :rocket: New features to boost your workflow: </summary>

  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

  • </details>

    kostis-codefresh kostis-codefresh requested changes on Sep 28, 2026 14:37 UTC
    Changes Requested Reviewer

    Please fix the lint error

    Assignees
    AruneshDwivedi AruneshDwivedi
    Labels
    risk: low confidence: 87.9% reviewed sensitive_module
    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: 48.5% (MEDIUM) · Higher = larger blast radius
    48.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: 87.9% · Lower = rushed or shallow review
    87.9%
    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: 5.9% · Safe to merge
    5.9%