Skip to content

[src/dev/build] typescript-ify and convert tests to jest#72525

Merged
spalger merged 11 commits intoelastic:masterfrom
spalger:tsify/dev-build-lib
Jul 23, 2020
Merged

[src/dev/build] typescript-ify and convert tests to jest#72525
spalger merged 11 commits intoelastic:masterfrom
spalger:tsify/dev-build-lib

Conversation

@spalger
Copy link
Copy Markdown
Contributor

@spalger spalger commented Jul 20, 2020

Before working on #71881 I'd like to "pay back" some debt and finish converting the src/dev/build module to TypeScript and Jest. The functionality is exactly the same, we just have a little less untyped code and fewer mocha tests.

Related: #72496

@spalger spalger added Team:Operations Kibana-Operations Team v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.9.0 v7.8.1 labels Jul 20, 2020
@spalger spalger marked this pull request as ready for review July 20, 2020 20:02
@spalger spalger requested a review from a team as a code owner July 20, 2020 20:02
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@spalger spalger marked this pull request as draft July 21, 2020 06:34
@spalger
Copy link
Copy Markdown
Contributor Author

spalger commented Jul 21, 2020

Have some TS issues to figure out...

@spalger spalger force-pushed the tsify/dev-build-lib branch from 1b2d2c9 to d1c9ed5 Compare July 21, 2020 16:58
@spalger spalger marked this pull request as ready for review July 22, 2020 17:37
Copy link
Copy Markdown
Contributor

@jbudz jbudz left a comment

Choose a reason for hiding this comment

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

I took a look through the changes, verified the test counts line up in jest, and pulled down the x-pack tar build. If this targets 7.9.0 I want to do a smoke test of all of the builds, I'm okay now if it's 7.9.1.

I'm out of CPU and can run a build EOD , and probably run a million mac updates - or if someone else gives a verbal works for me. Might be able to piece it together earlier, I'll boot the mac up now.

Copy link
Copy Markdown
Member

@tylersmalley tylersmalley left a comment

Choose a reason for hiding this comment

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

LGTM - reviewed and manually tested the Linux build.

import { ToolingLog } from '@kbn/dev-utils';

import { Config, createRunner } from './lib';
import * as Tasks from './tasks';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

@kibanamachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-xpack-agent / X-Pack Accessibility Tests.x-pack/test/accessibility/apps/uptime·ts.uptime settings page

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 6 times on tracked branches: https://github.com/elastic/kibana/issues/72994

