-
Notifications
You must be signed in to change notification settings - Fork 4
Conversation
@@ -0,0 +1,17 @@ | |||
## :bug: Flaky test report |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,17 @@ | |||
## Flaky Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jenkins run the tests please |
…orting * upstream/master: docs: update CHANGELOG.md [maven-release-plugin] prepare for next development iteration [maven-release-plugin] prepare release v1.1.148 Fix formatting in flake report (#763) slack message for no push events (#762) ci: add workers to the infra test (#759) Update github-comment-markdown.template (#758) [DOCS] Add badge details (#757)
def value = sh(label: 'Create GitHub issue', script: "hub issue create ${title} ${description} ${assign} ${labels} ${milestone}", returnStdout: returnStdout).trim() | ||
if(returnStdout) { | ||
return value | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably we don't need this but always returning the stdout
There is a dependency regarding the The reason for using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯 Nice work!
githubPrComment(message: msg, commentFile: 'flakey.id') | ||
|
||
def labels = 'flaky-test,ci-reported' | ||
def tests = lookForGitHubIssues(flakeyList: ret, labelsFilter: labels.split(',')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are mixing two spellings here. We have flakey
and flaky
. I think we should standarize on flaky
wherever possible.
def issue = v | ||
if (!v?.trim()) { | ||
def issueDescription = buildTemplate([ | ||
"template": 'flakey-github-issue.template', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment above flaky
versus flakey
…orting * upstream/master: Return PR URL with githubCreatePullRequest step (#765)
Co-authored-by: cachedout <mike.place@elastic.co>
…-library into feature/flaky-reporting * 'feature/flaky-reporting' of github.com:v1v/apm-pipeline-library: Apply suggestions from code review
I just updated all the new references from |
What does this PR do?
Support flaky test reporting, for such it's required to:
lookForGitHubIssues
to query the open GitHub issues that got a match with the given test-failures.githubCreateIssue
to return the issue that has been created.errorDetails
for the test errors.gh
wrapper.githubIssues
to query all the open GitHub issues with thegh
wrapper.Important
flaky-test,ci-reported
.flaky-test,ci-reported
.contains
.gh
has been configured to retrieve up to 200 GH issues.Why is it important?
Provide more information when tests are failing and whether they were reported as flakey too.
Related issues
Relates to #753
Tasks
lookForGitHubIssues
Screenshots
When there are matching flakey tests:
When there is an issue creation regarding the flakey test:
Tests
ITs for
gh