-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Closed
Labels
Team:APM - DEPRECATEDUse Team:obs-ux-infra_services.Use Team:obs-ux-infra_services.
Description
Kibana version:
master branch
commit a108b23c27635ee90382f86de2cc8206bdb18d8d (grafted, HEAD -> master, origin/master, origin/HEAD)
Author: Ryan Keairns <[email protected]>
Date: Wed May 6 01:39:29 2020 -0500
Elasticsearch version:
master branch
{
name: "122804b8ce33",
cluster_name: "docker-cluster",
cluster_uuid: "v-rouCyHShWZI5Ykl-t4qw",
version: {
number: "8.0.0-SNAPSHOT",
build_flavor: "default",
build_type: "docker",
build_hash: "84116c5132e7ea5a1e63b6a4c4736ea0a7111e4f",
build_date: "2020-05-06T03:08:57.223715Z",
build_snapshot: true,
lucene_version: "8.5.1",
minimum_wire_compatibility_version: "7.8.0",
minimum_index_compatibility_version: "7.0.0"
},
tagline: "You Know, for Search"
}
Server OS version:
macosx 10.15.4
Browser version:
Cypress e2e UI
Browser OS version:
N/A
Original install method (e.g. download page, yum, from source, etc.):
From source
node --version - v10.19.0
nvm --version - 0.34.0
Description of the problem including expected versus actual behavior:
e2e tests are failing with
Steps to reproduce:
Run all the below steps from scratch:
cd /tmp
git clone https://github.com/elastic/kibana --depth 1
docker ps -a
cd kibana
nvm use $(cat .node-version)
cd x-pack/plugins/apm/e2e
yarn install
cd -
yarn kbn clean && yarn kbn bootstrap
nohup node ./scripts/kibana --no-base-path --dev --no-dev-config --config x-pack/plugins/apm/e2e/ci/kibana.e2e.yml > /tmp/kibana.log 2>&1 &
x-pack/plugins/apm/e2e/run-e2e.sh
Since there is an issue when running from scratch, see #61942
I recommend to change the x-pack/plugins/apm/e2e/run-e2e.sh with something like the below diff:
diff --git a/x-pack/plugins/apm/e2e/run-e2e.sh b/x-pack/plugins/apm/e2e/run-e2e.sh
index 818d45ab..aa1aecd8 100755
--- a/x-pack/plugins/apm/e2e/run-e2e.sh
+++ b/x-pack/plugins/apm/e2e/run-e2e.sh
@@ -111,15 +111,26 @@ fi
##################################################
echo "\n${bold}Waiting for Kibana to start...${normal}"
echo "Note: you need to start Kibana manually. Find the instructions at the top."
-yarn wait-on -i 500 -w 500 http://localhost:$KIBANA_PORT > /dev/null
+yarn wait-on -i 500 -w 500 http://localhost:$KIBANA_PORT/status > /dev/null
echo "\n✅ Setup completed successfully. Running tests...\n"
#
-# run cypress tests
+# run cypress tests a few times
##################################################
-yarn cypress run --config pageLoadTimeout=100000,watchForFileChanges=true
-
+n=0
+until [ $n -ge 20 ]
+ do
+ ## for debugging purposes only
+ curl --silent --user admin:changeme \
+ "localhost:${KIBANA_PORT}/api/status" | \
+ jq .status.overall.state | \
+ grep 'green'
+ yarn cypress run --config pageLoadTimeout=100000,watchForFileChanges=true && break || true
+ sleep 10
+ n=$[$n+1]
+ done
+fiErrors in browser console (if relevant):
Provide logs and/or server output (if relevant):
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="0" tests="1" failures="1">
<testsuite name="Root Suite" timestamp="2020-05-06T07:39:14" tests="0" file="cypress/integration/apm.feature" failures="0" time="0">
</testsuite>
<testsuite name="APM" timestamp="2020-05-06T07:39:14" tests="1" failures="1" time="0">
<testcase name="APM Transaction duration charts" time="0" classname="Transaction duration charts">
<failure message="Snapshot difference. To update, delete snapshot and rerun test.
"500 ms" => "350 ms"" type="Error"><![CDATA[Error: Snapshot difference. To update, delete snapshot and rerun test.
"500 ms" => "350 ms"
at http://localhost:5701/__cypress/tests?p=cypress/support/index.ts-869:22407:15
at InternalConstructor.orElse (http://localhost:5701/__cypress/tests?p=cypress/support/index.ts-869:2433:14)
at cyRaiser (http://localhost:5701/__cypress/tests?p=cypress/support/index.ts-869:22396:14)
at setOrCheckValue (http://localhost:5701/__cypress/tests?p=cypress/support/index.ts-869:22583:7)
at snapShotCore (http://localhost:5701/__cypress/tests?p=cypress/support/index.ts-869:22595:14)
at setSnapshot (http://localhost:5701/__cypress/tests?p=cypress/support/index.ts-869:22412:5)
at Context.snapshot (http://localhost:5701/__cypress/tests?p=cypress/support/index.ts-869:22431:5)]]></failure>
</testcase>
</testsuite>
</testsuites>
Describe the feature:
Metadata
Metadata
Assignees
Labels
Team:APM - DEPRECATEDUse Team:obs-ux-infra_services.Use Team:obs-ux-infra_services.
