Skip to content

Assert no errors are in pipeline tests#290

Merged
mtojek merged 3 commits intoelastic:masterfrom
mtojek:assert-no-errors
Mar 15, 2021
Merged

Assert no errors are in pipeline tests#290
mtojek merged 3 commits intoelastic:masterfrom
mtojek:assert-no-errors

Conversation

@mtojek
Copy link
Copy Markdown
Contributor

@mtojek mtojek commented Mar 15, 2021

Issue: #281

@mtojek mtojek self-assigned this Mar 15, 2021
@mtojek mtojek requested a review from ycombinator March 15, 2021 10:30
@mtojek
Copy link
Copy Markdown
Contributor Author

mtojek commented Mar 15, 2021

/test

@elasticmachine
Copy link
Copy Markdown
Collaborator

elasticmachine commented Mar 15, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: mtojek commented: /test

  • Start Time: 2021-03-15T15:34:58.560+0000

  • Duration: 19 min 32 sec

  • Commit: 760a83d

Test stats 🧪

Test Results
Failed 0
Passed 315
Skipped 1
Total 316

Trends 🧪

Image of Build Times

Image of Tests

for _, event := range result.events {
err := checkErrorMessage(event)
if err != nil {
multiErr = append(multiErr, err)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we continue here? IOW, should we check fields in the event if we find the error.message field?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hmm... maybe you're right. Actually all other fields can be wrong, e.g. should be removed but weren't due to an error.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@mtojek mtojek requested a review from ycombinator March 15, 2021 14:49
Copy link
Copy Markdown
Contributor

@ycombinator ycombinator left a comment

Choose a reason for hiding this comment

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

LGTM.

@mtojek
Copy link
Copy Markdown
Contributor Author

mtojek commented Mar 15, 2021

/test

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.

3 participants