Skip to content

Automated cherry pick of #7741: Fix flaky FlowAggregator E2E tests by checking metrics#7777

Open
petertran-avgo wants to merge 1 commit intoantrea-io:release-2.5from
petertran-avgo:automated-cherry-pick-of-#7741-upstream-release-2.5
Open

Automated cherry pick of #7741: Fix flaky FlowAggregator E2E tests by checking metrics#7777
petertran-avgo wants to merge 1 commit intoantrea-io:release-2.5from
petertran-avgo:automated-cherry-pick-of-#7741-upstream-release-2.5

Conversation

@petertran-avgo
Copy link
Contributor

Cherry pick of #7741 on release-2.5.

#7741: Fix flaky FlowAggregator E2E tests by checking metrics

For details on the cherry pick process, see the cherry pick requests page.

@petertran-avgo petertran-avgo added kind/cherry-pick Categorizes issue or PR as related to the cherry-pick of a bug fix from the main branch to a release kind/cherry-pick-clean Categorizes a cherry-pick PR where patches applied cleanly without conflicts labels Feb 12, 2026
@antoninbas
Copy link
Contributor

@petertran-avgo all Kind jobs are failing?

… (antrea-io#7741)

The FlowAggregator SecureConnection tests were flaky. Flows took a
long time to arrive in the FlowAggregator. When they did, it was only
1 flow instead of the expected 3. The Delta count and Total count were
always equal due to the FlowExporter buffering the flow data before
sending it.

This was caused by the fact that FlowAggregator was redeployed for
each subtest. The Agent was slow to reconnect to the freshly deployed
FlowAggregator. Thus, the FlowExporter didn't match the expected timings
of the tests.

The test setup was updated to check FlowAggregator metrics after each
redeployment. This ensures the FlowExporter has reconnected to the new
FlowAggregator before testing.

Signed-off-by: Peter Tran <peter-pt.tran@broadcom.com>
@petertran-avgo petertran-avgo force-pushed the automated-cherry-pick-of-#7741-upstream-release-2.5 branch from b1fbd3b to 8a10530 Compare March 2, 2026 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/cherry-pick Categorizes issue or PR as related to the cherry-pick of a bug fix from the main branch to a release kind/cherry-pick-clean Categorizes a cherry-pick PR where patches applied cleanly without conflicts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants