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

[Uptime] Unskip alert functional test #101562

Merged
merged 5 commits into from
Jun 10, 2021
Merged

Conversation

shahzad31
Copy link
Contributor

@shahzad31 shahzad31 commented Jun 8, 2021

Summary

Fix #88177

Unskip uptime functional tests

Flaky test run https://kibana-ci.elastic.co/job/kibana+flaky-test-suite-runner/1615/

@shahzad31 shahzad31 changed the title update [Uptime] Unskip alert functional test Jun 8, 2021
@shahzad31 shahzad31 requested a review from justinkambic June 8, 2021 19:26
@shahzad31 shahzad31 added release_note:skip Skip the PR/issue when compiling release notes v7.14.0 v8.0.0 labels Jun 8, 2021
@shahzad31 shahzad31 marked this pull request as ready for review June 8, 2021 19:26
@shahzad31 shahzad31 requested a review from a team as a code owner June 8, 2021 19:26
Copy link
Contributor

@justinkambic justinkambic left a comment

Choose a reason for hiding this comment

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

Some minor nit, thanks for taking care of this.

@@ -7,10 +7,10 @@

import expect from '@kbn/expect';
import { FtrProviderContext } from '../../ftr_provider_context';
const delay = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we don't need to maintain our own delay function. bluebird exports one and it's used in other places.

@@ -124,7 +126,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
expect(timerangeUnit).to.be('h');
expect(timerangeCount).to.be(1);
expect(JSON.stringify(filters)).to.eql(
`{"url.port":["5678"],"observer.geo.name":["mpls"],"monitor.type":["http"],"tags":[]}`
`{"tags":[],"url.port":["5678"],"observer.geo.name":["mpls"],"monitor.type":["http"]}`
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a need for this change or just the result of doing some testing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, seems like the order has changed.

schemes: alertParams.filters?.['monitor.type'] ?? [],
})
);
if (!window.location.pathname.includes('/app/uptime')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@botelastic botelastic bot added the Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability label Jun 9, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

@shahzad31 shahzad31 requested a review from justinkambic June 10, 2021 07:46
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
uptime 1.1MB 1.1MB +46.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Contributor

@justinkambic justinkambic left a comment

Choose a reason for hiding this comment

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

LGTM

@shahzad31 shahzad31 added the auto-backport Deprecated - use backport:version if exact versions are needed label Jun 10, 2021
@shahzad31 shahzad31 merged commit ddccace into elastic:master Jun 10, 2021
@shahzad31 shahzad31 deleted the flaky-lert-test branch June 10, 2021 18:01
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jun 10, 2021
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.14.0 v8.0.0
Projects
None yet
4 participants