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

[Heartbeat] Report first synth error on summary #24194

Merged
merged 1 commit into from
Feb 24, 2021

Conversation

andrewvc
Copy link
Contributor

@andrewvc andrewvc commented Feb 23, 2021

Fixes elastic/kibana#92066

Prior to this for the summary.error field for browser events we'd report the last encountered error. We now report the first. This
prevents the issue where on a failing run the synthetics library considers an exit status of 1 to be an error. This will always be the
case when a step fails, meaning that the last error will always be a status code error stepping on the actual step error.

No changelog required because this bug should only be present in 7.12

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
    - [ ] I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
    - [ ] I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

How to test this PR locally

Run synthetics with a failing test against this branch. In the Uptime UI, on the monitor overview page, the error shown should be the first failing step.

Related issues

Use cases

Screenshots

Logs

Fixes elastic/kibana#92066

Prior to this for the summary.error field for browser events we'd
report the last encountered error. We now report the first. This
prevents the issue where on a failing run the synthetics library
considers an exit status of 1 to be an error. This will always be the
case when a step fails, meaning that the last error will always be a
status code error stepping on the actual step error.
@andrewvc andrewvc self-assigned this Feb 23, 2021
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Feb 23, 2021
@andrewvc andrewvc requested a review from blakerouse February 23, 2021 20:05
@elasticmachine
Copy link
Collaborator

💚 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: Pull request #24194 opened

  • Start Time: 2021-02-23T20:05:05.815+0000

  • Duration: 31 min 14 sec

  • Commit: 04eecab

Test stats 🧪

Test Results
Failed 0
Passed 38
Skipped 0
Total 38

Trends 🧪

Image of Build Times

Image of Tests

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 38
Skipped 0
Total 38

@andresrc andresrc added the Team:obs-ds-hosted-services Label for the Observability Hosted Services team label Feb 23, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/uptime (Team:Uptime)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Feb 23, 2021
Copy link
Contributor

@blakerouse blakerouse left a comment

Choose a reason for hiding this comment

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

Simple enough, looks good.

@andrewvc andrewvc merged commit c5821d9 into elastic:master Feb 24, 2021
@andrewvc andrewvc deleted the fix-browser-exit-status-err branch February 24, 2021 20:15
andrewvc added a commit to andrewvc/beats that referenced this pull request Feb 24, 2021
Fixes elastic/kibana#92066

Prior to this for the summary.error field for browser events we'd
report the last encountered error. We now report the first. This
prevents the issue where on a failing run the synthetics library
considers an exit status of 1 to be an error. This will always be the
case when a step fails, meaning that the last error will always be a
status code error stepping on the actual step error.

(cherry picked from commit c5821d9)
andrewvc added a commit to andrewvc/beats that referenced this pull request Feb 24, 2021
Fixes elastic/kibana#92066

Prior to this for the summary.error field for browser events we'd
report the last encountered error. We now report the first. This
prevents the issue where on a failing run the synthetics library
considers an exit status of 1 to be an error. This will always be the
case when a step fails, meaning that the last error will always be a
status code error stepping on the actual step error.

(cherry picked from commit c5821d9)
andrewvc added a commit that referenced this pull request Feb 25, 2021
Fixes elastic/kibana#92066

Prior to this for the summary.error field for browser events we'd
report the last encountered error. We now report the first. This
prevents the issue where on a failing run the synthetics library
considers an exit status of 1 to be an error. This will always be the
case when a step fails, meaning that the last error will always be a
status code error stepping on the actual step error.

(cherry picked from commit c5821d9)
andrewvc added a commit that referenced this pull request Feb 25, 2021
Fixes elastic/kibana#92066

Prior to this for the summary.error field for browser events we'd
report the last encountered error. We now report the first. This
prevents the issue where on a failing run the synthetics library
considers an exit status of 1 to be an error. This will always be the
case when a step fails, meaning that the last error will always be a
status code error stepping on the actual step error.

(cherry picked from commit c5821d9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Heartbeat Team:obs-ds-hosted-services Label for the Observability Hosted Services team v7.12.0 v7.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Uptime] Synthetic monitor is displaying as failed, when all steps are displaying as complete
4 participants