[00:00:00]       │
[00:02:00]         └-: uptime
[00:02:00]           └-> "before all" hook
[00:02:00]           └-> "before all" hook
[00:02:00]             │ info [uptime/blank] Loading "mappings.json"
[00:02:00]             │ info [uptime/blank] Loading "data.json"
[00:02:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1595520179418447791] [heartbeat-8-generated-test] creating index, cause [api], templates [], shards [1]/[1]
[00:02:00]             │ info [uptime/blank] Created index "heartbeat-8-generated-test"
[00:02:00]             │ debg [uptime/blank] "heartbeat-8-generated-test" settings undefined
[00:02:01]           └-> overview page
[00:02:01]             └-> "before each" hook: global before each
[00:02:01]             └-> "before each" hook
[00:02:01]               │ debg TestSubjects.exists(uptimeSettingsToOverviewLink)
[00:02:01]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeSettingsToOverviewLink"]') with timeout=0
[00:02:01]               │ debg --- retry.tryForTime error: [data-test-subj="uptimeSettingsToOverviewLink"] is not displayed
[00:02:01]               │ debg TestSubjects.exists(uptimeOverviewPage)
[00:02:01]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeOverviewPage"]') with timeout=0
[00:02:01]               │ debg --- retry.tryForTime error: [data-test-subj="uptimeOverviewPage"] is not displayed
[00:02:02]               │ debg navigating to uptime url: http://localhost:61121/app/uptime
[00:02:02]               │ debg navigate to: http://localhost:61121/app/uptime
[00:02:02]               │ debg browser[INFO] http://localhost:61121/app/uptime?_t=1595522437470 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:02:02]               │
[00:02:02]               │ debg browser[INFO] http://localhost:61121/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:02]               │ debg ... sleep(700) start
[00:02:03]               │ debg ... sleep(700) end
[00:02:03]               │ debg returned from get, calling refresh
[00:02:03]               │ debg browser[INFO] http://localhost:61121/app/uptime?_t=1595522437470 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:02:03]               │
[00:02:03]               │ debg browser[INFO] http://localhost:61121/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:03]               │ debg currentUrl = http://localhost:61121/app/uptime
[00:02:03]               │          appUrl = http://localhost:61121/app/uptime
[00:02:03]               │ debg TestSubjects.find(kibanaChrome)
[00:02:03]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:02:05]               │ debg browser[INFO] http://localhost:61121/35070/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-07-23T16:40:39Z
[00:02:05]               │        Adding connection to http://localhost:61121/elasticsearch
[00:02:05]               │
[00:02:05]               │      "
[00:02:05]               │ debg ... sleep(501) start
[00:02:05]               │ debg ... sleep(501) end
[00:02:05]               │ debg in navigateTo url = http://localhost:61121/app/uptime
[00:02:05]               │ debg TestSubjects.exists(statusPageContainer)
[00:02:05]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:02:05]               │ERROR browser[SEVERE] http://localhost:61121/35070/bundles/plugin/uptime/uptime.plugin.js 0:18092 "API /api/uptime/monitor/list is not returning expected response, Invalid value \"undefined\" supplied to \"summaries.state.summaryPings.tls.server.x509.issuer.distinguished_name\",Invalid value \"undefined\" supplied to \"summaries.state.summaryPings.tls.server.x509.subject.distinguished_name\",Invalid value \"undefined\" supplied to \"summaries.state.summaryPings.tls.server.x509.serial_number\",Invalid value \"undefined\" supplied to \"summaries.state.summaryPings.tls.server.x509.public_key_algorithm\",Invalid value \"undefined\" supplied to \"summaries.state.summaryPings.tls.server.x509.signature_algorithm\",Invalid value \"undefined\" supplied to \"summaries.state.summaryPings.tls.server.x509.not_after\",Invalid value \"undefined\" supplied to \"summaries.state.summaryPings.tls.server.x509.not_before\" for response" Object
[00:02:08]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:02:08]               │ debg isGlobalLoadingIndicatorVisible
[00:02:08]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:02:08]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:02:10]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:02:10]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:02:10]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:02:10]               │ debg TestSubjects.exists(uptimeOverviewPage)
[00:02:10]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeOverviewPage"]') with timeout=2000
[00:02:11]             └- ✓ pass  (582ms) "uptime overview page"
[00:02:11]           └-> overview page with expanded monitor detail
[00:02:11]             └-> "before each" hook: global before each
[00:02:11]             └-> "before each" hook
[00:02:11]               │ debg TestSubjects.exists(uptimeSettingsToOverviewLink)
[00:02:11]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeSettingsToOverviewLink"]') with timeout=0
[00:02:11]               │ debg --- retry.tryForTime error: [data-test-subj="uptimeSettingsToOverviewLink"] is not displayed
[00:02:11]               │ debg TestSubjects.exists(uptimeOverviewPage)
[00:02:11]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeOverviewPage"]') with timeout=0
[00:02:11]             │ debg TestSubjects.click(xpack.uptime.monitorList.a11yTestMonitor.expandMonitorDetail)
[00:02:11]             │ debg Find.clickByCssSelector('[data-test-subj="xpack.uptime.monitorList.a11yTestMonitor.expandMonitorDetail"]') with timeout=10000
[00:02:11]             │ debg Find.findByCssSelector('[data-test-subj="xpack.uptime.monitorList.a11yTestMonitor.expandMonitorDetail"]') with timeout=10000
[00:02:12]             │ debg TestSubjects.click(xpack.uptime.monitorList.actionsPopover.a11yTestMonitor)
[00:02:12]             │ debg Find.clickByCssSelector('[data-test-subj="xpack.uptime.monitorList.actionsPopover.a11yTestMonitor"]') with timeout=10000
[00:02:12]             │ debg Find.findByCssSelector('[data-test-subj="xpack.uptime.monitorList.actionsPopover.a11yTestMonitor"]') with timeout=10000
[00:02:12]             └- ✓ pass  (527ms) "uptime overview page with expanded monitor detail"
[00:02:12]           └-> overview alert popover controls
[00:02:12]             └-> "before each" hook: global before each
[00:02:12]             └-> "before each" hook
[00:02:12]               │ debg TestSubjects.exists(uptimeSettingsToOverviewLink)
[00:02:12]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeSettingsToOverviewLink"]') with timeout=0
[00:02:12]               │ debg --- retry.tryForTime error: [data-test-subj="uptimeSettingsToOverviewLink"] is not displayed
[00:02:13]               │ debg TestSubjects.exists(uptimeOverviewPage)
[00:02:13]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeOverviewPage"]') with timeout=0
[00:02:13]             │ debg TestSubjects.click(xpack.uptime.alertsPopover.toggleButton)
[00:02:13]             │ debg Find.clickByCssSelector('[data-test-subj="xpack.uptime.alertsPopover.toggleButton"]') with timeout=10000
[00:02:13]             │ debg Find.findByCssSelector('[data-test-subj="xpack.uptime.alertsPopover.toggleButton"]') with timeout=10000
[00:02:13]             │ debg TestSubjects.exists(xpack.uptime.openAlertContextPanel)
[00:02:13]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="xpack.uptime.openAlertContextPanel"]') with timeout=2500
[00:02:13]             │ debg TestSubjects.click(xpack.uptime.openAlertContextPanel)
[00:02:13]             │ debg Find.clickByCssSelector('[data-test-subj="xpack.uptime.openAlertContextPanel"]') with timeout=10000
[00:02:13]             │ debg Find.findByCssSelector('[data-test-subj="xpack.uptime.openAlertContextPanel"]') with timeout=10000
[00:02:13]             │ debg --- retry.tryForTime error: stale element reference: element is not attached to the page document
[00:02:13]             │        (Session info: headless chrome=84.0.4147.89)
[00:02:14]             └- ✓ pass  (981ms) "uptime overview alert popover controls"
[00:02:14]           └-> detail page
[00:02:14]             └-> "before each" hook: global before each
[00:02:14]             └-> "before each" hook
[00:02:14]               │ debg TestSubjects.exists(uptimeSettingsToOverviewLink)
[00:02:14]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeSettingsToOverviewLink"]') with timeout=0
[00:02:14]               │ debg --- retry.tryForTime error: [data-test-subj="uptimeSettingsToOverviewLink"] is not displayed
[00:02:16]               │ debg --- retry.tryForTime error: [data-test-subj="xpack.uptime.openAlertContextPanel"] is not displayed
[00:02:16]               │ debg TestSubjects.exists(uptimeOverviewPage)
[00:02:16]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeOverviewPage"]') with timeout=0
[00:02:16]             │ debg TestSubjects.exists(uptimeMonitorPage)
[00:02:16]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeMonitorPage"]') with timeout=0
[00:02:16]             │ debg --- retry.tryForTime error: [data-test-subj="uptimeMonitorPage"] is not displayed
[00:02:17]             │ debg TestSubjects.click(monitor-page-link-a11yTestMonitor)
[00:02:17]             │ debg Find.clickByCssSelector('[data-test-subj="monitor-page-link-a11yTestMonitor"]') with timeout=10000
[00:02:17]             │ debg Find.findByCssSelector('[data-test-subj="monitor-page-link-a11yTestMonitor"]') with timeout=10000
[00:02:17]             │ debg TestSubjects.exists(uptimeMonitorPage)
[00:02:17]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeMonitorPage"]') with timeout=30000
[00:02:17]             │ debg TestSubjects.exists(uptimeOverallAvailability)
[00:02:17]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeOverallAvailability"]') with timeout=120000
[00:02:17]             │ debg TestSubjects.getVisibleText(uptimeOverallAvailability)
[00:02:17]             │ debg TestSubjects.find(uptimeOverallAvailability)
[00:02:17]             │ debg Find.findByCssSelector('[data-test-subj="uptimeOverallAvailability"]') with timeout=10000
[00:02:18]             └- ✓ pass  (1.3s) "uptime detail page"
[00:02:18]           └-> settings page
[00:02:18]             └-> "before each" hook: global before each
[00:02:18]               │ERROR browser[SEVERE] http://localhost:61121/35070/bundles/plugin/uptime/uptime.plugin.js 0:18092 "API /api/uptime/pings is not returning expected response, Invalid value \"undefined\" supplied to \"pings.tls.server.x509.issuer.distinguished_name\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.subject.distinguished_name\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.serial_number\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.public_key_algorithm\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.signature_algorithm\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.not_after\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.not_before\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.issuer.distinguished_name\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.subject.distinguished_name\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.serial_number\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.public_key_algorithm\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.signature_algorithm\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.not_after\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.not_before\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.issuer.distinguished_name\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.subject.distinguished_name\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.serial_number\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.public_key_algorithm\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.signature_algorithm\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.not_after\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.not_before\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.issuer.distinguished_name\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.subject.distinguished_name\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.serial_number\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.public_key_algorithm\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.signature_algorithm\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.not_after\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.not_before\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.issuer.distinguished_name\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.subject.distinguished_name\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.serial_number\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.public_key_algorithm\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.signature_algorithm\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.not_after\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.not_before\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.issuer.distinguished_name\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.subject.distinguished_name\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.serial_number\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.public_key_algorithm\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.signature_algorithm\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.not_after\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.not_before\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.issuer.distinguished_name\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.subject.distinguished_name\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.serial_number\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.public_key_algorithm\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.signature_algorithm\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.not_after\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.not_before\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.issuer.distinguished_name\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.subject.distinguished_name\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.serial_number\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.public_key_algorithm\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.signature_algorithm\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.not_after\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.not_before\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.issuer.distinguished_name\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.subject.distinguished_name\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.serial_number\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.public_key_algorithm\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.signature_algorithm\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.not_after\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.not_before\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.issuer.distinguished_name\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.subject.distinguished_name\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.serial_number\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.public_key_algorithm\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.signature_algorithm\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.not_after\",Invalid value \"undefined\" supplied to \"pings.tls.server.x509.not_before\" for response" Object
[00:02:18]             └-> "before each" hook
[00:02:18]               │ debg TestSubjects.exists(uptimeSettingsToOverviewLink)
[00:02:18]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeSettingsToOverviewLink"]') with timeout=0
[00:02:18]               │ debg --- retry.tryForTime error: [data-test-subj="uptimeSettingsToOverviewLink"] is not displayed
[00:02:18]               │ debg TestSubjects.exists(uptimeOverviewPage)
[00:02:18]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeOverviewPage"]') with timeout=0
[00:02:18]               │ debg --- retry.tryForTime error: [data-test-subj="uptimeOverviewPage"] is not displayed
[00:02:19]               │ debg navigating to uptime url: http://localhost:61121/app/uptime
[00:02:19]               │ debg navigate to: http://localhost:61121/app/uptime
[00:02:19]               │ debg browser[INFO] http://localhost:61121/app/uptime?_t=1595522454316 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:02:19]               │
[00:02:19]               │ debg browser[INFO] http://localhost:61121/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:19]               │ debg ... sleep(700) start
[00:02:20]               │ debg ... sleep(700) end
[00:02:20]               │ debg returned from get, calling refresh
[00:02:20]               │ debg browser[INFO] http://localhost:61121/app/uptime?_t=1595522454316 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:02:20]               │
[00:02:20]               │ debg browser[INFO] http://localhost:61121/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:20]               │ debg currentUrl = http://localhost:61121/app/uptime
[00:02:20]               │          appUrl = http://localhost:61121/app/uptime
[00:02:20]               │ debg TestSubjects.find(kibanaChrome)
[00:02:20]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:02:23]               │ debg browser[INFO] http://localhost:61121/35070/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-07-23T16:40:57Z
[00:02:23]               │        Adding connection to http://localhost:61121/elasticsearch
[00:02:23]               │
[00:02:23]               │      "
[00:02:24]               │ debg ... sleep(501) start
[00:02:24]               │ debg ... sleep(501) end
[00:02:24]               │ debg in navigateTo url = http://localhost:61121/app/uptime
[00:02:24]               │ debg TestSubjects.exists(statusPageContainer)
[00:02:24]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:02:24]               │ERROR browser[SEVERE] http://localhost:61121/35070/bundles/plugin/uptime/uptime.plugin.js 0:18092 "API /api/uptime/monitor/list is not returning expected response, Invalid value \"undefined\" supplied to \"summaries.state.summaryPings.tls.server.x509.issuer.distinguished_name\",Invalid value \"undefined\" supplied to \"summaries.state.summaryPings.tls.server.x509.subject.distinguished_name\",Invalid value \"undefined\" supplied to \"summaries.state.summaryPings.tls.server.x509.serial_number\",Invalid value \"undefined\" supplied to \"summaries.state.summaryPings.tls.server.x509.public_key_algorithm\",Invalid value \"undefined\" supplied to \"summaries.state.summaryPings.tls.server.x509.signature_algorithm\",Invalid value \"undefined\" supplied to \"summaries.state.summaryPings.tls.server.x509.not_after\",Invalid value \"undefined\" supplied to \"summaries.state.summaryPings.tls.server.x509.not_before\" for response" Object
[00:02:27]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:02:27]               │ debg isGlobalLoadingIndicatorVisible
[00:02:27]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:02:27]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:02:29]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:02:29]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:02:29]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:02:29]               │ debg TestSubjects.exists(uptimeOverviewPage)
[00:02:29]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeOverviewPage"]') with timeout=2000
[00:02:29]             │ debg TestSubjects.exists(uptimeSettingsToOverviewLink)
[00:02:29]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeSettingsToOverviewLink"]') with timeout=0
[00:02:29]             │ debg --- retry.tryForTime error: [data-test-subj="uptimeSettingsToOverviewLink"] is not displayed
[00:02:30]             │ debg TestSubjects.exists(uptimeOverviewPage)
[00:02:30]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeOverviewPage"]') with timeout=0
[00:02:30]             │ debg TestSubjects.click(settings-page-link)
[00:02:30]             │ debg Find.clickByCssSelector('[data-test-subj="settings-page-link"]') with timeout=5000
[00:02:30]             │ debg Find.findByCssSelector('[data-test-subj="settings-page-link"]') with timeout=5000
[00:02:30]             │ debg TestSubjects.exists(uptimeSettingsPage)
[00:02:30]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeSettingsPage"]') with timeout=2000
[00:02:30]             │ debg browser[INFO] http://localhost:61121/app/uptime#/settings 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:02:30]             │
[00:02:30]             │ debg browser[INFO] http://localhost:61121/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:32]             │ debg browser[INFO] http://localhost:61121/35070/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-07-23T16:41:07Z
[00:02:32]             │        Adding connection to http://localhost:61121/elasticsearch
[00:02:32]             │
[00:02:32]             │      "
[00:02:32]             │ debg --- retry.tryForTime error: [data-test-subj="uptimeSettingsPage"] is not displayed
[00:02:33]             │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/uptime settings page.png"
[00:02:33]             │ info Current URL is: http://localhost:61121/app/uptime#/settings
[00:02:33]             │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/uptime settings page.html
[00:02:33]             └- ✖ fail: uptime settings page
[00:02:33]             │      Error: expected testSubject(uptimeSettingsPage) to exist
[00:02:33]             │       at TestSubjects.existOrFail (/dev/shm/workspace/kibana/test/functional/services/common/test_subjects.ts:62:15)
[00:02:33]             │ 
[00:02:33]             │ 

Stack Trace

Error: expected testSubject(uptimeSettingsPage) to exist
    at TestSubjects.existOrFail (/dev/shm/workspace/kibana/test/functional/services/common/test_subjects.ts:62:15)

Build metrics

✅ unchanged

History

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

@spalger spalger merged commit 8834ca3 into elastic:master Jul 23, 2020
@spalger spalger deleted the tsify/dev-build-lib branch July 23, 2020 17:58
spalger added a commit to spalger/kibana that referenced this pull request Jul 23, 2020
Co-authored-by: spalger <spalger@users.noreply.github.com>
@jbudz
Copy link
Copy Markdown
Contributor

jbudz commented Jul 23, 2020

image

All good in my testing too. thanks for providing the builds

spalger added a commit to spalger/kibana that referenced this pull request Jul 23, 2020
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	src/dev/build/build_distributables.js
@spalger spalger removed the v7.8.1 label Jul 23, 2020
spalger added a commit that referenced this pull request Jul 23, 2020
… (#73108)

Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
spalger added a commit that referenced this pull request Jul 23, 2020
…3110)

Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	src/dev/build/build_distributables.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team:Operations Kibana-Operations Team v7.9.0 v7.10.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants