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
Conversation
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>
b1fbd3b to
8a10530
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.