Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Adding hubble metrics E2E tests. #1137

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft

Conversation

jimassa
Copy link
Contributor

@jimassa jimassa commented Dec 12, 2024

Description

Please provide a brief description of the changes made in this pull request.

This PR adds E2E tests for hubble metrics.

Currently the following metrics/labels are not being generated and I am investigating why.
dop reason metrics
SYNACK label of TCP metrics.
to-endpoint and from-endpoint hubble flow metrics.

Related Issue

If this pull request is related to any issue, please mention it here. Additionally, make sure that the issue is assigned to you before submitting this pull request.

Checklist

  • I have read the contributing documentation.
  • I signed and signed-off the commits (git commit -S -s ...). See this documentation on signing commits.
  • I have correctly attributed the author(s) of the code.
  • I have tested the changes locally.
  • I have followed the project's style guidelines.
  • I have updated the documentation, if necessary.
  • I have added tests, if applicable.

Screenshots (if applicable) or Testing Completed

Please add any relevant screenshots or GIFs to showcase the changes made.

Additional Notes

Add any additional notes or context about the pull request here.


Please refer to the CONTRIBUTING.md file for more information on how to contribute to this project.

@jimassa jimassa requested a review from a team as a code owner December 12, 2024 19:48
@jimassa jimassa requested a review from Copilot December 12, 2024 20:23
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 16 changed files in this pull request and generated 1 suggestion.

Files not reviewed (11)
  • test/e2e/common/validate-metric.go: Evaluated as low risk
  • test/e2e/framework/constants/hubble.go: Evaluated as low risk
  • test/e2e/framework/constants/networking.go: Evaluated as low risk
  • test/e2e/framework/kubernetes/install-hubble-helm.go: Evaluated as low risk
  • test/e2e/framework/scaletest/validate-options.go: Evaluated as low risk
  • test/e2e/jobs/jobs.go: Evaluated as low risk
  • test/e2e/retina_e2e_test.go: Evaluated as low risk
  • test/e2e/scenarios/hubble/dns/labels.go: Evaluated as low risk
  • test/e2e/scenarios/hubble/dns/scenario.go: Evaluated as low risk
  • test/e2e/scenarios/hubble/drop/labels.go: Evaluated as low risk
  • test/e2e/scenarios/hubble/drop/scenario.go: Evaluated as low risk
Comments skipped due to low confidence (2)

test/e2e/scenarios/hubble/tcp/labels.go:17

  • The label name 'constants.HubbleIPsRetunedLabel' is misspelled. It should be 'constants.HubbleIPsReturnedLabel'.
constants.HubbleIPsRetunedLabel: "0",

test/e2e/scenarios/hubble/flow/labels.go:46

  • The commented-out lines suggest there might be an issue with label generation. This should be investigated further to ensure all expected labels are generated.
// validHubbleFlowLabelsToNetwork,

test/e2e/scenarios/hubble/flow/scenario.go Show resolved Hide resolved
@jimassa jimassa marked this pull request as draft December 12, 2024 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant