-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Fix incorrect results in the flaky tests reporter #40567
Conversation
f1f7980
to
bcd43c7
Compare
Size Change: -132 B (0%) Total Size: 1.23 MB
ℹ️ View Unchanged
|
.github/report-flaky-tests/index.js
Outdated
`(?<=${ TEST_RESULT.close })\n(?:\.\.\.\n)?(?=${ TEST_RESULT.open })` | ||
) | ||
); | ||
let testResultsList = body.includes( TEST_RESULTS_LIST.open ) |
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.
Due to the previous error, some issues have been updated to an incorrect state without the open tag of the results list. We check here and discard the incorrect errors to start a new one.
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.
Makes sense to me.
What?
Fix incorrect results in the flaky tests reporter introduced in #38570.
Why?
It's causing the flaky test reports to have wrong formatted error messages.
How?
By fixing a duplicate function name (
renderTestResults
), which is valid in JavaScript and I totally missed it... 😓Testing Instructions
Unfortunately, it can't be easily tested.