← Back to Pull requests

MULTIARCH-6087: Migrate operand events to native events/v1 #776

Merged
AnnaZivkovic merged 40 files (1650 lines) on Nov 10, 2026 03:50 UTC
View on GitHub
AnnaZivkovic AnnaZivkovic commented on Nov 06, 2026 01:21 UTC
Author

Summary

Split MULTIARCH-6087 out of #773 so the native Kubernetes events migration can merge independently, before the Go version/dependency bump.

  • Add shared native events.k8s.io/v1 recorder infrastructure and structured test capture.

  • Migrate pod-placement controller/webhook, CEL, and ENoExec operand event producers; preserve reasons/messages and add semantic actions.

  • Own recorder and delayed-webhook-job lifetimes, with producer shutdown before recorder cleanup.

  • Grant native event create/patch/update permissions in runtime roles and generated operator RBAC/bundle manifests.

  • Update native event queries and assertions, including core/v1 compatibility coverage.
  • Scope and independence

    Five commits cherry-picked unchanged from #773 (git range-diff confirms identical patches):
    1. 20a9ee67 → 28341904: recorder infrastructure
    2. 9026e5a9 → 43775c71: operand migration and producer lifetimes
    3. c4f29928 → 1c125c18: RBAC
    4. e263c0f7 → 54fa7c39: native publication/compatibility assertions
    5. 484e00c3 → 1aa3538c: migration design and historical verification notes

    Based directly on upstream main (42f9d7e6). Go remains 1.26.7; go.mod, go.sum, and vendor/ are unchanged. Required client-go APIs already exist in this dependency set. No dependency updater, Go bump, Konflux removal, or unrelated CPPC fixes included. #773 remains unchanged and will need cleanup/rebase after this merges.

    Verification on this standalone branch

  • Go 1.26.7, CGO_ENABLED=1, vendored dependencies.

  • Race-enabled unit tests across pkg/events, pkg/models, pkg/testing/framework, cmd, operator, pod-placement, and ENoExec handler packages (-run '^Test' -skip '^Test(APIs|Operator)$').

  • Race-enabled focused pod-placement envtest: publishes a gate event, using Kubernetes 1.36.2 assets; verifies native publication and core/v1 conversion.

  • git diff --check; dependency files/vendor identical to base; all five patches unchanged.

  • Full test/build/lint pipeline and deployed-cluster E2E not run to completion. Initial broader test invocation timed out; focused runs above completed successfully.
  • Historical execution notes in the cherry-picked docs describe original development verification, not additional checks performed on this split branch. Native event delivery remains best effort; aggregation may coalesce diagnostic notes.

    Diff: 1650 lines (+1396 / -254) across 40 files Reviewer: jcpowermac Review duration: 5909m
    All Vouch review confidence checks passed
    Residual risk 0.12 = Change Risk (0.95) × (1 − Review Confidence (0.87)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.95 · 1650 lines diff across 40 files
    0.95
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.93 · 5 substantive comment(s)
    0.93
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    86%
    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.400
    Sensitive Paths sensitive_paths
    0.095
    Mass File Touch mass_file_touch
    0.080
    Real PR Conversation Timeline
    15 items
    openshift-ci-robot openshift-ci-robot commented on Nov 06, 2026 01:21 UTC
    Contributor

    @AnnaZivkovic: This pull request references MULTIARCH-6087 which is a valid jira issue.

    Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.1.0" version, but no target version was set.

    <details>

    In response to this:

    >## Summary

    >Split MULTIARCH-6087 out of #773 so the native Kubernetes events migration can merge independently, before the Go version/dependency bump.

    >- Add shared native events.k8s.io/v1 recorder infrastructure and structured test capture.

    >- Migrate pod-placement controller/webhook, CEL, and ENoExec operand event producers; preserve reasons/messages and add semantic actions.
    >- Own recorder and delayed-webhook-job lifetimes, with producer shutdown before recorder cleanup.
    >- Grant native event create/patch/update permissions in runtime roles and generated operator RBAC/bundle manifests.
    >- Update native event queries and assertions, including core/v1 compatibility coverage.
    >## Scope and independence

    >Five commits cherry-picked unchanged from #773 (git range-diff confirms identical patches):

    >1. 20a9ee67 → 28341904: recorder infrastructure
    >2. 9026e5a9 → 43775c71: operand migration and producer lifetimes
    >3. c4f29928 → 1c125c18: RBAC
    >4. e263c0f7 → 54fa7c39: native publication/compatibility assertions
    >5. 484e00c3 → 1aa3538c: migration design and historical verification notes
    >Based directly on upstream main (42f9d7e6). Go remains 1.26.7; go.mod, go.sum, and vendor/ are unchanged. Required client-go APIs already exist in this dependency set. No dependency updater, Go bump, Konflux removal, or unrelated CPPC fixes included. #773 remains unchanged and will need cleanup/rebase after this merges.

    >## Verification on this standalone branch

    >- [x] Go 1.26.7, CGO_ENABLED=1, vendored dependencies.

    >- [x] Race-enabled unit tests across pkg/events, pkg/models, pkg/testing/framework, cmd, operator, pod-placement, and ENoExec handler packages (-run '^Test' -skip '^Test(APIs|Operator)$').
    >- [x] Race-enabled focused pod-placement envtest: publishes a gate event, using Kubernetes 1.36.2 assets; verifies native publication and core/v1 conversion.
    >- [x] git diff --check; dependency files/vendor identical to base; all five patches unchanged.
    >- [ ] Full test/build/lint pipeline and deployed-cluster E2E not run to completion. Initial broader test invocation timed out; focused runs above completed successfully.
    >Historical execution notes in the cherry-picked docs describe original development verification, not additional checks performed on this split branch. Native event delivery remains best effort; aggregation may coalesce diagnostic notes.

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

    </details>

    jcpowermac jcpowermac commented on Nov 06, 2026 19:28 UTC
    Reviewer

    Review pass on MULTIARCH-6087 (native events.k8s.io/v1 migration). I also re-verified the PR's own claims: the five patches are byte-identical to #773 (git range-diff + patch diff), go.mod/go.sum/vendor/ are unchanged from base, and go test ./pkg/events plus go vet on the touched non-cgo packages pass.

    What this change does: the three operand binaries (pod-placement controller, gate webhook, ENoExec) stop writing core/v1 events and write native events.k8s.io/v1 events through a new shared recorder in pkg/events, each with a machine-readable action. It also takes ownership of two background lifetimes that used to leak (the recorder broadcaster and the webhook's delayed gate-event jobs) and drains producers before the recorder stops.

    The design is sound. Shutdown ordering checks out against sync.WaitGroup usage in delayedSchedulingGatedEvent/ShutdownEventJobs, watch.Broadcaster.Action returning an error (not panicking) after shutdown, and MultiPool.ReleaseContext being a single 30s budget rather than 16x30s. events/v1 shares etcd storage with core/v1 (pkg/registry/events/rest/storage_events.go reuses pkg/registry/core/event/storage), so kubectl describe and other core/v1 readers keep working - the visibility regression I looked for does not exist.

    One finding that is outside the diff, so it lands here instead of inline:

    Alert runbook command is broken - docs/alerts/enoexec-alert.md:23
    The ENoExec runbook tells on-call to run kubectl get events --field-selector involvedObject.kind=Pod,reportingController=multiarch-tuning-operator. reportingController is not a supported field-selector key on core/v1 events; the apiserver (see pkg/registry/core/event/strategy.go) exposes reportingComponent, mapped to Event.ReportingController. So the request is rejected with "field label not supported" and this command has never returned events. Since this PR is what decides which reporter field is set, please fix it here: kubectl get events -A --field-selector reportingComponent=multiarch-tuning-operator (optionally add reason=ExecFormatError), verified once on a real cluster.

    Inline comments below cover the rest. Nothing here is a blocker on the core migration logic.

    jcpowermac jcpowermac commented on code on Nov 06, 2026 19:28 UTC
    Code Review
    pkg/utils/const.go:1
    @@ -7,6 +7,17 @@ import (
     	"k8s.io/apimachinery/pkg/util/sets"
     )
     
    +const (
    +	EventActionSchedulingGateAdd      = "SchedulingGateAdd"
    +	EventActionSchedulingGateRemove   = "SchedulingGateRemove"
    +	EventActionNodeAffinityUpdate     = "NodeAffinityUpdate"
    +	EventActionNodeAffinitySkip       = "NodeAffinitySkip"

    Minor: the action vocabulary is inconsistent in two places, which matters because the point of this change is queryable action values.

  • ArchitectureAwareGatedPodIgnored is tagged SchedulingGateRemove, but ignoring a pod is not a gate removal.

  • NoSupportedArchitecturesFound gets ImageArchitectureCheck while ImageArchitectureInspectionError gets ImageInspectionFailed, so one inspection outcome is named after the check and the other after the failure.
  • Suggestion: pick one rule (one action per reason is the easiest to reason about) and document it in a comment on this block, so future contributors do not invent a third convention.

    jcpowermac jcpowermac commented on code on Nov 06, 2026 19:28 UTC
    Code Review
    cmd/main.go:1
    @@ -311,24 +335,37 @@ func RunClusterPodPlacementConfigOperandWebHook(mgr ctrl.Manager) {
     	}
     
     	handler := podplacement.NewPodSchedulingGateMutatingWebHook(mgr.GetClient(), mgr.GetAPIReader(), ppcCacheSynced, clientset, mgr.GetScheme(),
    -		mgr.GetEventRecorderFor(utils.OperatorName), pool) //nolint:staticcheck // MULTIARCH-6087: will be fixed with events API migration
    +		recorder, pool)
     	mgr.GetWebhookServer().Register("/add-pod-scheduling-gate", &webhook.Admission{Handler: handler})
    +	return []func(){func() {
    +		if err := handler.ShutdownEventJobs(30 * time.Second); err != nil {
    +			setupLog.Error(err, "timed out draining webhook event jobs; outstanding jobs were canceled and joined")
    +		}
    +		ants.Release()

    ants.Release() releases the package-level default pool, which this code never uses - the webhook runs an ants.MultiPool, and handler.ShutdownEventJobs already calls ReleaseTimeout on it. This call does nothing (it was carried over from the previous cleanup block). Suggest deleting the line.

    jcpowermac jcpowermac commented on code on Nov 06, 2026 19:28 UTC
    Code Review
    internal/controller/podplacement/scheduling_gate_mutating_webhook.go:1
    @@ -291,16 +328,19 @@ func (a *PodSchedulingGateMutatingWebHook) applyCELInWebhook(ctx context.Context
     // has completed its initial sync; pass nil to always allow the apiReader fallback
     // (safe for unit tests that do not wire an informer).
     func NewPodSchedulingGateMutatingWebHook(client client.Client, apiReader client.Reader, ppcCacheSynced func() bool,
    -	clientSet *kubernetes.Clientset, scheme *runtime.Scheme, recorder record.EventRecorder,
    +	clientSet *kubernetes.Clientset, scheme *runtime.Scheme, recorder clientgoevents.EventRecorderLogger,
     	workerPool *ants.MultiPool) *PodSchedulingGateMutatingWebHook {
    +	eventJobsCtx, cancelEventJobs := context.WithCancel(context.Background())

    The webhook builds its event-job context from context.Background() even though RunClusterPodPlacementConfigOperandWebHook(ctx, mgr) already holds the recorder's recordingCtx and could pass it in.

    Today the only thing preventing an in-flight gate event from publishing after broadcaster.Shutdown() is the order of the funcs returned from the constructor in cmd/main.go. That is correct right now, but it is an invisible coupling: an early return []func(){cleanup}, err added later would silently break it, and a post-shutdown publish is dropped with no error surfaced to the caller.

    Suggest deriving eventJobsCtx from the passed ctx so the two lifetimes are linked structurally instead of by list order.

    jcpowermac jcpowermac commented on code on Nov 06, 2026 19:28 UTC
    Code Review
    internal/controller/podplacement/webhook_event_jobs_test.go:1
    @@ -0,0 +1,202 @@
    +package podplacement
    +
    +import (
    +	"context"
    +	"fmt"
    +	"net/http"
    +	"net/http/httptest"
    +	"sync"
    +	"sync/atomic"
    +	"testing"
    +	"time"
    +
    +	. "github.com/onsi/gomega"
    +	corev1 "k8s.io/api/core/v1"
    +	eventsv1 "k8s.io/api/events/v1"
    +	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    +	"k8s.io/client-go/kubernetes"
    +	"k8s.io/client-go/kubernetes/scheme"
    +	"k8s.io/client-go/rest"
    +
    +	"github.com/openshift/multiarch-tuning-operator/pkg/testing/framework"
    +	"github.com/openshift/multiarch-tuning-operator/pkg/utils"
    +	"github.com/panjf2000/ants/v2"
    +)
    +
    +func eventJobWebhook(t *testing.T, handler http.HandlerFunc) *PodSchedulingGateMutatingWebHook {
    +	t.Helper()
    +	server := httptest.NewServer(handler)
    +	t.Cleanup(server.Close)
    +	clientset, err := kubernetes.NewForConfig(&rest.Config{Host: server.URL})
    +	if err != nil {
    +		t.Fatal(err)
    +	}
    +	pool, err := ants.NewMultiPool(1, 8, ants.LeastTasks, ants.WithNonblocking(true))
    +	if err != nil {
    +		t.Fatal(err)
    +	}
    +	wh := NewPodSchedulingGateMutatingWebHook(nil, nil, nil, clientset, scheme.Scheme, nil, pool)
    +	t.Cleanup(func() { _ = wh.ShutdownEventJobs(time.Second) })
    +	return wh
    +}
    +
    +func eventJobPod() *corev1.Pod {
    +	return &corev1.Pod{ObjectMeta: metav1.ObjectMeta{Name: "pod", Namespace: "test-ns"}}
    +}
    +
    +func awaitJobSignal(t *testing.T, signal <-chan struct{}) {
    +	t.Helper()
    +	select {
    +	case <-signal:
    +	case <-time.After(2 * time.Second):
    +		t.Fatal("job did not finish before deadline")
    +	}
    +}
    +
    +func TestWebhookEventJobsDrain(t *testing.T) {
    +	g := NewWithT(t)
    +	recorder, events, cleanup, err := framework.NewTestEventRecorder(t.Context(), scheme.Scheme, utils.OperatorName)
    +	g.Expect(err).NotTo(HaveOccurred())
    +	t.Cleanup(cleanup)
    +	started, release, finished := make(chan struct{}), make(chan struct{}), make(chan struct{})
    +	wh := eventJobWebhook(t, func(w http.ResponseWriter, r *http.Request) {
    +		close(started)
    +		select {
    +		case <-release:
    +		case <-r.Context().Done():
    +			return
    +		}
    +		w.Header().Set("Content-Type", "application/json")
    +		_, _ = fmt.Fprint(w, `{"apiVersion":"v1","kind":"Pod","metadata":{"name":"pod","namespace":"test-ns","uid":"persisted-uid"}}`)
    +		close(finished)
    +	})
    +	wh.recorder = recorder
    +	wh.delayedSchedulingGatedEvent(t.Context(), eventJobPod())
    +	awaitJobSignal(t, started)
    +	done := make(chan error, 1)
    +	go func() { done <- wh.ShutdownEventJobs(time.Second) }()
    +	select {
    +	case err := <-done:
    +		t.Fatalf("shutdown finished before producer: %v", err)
    +	default:
    +	}
    +	close(release)
    +	if err := <-done; err != nil {
    +		t.Fatal(err)
    +	}
    +	awaitJobSignal(t, finished)
    +	var event *eventsv1.Event
    +	g.Eventually(events, 2*time.Second).Should(Receive(&event))
    +	g.Expect(event.Regarding).To(Equal(corev1.ObjectReference{APIVersion: "v1", Kind: "Pod", Name: "pod", Namespace: "test-ns", UID: "persisted-uid"}))
    +	g.Expect(event.Related).To(BeNil())
    +	g.Expect(event.Type).To(Equal(corev1.EventTypeNormal))
    +	g.Expect(event.Reason).To(Equal("ArchAwareSchedGateAdded"))
    +	g.Expect(event.Action).To(Equal("SchedulingGateAdd"))
    +	g.Expect(event.Note).To(Equal(SchedulingGateAddedMsg))
    +	g.Expect(event.ReportingController).To(Equal(utils.OperatorName))
    +}
    +
    +func TestWebhookEventJobsIgnoreAdmissionCancellation(t *testing.T) {
    +	started, release := make(chan struct{}), make(chan struct{})
    +	wh := eventJobWebhook(t, func(w http.ResponseWriter, r *http.Request) {
    +		close(started)
    +		select {
    +		case <-release:
    +		case <-r.Context().Done():
    +			t.Error("admission canceled event job")
    +			return
    +		}
    +		w.Header().Set("Content-Type", "application/json")
    +		_, _ = fmt.Fprint(w, `{"apiVersion":"v1","kind":"Pod","metadata":{"name":"pod","namespace":"test-ns","uid":"persisted-uid"}}`)
    +	})
    +	ctx, cancel := context.WithCancel(t.Context())
    +	wh.delayedSchedulingGatedEvent(ctx, eventJobPod())
    +	awaitJobSignal(t, started)
    +	cancel()
    +	close(release)
    +	if err := wh.ShutdownEventJobs(time.Second); err != nil {
    +		t.Fatal(err)
    +	}
    +}
    +
    +func TestWebhookEventJobsTimeoutCancelsAPIRead(t *testing.T) {
    +	started, canceled := make(chan struct{}), make(chan struct{})
    +	wh := eventJobWebhook(t, func(w http.ResponseWriter, r *http.Request) {
    +		close(started)
    +		<-r.Context().Done()
    +		close(canceled)
    +	})
    +	wh.delayedSchedulingGatedEvent(t.Context(), eventJobPod())
    +	awaitJobSignal(t, started)
    +	if err := wh.ShutdownEventJobs(10 * time.Millisecond); err == nil {
    +		t.Fatal("expected drain timeout")
    +	}
    +	awaitJobSignal(t, canceled)
    +}
    +
    +func TestWebhookEventJobsTimeoutCancelsBackoff(t *testing.T) {
    +	started := make(chan struct{})
    +	var once sync.Once
    +	var calls atomic.Int32
    +	wh := eventJobWebhook(t, func(w http.ResponseWriter, r *http.Request) {
    +		calls.Add(1)
    +		once.Do(func() { close(started) })
    +		http.Error(w, `{"kind":"Status","apiVersion":"v1","status":"Failure","reason":"NotFound","code":404}`, http.StatusNotFound)
    +	})
    +	wh.delayedSchedulingGatedEvent(t.Context(), eventJobPod())
    +	awaitJobSignal(t, started)
    +	if err := wh.ShutdownEventJobs(10 * time.Millisecond); err == nil {
    +		t.Fatal("expected drain timeout")
    +	}
    +	before := calls.Load()
    +	wh.delayedSchedulingGatedEvent(t.Context(), eventJobPod())
    +	if calls.Load() != before {
    +		t.Fatal("new job admitted after shutdown")
    +	}
    +}
    +
    +func TestWebhookEventJobsRejectedSubmission(t *testing.T) {
    +	wh := eventJobWebhook(t, func(http.ResponseWriter, *http.Request) { t.Error("rejected job made an API request") })
    +	if err := wh.workerPool.ReleaseTimeout(time.Second); err != nil {
    +		t.Fatal(err)
    +	}
    +	wh.delayedSchedulingGatedEvent(t.Context(), eventJobPod())
    +	done := make(chan struct{})
    +	go func() { _ = wh.ShutdownEventJobs(time.Second); close(done) }()
    +	awaitJobSignal(t, done)
    +}
    +
    +func TestWebhookEventJobsAdmissionShutdownRace(t *testing.T) {
    +	var calls atomic.Int32
    +	wh := eventJobWebhook(t, func(w http.ResponseWriter, r *http.Request) {
    +		calls.Add(1)
    +		w.Header().Set("Content-Type", "application/json")
    +		_, _ = fmt.Fprint(w, `{"apiVersion":"v1","kind":"Pod","metadata":{"name":"pod","namespace":"test-ns","uid":"persisted-uid"}}`)
    +	})
    +	var submitters sync.WaitGroup
    +	for i := 0; i < 32; i++ {
    +		submitters.Go(func() { wh.delayedSchedulingGatedEvent(t.Context(), eventJobPod()) })
    +	}
    +	if err := wh.ShutdownEventJobs(time.Second); err != nil {
    +		t.Fatal(err)
    +	}
    +	submitters.Wait()
    +	before := calls.Load()
    +	wh.delayedSchedulingGatedEvent(t.Context(), eventJobPod())
    +	if calls.Load() != before {
    +		t.Fatal("late submission reached API")
    +	}
    +}
    +
    +func TestWebhookEventJobsShutdownIsIdempotent(t *testing.T) {

    This test mostly exercises sync.Once (concurrent ShutdownEventJobs callers return the stored result) rather than the drain logic. TestWebhookEventJobsAdmissionShutdownRace above already covers the interesting concurrency case - 32 submitters racing shutdown. Suggest keeping that one and dropping this, unless you specifically want to pin the sync.Once contract.

    jcpowermac jcpowermac commented on code on Nov 06, 2026 19:28 UTC
    Code Review
    docs/superpowers/specs/2026-11-02-multiarch-6087-events-api-migration-design.md:1
    @@ -0,0 +1,161 @@
    +# MULTIARCH-6087: native Kubernetes events API migration
    +
    +Status: design draft for approval; application changes and test execution are not part of this document-writing task.

    Question on repo content rather than code: this file (and the plan document next to it) are agent-session artifacts - "design draft for approval", task checklists, historical verification notes. They are already out of date relative to the merged code.

    The repo's convention for design documents is docs/enhancements/MTO-000N.md, and the rest of this material belongs in the PR description or the Jira issue. Suggest either dropping both files or rewriting the durable parts as docs/enhancements/MTO-0006-*.md. Currently this adds 375 lines that contradict the code they describe.

    jcpowermac jcpowermac commented on code on Nov 06, 2026 19:28 UTC
    Code Review
    docs/superpowers/plans/2026-11-02-multiarch-6087-events-api-migration.md:1
    @@ -0,0 +1,214 @@
    +# MULTIARCH-6087 Events API Migration Implementation Plan
    +
    +> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.

    Same point as on the design document: this is a working plan for a specific agent workflow (superpowers:subagent-driven-development), not repository documentation. It ships instructions to "agentic workers" and a task checklist that no longer matches the branch. Suggest removing it from the tree and keeping the rationale in the PR/Jira.

    AnnaZivkovic AnnaZivkovic commented on Nov 06, 2026 22:45 UTC
    Author

    /retest

    AnnaZivkovic AnnaZivkovic commented on Nov 09, 2026 17:14 UTC
    Author

    /test ocp416-e2e-aws
    /test ocp420-e2e-aws

    jcpowermac jcpowermac commented on Nov 09, 2026 17:14 UTC
    Contributor

    /lgtm

    openshift-ci[bot] openshift-ci[bot] commented on Nov 09, 2026 17:14 UTC
    Bot

    [APPROVALNOTIFIER] This PR is APPROVED

    This pull-request has been approved by: <a href="https://github.com/outrigger-project/multiarch-tuning-operator/pull/776#" title="Author self-approved">AnnaZivkovic</a>, <a href="https://github.com/outrigger-project/multiarch-tuning-operator/pull/776#issuecomment-6746471157" title="LGTM">jcpowermac</a>

    The full list of commands accepted by this bot can be found here.

    The pull request process is described here

    <details >
    Needs approval from an approver in each of these files:

  • ~~OWNERS~~ [AnnaZivkovic,jcpowermac]
  • Approvers can indicate their approval by writing /approve in a comment
    Approvers can cancel approval by writing /approve cancel in a comment
    </details>
    <!-- META={"approvers":[]} -->

    AnnaZivkovic AnnaZivkovic commented on Nov 09, 2026 21:45 UTC
    Author

    /test unit

    AnnaZivkovic AnnaZivkovic commented on Nov 10, 2026 00:05 UTC
    Author

    /test ocp418-e2e-azure

    Reviewers
    Assignees
    AnnaZivkovic AnnaZivkovic
    Labels
    risk: low confidence: 87.0% 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: 94.7% (HIGH) · Higher = larger blast radius
    94.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: 87.0% · Lower = rushed or shallow review
    87.0%
    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: 12.4% · Safe to merge
    12.4%