remove --enable-export-aggregation and related flags #5988
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 264 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.334
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5988"
general
weight: 0.35
mtardy
Description
--enable-export-aggregationdoesn't do anything useful. The aggregator'shandleEventonly has adefaultcase that sends each event unchanged, so itscache is never filled and
AggregationInfois never set. Turning it on onlyadds a goroutine and a channel hop to the export path, and events can be
dropped when the aggregator's buffer fills up.
This PR removes the feature:
--enable-export-aggregation,--export-aggregation-window-sizeand--export-aggregation-buffer-size.pkg/aggregatorand send events directly inGetEvents.AggregationOptions,AggregationInfo,GetEventsRequest.aggregation_optionsandGetEventsResponse.aggregation_info, and reserve their field numbers (3 and1002) and names.
Compatibility (also covered in
contrib/upgrade-notes/latest.md):tetragon.extraArgsortetragon.argsOverride, now stops the agent fromstarting.
tetragon-configConfigMap) or aTETRAGON_environment variable has noeffect.
aggregation_optionsfrom older clientsis ignored as an unknown field, and
aggregation_infowas never set. Onlycode that references the removed Go types or fields needs updating.
Note for reviewers: the
lint-protojob'scheck-breakingstep is expectedto fail, because the API removal is intentional.
make protogenstops at thesame check, so the generated files were produced with every
protogenstepexcept the breaking check. The commit message lists the exact commands.
Changelog
``
release-note--enable-export-aggregationRemoved the
,--export-aggregation-window-sizeand--export-aggregation-buffer-sizeflags and theAggregationOptions/AggregationInfogRPC API fields. Aggregation never had any effect. See the upgrade notes.
``