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

Add emitting of e2e test instance metrics #8089

Merged
merged 1 commit into from
May 2, 2024
Merged

Conversation

d8660091
Copy link
Member

@d8660091 d8660091 commented May 1, 2024

Issue #, if available:

Description of changes: E2e test results nowadays doesn't provide good observability. This change is aimed to start addressing this issue by adding cloudwatch metrics. It can further allow us to auto cut ticket based on the new e2e test metrics.

Testing (if applicable): manually triggered the e2e test and verified new metrics were emitted correctly

Documentation added/planned (if applicable):

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@eks-distro-bot eks-distro-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 1, 2024
Copy link

codecov bot commented May 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.44%. Comparing base (305e2bb) to head (8199731).
Report is 19 commits behind head on main.

❗ Current head 8199731 differs from pull request most recent head f4b651d. Consider uploading reports for the commit f4b651d to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8089   +/-   ##
=======================================
  Coverage   73.44%   73.44%           
=======================================
  Files         577      577           
  Lines       35878    35878           
=======================================
  Hits        26351    26351           
  Misses       7861     7861           
  Partials     1666     1666           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@d8660091
Copy link
Member Author

d8660091 commented May 1, 2024

/cherry-pick release-0.19

@eks-distro-pr-bot
Copy link
Contributor

@d8660091: once the present PR merges, I will cherry-pick it on top of release-0.19 in a new PR and assign it to you.

In response to this:

/cherry-pick release-0.19

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 kubernetes/test-infra repository.

}

logger.Info("Publishing instance test result metrics")
erroredCount, failedCount, succeededCount := 0, 0, 0
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a comment about why these counts are always either 0 or 1?

Copy link
Member Author

Choose a reason for hiding this comment

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

my pleasure

}

func getProviderName(testRe string) string {
providerRe := regexp.MustCompile(`Test([A-Z].*?)[A-Z]`)
Copy link
Member

@cxbrowne1207 cxbrowne1207 May 2, 2024

Choose a reason for hiding this comment

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

Does this regex work for the vsphere and cloudstack test names? For example TestVSphereKubernetes128To129StackedEtcdRedHatUpgrade
TestCloudStackKubernetes128To129RedhatMultipleFieldsUpgrade

Copy link
Member Author

Choose a reason for hiding this comment

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

it doesn't, good catch. I have updated the regexp with verification: https://go.dev/play/p/Ry5fK_qW64F

Copy link
Member Author

Choose a reason for hiding this comment

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

@cxbrowne1207
Copy link
Member

cxbrowne1207 commented May 2, 2024

/lgtm

@d8660091
Copy link
Member Author

d8660091 commented May 2, 2024

/approve

@eks-distro-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: d8660091

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

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@eks-distro-bot eks-distro-bot merged commit 53af650 into aws:main May 2, 2024
10 checks passed
@eks-distro-pr-bot
Copy link
Contributor

@d8660091: new pull request created: #8098

In response to this:

/cherry-pick release-0.19

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 kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants