Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

fix: do not use GT_REPO variable, use fixed repo name instead#1049

Merged
mdelapenya merged 2 commits intoelastic:masterfrom
mdelapenya:fix-gwt-repo
Apr 19, 2021
Merged

fix: do not use GT_REPO variable, use fixed repo name instead#1049
mdelapenya merged 2 commits intoelastic:masterfrom
mdelapenya:fix-gwt-repo

Conversation

@mdelapenya
Copy link
Copy Markdown
Contributor

@mdelapenya mdelapenya commented Apr 19, 2021

What does this PR do?

It creates a global env var for repo name (elastic/kibana), which will be used instead of the usages of GT_REPO.

Why is it important?

We noticed that, although the webhook event was properly captured by regexpFilterText: '$GT_REPO$GT_BODY', at the moment we used it later in the pipeline, for a manual trigger, the GT_REPO variable was null. I.e.:

def pullRequest = githubApiCall(token: token, url: "https://api.github.com/repos/${env.GT_REPO}/pulls/${prID}")

See https://beats-ci.elastic.co/blue/organizations/jenkins/e2e-tests%2Fe2e-testing-kibana-fleet/detail/e2e-testing-kibana-fleet/19/pipeline/

githubApiCall: The REST API call https://api.github.com/repos/null/pulls/97041 return the message : java.lang.Exception: httpRequest: Failure connecting to the service https://api.github.com/repos/null/pulls/97041 : httpRequest: Failure connecting to the service https://api.github.com/repos/null/pulls/97041 :

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 run the Unit tests for the CLI, and they are passing locally
  • I have run the End-2-End tests for the suite I'm working on, and they are passing locally
  • I have noticed new Go dependencies (run make notice in the proper directory)

Related issues

@mdelapenya mdelapenya self-assigned this Apr 19, 2021
@mdelapenya mdelapenya requested a review from a team April 19, 2021 09:09
@mdelapenya mdelapenya marked this pull request as ready for review April 19, 2021 09:09
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Tests Failed

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 #1049 opened

  • Start Time: 2021-04-19T09:09:41.338+0000

  • Duration: 16 min 49 sec

  • Commit: 4316c17

Test stats 🧪

Test Results
Failed 4
Passed 118
Skipped 0
Total 122

Trends 🧪

Image of Build Times

Image of Tests

Test errors 4

Expand to view the tests failures

Initializing / End-To-End Tests / ubuntu-18.04_fleet_fleet_mode_agent / [empty] – TEST-fleet.xml
  • no error details
  • Expand to view the stacktrace

     Test report file /var/lib/jenkins/workspace/PR-1049-1-ce7a8572-ac1c-4d82-a23f-b77d49414c00/src/github.com/elastic/e2e-testing/outputs/TEST-fleet.xml was length 0 
    

Initializing / End-To-End Tests / ubuntu-18.04_fleet_backend_processes / [empty] – TEST-fleet.xml
  • no error details
  • Expand to view the stacktrace

     Test report file /var/lib/jenkins/workspace/PR-1049-1-63009f5e-c449-48e1-8ccd-feba1d5712cf/src/github.com/elastic/e2e-testing/outputs/TEST-fleet.xml was length 0 
    

Initializing / End-To-End Tests / ubuntu-18.04_fleet_agent_endpoint_integration / [empty] – TEST-fleet.xml
  • no error details
  • Expand to view the stacktrace

     Test report file /var/lib/jenkins/workspace/PR-1049-1-3c46998e-88ce-42c2-bbeb-8eda507119d9/src/github.com/elastic/e2e-testing/outputs/TEST-fleet.xml was length 0 
    

Initializing / End-To-End Tests / ubuntu-18.04_fleet_stand_alone_agent / [empty] – TEST-fleet.xml
  • no error details
  • Expand to view the stacktrace

     Test report file /var/lib/jenkins/workspace/PR-1049-1-0437e614-0179-45ac-97cb-a1a63bcec2f4/src/github.com/elastic/e2e-testing/outputs/TEST-fleet.xml was length 0 
    

Steps errors 4

Expand to view the steps failures

Run functional tests for fleet:fleet_mode_agent && ~@nightly && ~debian
  • Took 6 min 10 sec . View more details on here
  • Description: .ci/scripts/functional-test.sh "fleet" "fleet_mode_agent && ~@nightly && ~debian" "8.0.0-SNAPSHOT" "8.0.0-SNAPSHOT"
Run functional tests for fleet:agent_endpoint_integration && ~@nightly && ~debian
  • Took 6 min 8 sec . View more details on here
  • Description: .ci/scripts/functional-test.sh "fleet" "agent_endpoint_integration && ~@nightly && ~debian" "8.0.0-SNAPSHOT" "8.0.0-SNAPSHOT"
Run functional tests for fleet:stand_alone_agent && ~@nightly && ~ubi8
  • Took 6 min 16 sec . View more details on here
  • Description: .ci/scripts/functional-test.sh "fleet" "stand_alone_agent && ~@nightly && ~ubi8" "8.0.0-SNAPSHOT" "8.0.0-SNAPSHOT"
Run functional tests for fleet:backend_processes && ~@nightly && ~debian
  • Took 6 min 5 sec . View more details on here
  • Description: .ci/scripts/functional-test.sh "fleet" "backend_processes && ~@nightly && ~debian" "8.0.0-SNAPSHOT" "8.0.0-SNAPSHOT"

Log output

Expand to view the last 100 lines of log output

[2021-04-19T09:23:52.638Z] 
Stopping metricbeat_metricbeat_1 ... done
Removing metricbeat_metricbeat_1 ... 
[2021-04-19T09:23:52.638Z] 
Removing metricbeat_metricbeat_1 ... done
Going to remove metricbeat_metricbeat_1
[2021-04-19T09:23:52.902Z] time="2021-04-19T09:23:52Z" level=debug msg="Docker compose executed." cmd="[rm -fvs metricbeat]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1049-1-2a86dc97-8b4e-40d3-9a83-9f3a59e26061/.op/compose/profiles/metricbeat/docker-compose.yml /var/lib/jenkins/workspace/PR-1049-1-2a86dc97-8b4e-40d3-9a83-9f3a59e26061/.op/compose/services/metricbeat/docker-compose.yml /var/lib/jenkins/workspace/PR-1049-1-2a86dc97-8b4e-40d3-9a83-9f3a59e26061/.op/compose/services/mysql/docker-compose.yml]" env="map[BEAT_STRICT_PERMS:false MYSQL_PATH:/var/lib/jenkins/workspace/PR-1049-1-2a86dc97-8b4e-40d3-9a83-9f3a59e26061/.op/compose/services/mysql MYSQL_VARIANT:mysql MYSQL_VERSION:5.7.12 indexName:metricbeat-8.0.0-mysql-mysql-5.7.12-lc1wbb6r logLevel:debug metricbeatConfigFile:/var/lib/jenkins/workspace/PR-1049-1-2a86dc97-8b4e-40d3-9a83-9f3a59e26061/.op/compose/services/mysql/_meta/config.yml metricbeatDockerNamespace:beats metricbeatPlatform:linux/amd64 metricbeatTag:8.0.0-SNAPSHOT mysqlTag:5.7.12 serviceName:mysql stackVersion:8.0.0-SNAPSHOT]" profile=metricbeat
[2021-04-19T09:23:52.902Z] time="2021-04-19T09:23:52Z" level=debug msg="Service removed from compose" profile=metricbeat service=metricbeat
[2021-04-19T09:23:53.473Z] Stopping metricbeat_mysql_1 ... 
[2021-04-19T09:23:55.385Z] 
Stopping metricbeat_mysql_1 ... done
Removing metricbeat_mysql_1 ... 
[2021-04-19T09:23:55.385Z] 
Removing metricbeat_mysql_1 ... done
Going to remove metricbeat_mysql_1
[2021-04-19T09:23:55.385Z] time="2021-04-19T09:23:55Z" level=debug msg="Docker compose executed." cmd="[rm -fvs mysql]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1049-1-2a86dc97-8b4e-40d3-9a83-9f3a59e26061/.op/compose/profiles/metricbeat/docker-compose.yml /var/lib/jenkins/workspace/PR-1049-1-2a86dc97-8b4e-40d3-9a83-9f3a59e26061/.op/compose/services/metricbeat/docker-compose.yml /var/lib/jenkins/workspace/PR-1049-1-2a86dc97-8b4e-40d3-9a83-9f3a59e26061/.op/compose/services/mysql/docker-compose.yml]" env="map[BEAT_STRICT_PERMS:false MYSQL_PATH:/var/lib/jenkins/workspace/PR-1049-1-2a86dc97-8b4e-40d3-9a83-9f3a59e26061/.op/compose/services/mysql MYSQL_VARIANT:mysql MYSQL_VERSION:5.7.12 indexName:metricbeat-8.0.0-mysql-mysql-5.7.12-lc1wbb6r logLevel:debug metricbeatConfigFile:/var/lib/jenkins/workspace/PR-1049-1-2a86dc97-8b4e-40d3-9a83-9f3a59e26061/.op/compose/services/mysql/_meta/config.yml metricbeatDockerNamespace:beats metricbeatPlatform:linux/amd64 metricbeatTag:8.0.0-SNAPSHOT mysqlTag:5.7.12 serviceName:mysql stackVersion:8.0.0-SNAPSHOT]" profile=metricbeat
[2021-04-19T09:23:55.385Z] time="2021-04-19T09:23:55Z" level=debug msg="Service removed from compose" profile=metricbeat service=mysql
[2021-04-19T09:23:55.385Z] time="2021-04-19T09:23:55Z" level=debug msg="Index deleted using Elasticsearch Go client" indexName=metricbeat-8.0.0-mysql-mysql-5.7.12-lc1wbb6r status="400 Bad Request"
[2021-04-19T09:23:55.385Z] time="2021-04-19T09:23:55Z" level=debug msg="Index Alias deleted using Elasticsearch Go client" indexAlias=metricbeat-8.0.0-mysql-mysql-5.7.12-lc1wbb6r status="400 Bad Request"
[2021-04-19T09:23:55.385Z] {"level":"debug","time":"2021-04-19T09:23:55Z","message":"sent request with 1 transaction, 6 spans, 0 errors, 0 metricsets"}
[2021-04-19T09:23:55.954Z] Stopping metricbeat_elasticsearch_1 ... 
[2021-04-19T09:23:56.898Z] 
Stopping metricbeat_elasticsearch_1 ... done
Removing metricbeat_elasticsearch_1 ... 
[2021-04-19T09:23:56.898Z] 
Removing metricbeat_elasticsearch_1 ... done
Removing network metricbeat_default
[2021-04-19T09:23:57.471Z] time="2021-04-19T09:23:57Z" level=debug msg="Docker compose executed." cmd="[down --remove-orphans]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1049-1-2a86dc97-8b4e-40d3-9a83-9f3a59e26061/.op/compose/profiles/metricbeat/docker-compose.yml]" env="map[BEAT_STRICT_PERMS:false MYSQL_PATH:/var/lib/jenkins/workspace/PR-1049-1-2a86dc97-8b4e-40d3-9a83-9f3a59e26061/.op/compose/services/mysql MYSQL_VARIANT:mysql MYSQL_VERSION:5.7.12 indexName:metricbeat-8.0.0-mysql-mysql-5.7.12-lc1wbb6r logLevel:debug metricbeatConfigFile:/var/lib/jenkins/workspace/PR-1049-1-2a86dc97-8b4e-40d3-9a83-9f3a59e26061/.op/compose/services/mysql/_meta/config.yml metricbeatDockerNamespace:beats metricbeatPlatform:linux/amd64 metricbeatTag:8.0.0-SNAPSHOT mysqlTag:5.7.12 serviceName:mysql stackVersion:8.0.0-SNAPSHOT]" profile=metricbeat
[2021-04-19T09:23:57.471Z] {"level":"debug","time":"2021-04-19T09:23:57Z","message":"sent request with 1 transaction, 2 spans, 0 errors, 0 metricsets"}
[2021-04-19T09:23:57.870Z] [INFO] Stopping Filebeat Docker container
[2021-04-19T09:23:58.188Z] + docker exec -t 4f5082b94b8d3ae0da1f261dc8f08204d4fd7b9f8d9bc886583676e3378da950 chmod -R ugo+rw /output
[2021-04-19T09:23:58.516Z] 
Stopping metricbeat_haproxy_1 ... done
Removing metricbeat_haproxy_1 ... 
[2021-04-19T09:23:58.516Z] 
Removing metricbeat_haproxy_1 ... done
Going to remove metricbeat_haproxy_1
[2021-04-19T09:23:58.516Z] {"level":"debug","time":"2021-04-19T09:23:58Z","message":"sent request with 0 transactions, 0 spans, 0 errors, 1 metricset"}
[2021-04-19T09:23:58.516Z] time="2021-04-19T09:23:58Z" level=debug msg="Docker compose executed." cmd="[rm -fvs haproxy]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/.op/compose/profiles/metricbeat/docker-compose.yml /var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/.op/compose/services/metricbeat/docker-compose.yml /var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/.op/compose/services/haproxy/docker-compose.yml]" env="map[BEAT_STRICT_PERMS:false HAPROXY_PATH:/var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/.op/compose/services/haproxy HAPROXY_VERSION:1.7.12 haproxyTag:1.7.12 indexName:metricbeat-8.0.0-haproxy-1.7.12-9mwmkgrt logLevel:debug metricbeatConfigFile:/var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/.op/compose/services/haproxy/_meta/config.yml metricbeatDockerNamespace:beats metricbeatPlatform:linux/amd64 metricbeatTag:8.0.0-SNAPSHOT serviceName:haproxy stackVersion:8.0.0-SNAPSHOT]" profile=metricbeat
[2021-04-19T09:23:58.516Z] time="2021-04-19T09:23:58Z" level=debug msg="Service removed from compose" profile=metricbeat service=haproxy
[2021-04-19T09:23:58.516Z] time="2021-04-19T09:23:58Z" level=debug msg="Index deleted using Elasticsearch Go client" indexName=metricbeat-8.0.0-haproxy-1.7.12-9mwmkgrt status="400 Bad Request"
[2021-04-19T09:23:58.516Z] time="2021-04-19T09:23:58Z" level=debug msg="Index Alias deleted using Elasticsearch Go client" indexAlias=metricbeat-8.0.0-haproxy-1.7.12-9mwmkgrt status="400 Bad Request"
[2021-04-19T09:23:58.761Z] + docker stop --time 30 4f5082b94b8d3ae0da1f261dc8f08204d4fd7b9f8d9bc886583676e3378da950
[2021-04-19T09:23:58.777Z] {"level":"debug","time":"2021-04-19T09:23:58Z","message":"sent request with 1 transaction, 2 spans, 0 errors, 0 metricsets"}
[2021-04-19T09:23:59.021Z] 4f5082b94b8d3ae0da1f261dc8f08204d4fd7b9f8d9bc886583676e3378da950
[2021-04-19T09:23:59.092Z] Archiving artifacts
[2021-04-19T09:23:59.370Z] Pulling haproxy (docker.elastic.co/integrations-ci/beats-haproxy:1.6.15-2)...
[2021-04-19T09:23:59.928Z] Recording test results
[2021-04-19T09:23:59.943Z] 1.6.15-2: Pulling from integrations-ci/beats-haproxy
[2021-04-19T09:24:00.256Z] [Checks API] No suitable checks publisher found.
[2021-04-19T09:24:00.299Z] Archiving artifacts
[2021-04-19T09:24:00.423Z] Running in /var/lib/jenkins/workspace/PR-1049-1-2a86dc97-8b4e-40d3-9a83-9f3a59e26061/src/github.com/elastic/e2e-testing
[2021-04-19T09:24:00.779Z] + go clean -modcache
[2021-04-19T09:24:02.499Z] Digest: sha256:9b420a2f0c356b6bdbb4ca0a7cf736f69c9cd189c1efa61ace7de8846b7f7164
[2021-04-19T09:24:02.499Z] Status: Downloaded newer image for docker.elastic.co/integrations-ci/beats-haproxy:1.6.15-2
[2021-04-19T09:24:02.500Z] metricbeat_elasticsearch_1 is up-to-date
[2021-04-19T09:24:02.500Z] Creating metricbeat_haproxy_1 ... 
[2021-04-19T09:24:03.888Z] 
Creating metricbeat_haproxy_1 ... done
time="2021-04-19T09:24:03Z" level=debug msg="Docker compose executed." cmd="[up -d]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/.op/compose/profiles/metricbeat/docker-compose.yml /var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/.op/compose/services/haproxy/docker-compose.yml]" env="map[BEAT_STRICT_PERMS:false HAPROXY_PATH:/var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/.op/compose/services/haproxy HAPROXY_VERSION:1.6.15 haproxyTag:1.7.12 indexName:metricbeat-8.0.0-haproxy-1.7.12-9mwmkgrt logLevel:debug metricbeatConfigFile:/var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/.op/compose/services/haproxy/_meta/config.yml metricbeatDockerNamespace:beats metricbeatPlatform:linux/amd64 metricbeatTag:8.0.0-SNAPSHOT serviceName:haproxy stackVersion:8.0.0-SNAPSHOT]" profile=metricbeat
[2021-04-19T09:24:03.889Z] time="2021-04-19T09:24:03Z" level=debug msg="Could not retrieve configuration file under test workspace. Looking up tool's workspace" error="<nil>" path=/var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/src/github.com/elastic/e2e-testing/e2e/_suites/metricbeat/configurations/haproxy.yml service=haproxy
[2021-04-19T09:24:16.133Z] {"level":"debug","time":"2021-04-19T09:24:13Z","message":"sent request with 0 transactions, 2 spans, 0 errors, 0 metricsets"}
[2021-04-19T09:24:18.684Z] {"level":"debug","time":"2021-04-19T09:24:18Z","message":"gathering metrics"}
[2021-04-19T09:24:28.702Z] {"level":"debug","time":"2021-04-19T09:24:28Z","message":"sent request with 0 transactions, 0 spans, 0 errors, 6 metricsets"}
[2021-04-19T09:24:50.677Z] {"level":"debug","time":"2021-04-19T09:24:48Z","message":"gathering metrics"}
[2021-04-19T09:24:54.885Z] Found orphan containers (metricbeat_haproxy_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
[2021-04-19T09:24:54.885Z] metricbeat_elasticsearch_1 is up-to-date
[2021-04-19T09:24:54.885Z] Creating metricbeat_metricbeat_1 ... 
[2021-04-19T09:24:55.722Z] 
Creating metricbeat_metricbeat_1 ... done
time="2021-04-19T09:24:55Z" level=debug msg="Docker compose executed." cmd="[up -d]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/.op/compose/profiles/metricbeat/docker-compose.yml /var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/.op/compose/services/metricbeat/docker-compose.yml]" env="map[BEAT_STRICT_PERMS:false HAPROXY_PATH:/var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/.op/compose/services/haproxy HAPROXY_VERSION:1.6.15 haproxyTag:1.6.15 indexName:metricbeat-8.0.0-haproxy-1.6.15-hz6su0le logLevel:debug metricbeatConfigFile:/var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/.op/compose/services/haproxy/_meta/config.yml metricbeatDockerNamespace:beats metricbeatPlatform:linux/amd64 metricbeatTag:8.0.0-SNAPSHOT serviceName:haproxy stackVersion:8.0.0-SNAPSHOT]" profile=metricbeat
[2021-04-19T09:24:55.722Z] time="2021-04-19T09:24:55Z" level=info msg="Metricbeat is running configured for the service" metricbeatVersion=8.0.0-SNAPSHOT service=haproxy serviceVersion=1.6.15
[2021-04-19T09:24:55.722Z] time="2021-04-19T09:24:55Z" level=warning msg="There was an error executing the query" desiredHits=5 elapsedTime=18.744082ms error="Error getting response from Elasticsearch. Status: 404 Not Found, ResponseError: map[error:map[index:metricbeat-8.0.0-haproxy-1.6.15-hz6su0le index_uuid:_na_ reason:no such index [metricbeat-8.0.0-haproxy-1.6.15-hz6su0le] resource.id:metricbeat-8.0.0-haproxy-1.6.15-hz6su0le resource.type:index_or_alias root_cause:[map[index:metricbeat-8.0.0-haproxy-1.6.15-hz6su0le index_uuid:_na_ reason:no such index [metricbeat-8.0.0-haproxy-1.6.15-hz6su0le] resource.id:metricbeat-8.0.0-haproxy-1.6.15-hz6su0le resource.type:index_or_alias type:index_not_found_exception]] type:index_not_found_exception] status:404]" index=metricbeat-8.0.0-haproxy-1.6.15-hz6su0le retry=1
[2021-04-19T09:24:56.296Z] time="2021-04-19T09:24:56Z" level=warning msg="There was an error executing the query" desiredHits=5 elapsedTime=621.595224ms error="Error getting response from Elasticsearch. Status: 404 Not Found, ResponseError: map[error:map[index:metricbeat-8.0.0-haproxy-1.6.15-hz6su0le index_uuid:_na_ reason:no such index [metricbeat-8.0.0-haproxy-1.6.15-hz6su0le] resource.id:metricbeat-8.0.0-haproxy-1.6.15-hz6su0le resource.type:index_or_alias root_cause:[map[index:metricbeat-8.0.0-haproxy-1.6.15-hz6su0le index_uuid:_na_ reason:no such index [metricbeat-8.0.0-haproxy-1.6.15-hz6su0le] resource.id:metricbeat-8.0.0-haproxy-1.6.15-hz6su0le resource.type:index_or_alias type:index_not_found_exception]] type:index_not_found_exception] status:404]" index=metricbeat-8.0.0-haproxy-1.6.15-hz6su0le retry=2
[2021-04-19T09:24:57.240Z] time="2021-04-19T09:24:57Z" level=warning msg="There was an error executing the query" desiredHits=5 elapsedTime=1.649311167s error="Error getting response from Elasticsearch. Status: 404 Not Found, ResponseError: map[error:map[index:metricbeat-8.0.0-haproxy-1.6.15-hz6su0le index_uuid:_na_ reason:no such index [metricbeat-8.0.0-haproxy-1.6.15-hz6su0le] resource.id:metricbeat-8.0.0-haproxy-1.6.15-hz6su0le resource.type:index_or_alias root_cause:[map[index:metricbeat-8.0.0-haproxy-1.6.15-hz6su0le index_uuid:_na_ reason:no such index [metricbeat-8.0.0-haproxy-1.6.15-hz6su0le] resource.id:metricbeat-8.0.0-haproxy-1.6.15-hz6su0le resource.type:index_or_alias type:index_not_found_exception]] type:index_not_found_exception] status:404]" index=metricbeat-8.0.0-haproxy-1.6.15-hz6su0le retry=3
[2021-04-19T09:24:58.628Z] time="2021-04-19T09:24:58Z" level=warning msg="There was an error executing the query" desiredHits=5 elapsedTime=2.709592861s error="Error getting response from Elasticsearch. Status: 404 Not Found, ResponseError: map[error:map[index:metricbeat-8.0.0-haproxy-1.6.15-hz6su0le index_uuid:_na_ reason:no such index [metricbeat-8.0.0-haproxy-1.6.15-hz6su0le] resource.id:metricbeat-8.0.0-haproxy-1.6.15-hz6su0le resource.type:index_or_alias root_cause:[map[index:metricbeat-8.0.0-haproxy-1.6.15-hz6su0le index_uuid:_na_ reason:no such index [metricbeat-8.0.0-haproxy-1.6.15-hz6su0le] resource.id:metricbeat-8.0.0-haproxy-1.6.15-hz6su0le resource.type:index_or_alias type:index_not_found_exception]] type:index_not_found_exception] status:404]" index=metricbeat-8.0.0-haproxy-1.6.15-hz6su0le retry=4
[2021-04-19T09:24:58.628Z] {"level":"debug","time":"2021-04-19T09:24:58Z","message":"sent request with 0 transactions, 6 spans, 0 errors, 1 metricset"}
[2021-04-19T09:25:01.288Z] time="2021-04-19T09:25:00Z" level=debug msg="Response information" hits=0 status="200 OK" took=1
[2021-04-19T09:25:01.288Z] time="2021-04-19T09:25:00Z" level=warning msg="Waiting for more hits in the index" currentHits=0 desiredHits=5 elapsedTime=5.348372515s index=metricbeat-8.0.0-haproxy-1.6.15-hz6su0le retry=5
[2021-04-19T09:25:06.588Z] time="2021-04-19T09:25:06Z" level=debug msg="Response information" hits=9 status="200 OK" took=2
[2021-04-19T09:25:06.588Z] time="2021-04-19T09:25:06Z" level=info msg="Hits number satisfied" currentHits=9 desiredHits=5 elapsedTime=10.894845215s retries=6
[2021-04-19T09:25:06.588Z] time="2021-04-19T09:25:06Z" level=debug msg="Response information" hits=9 status="200 OK" took=3
[2021-04-19T09:25:06.588Z] time="2021-04-19T09:25:06Z" level=info msg="Hits number satisfied" currentHits=9 desiredHits=5 elapsedTime=9.348799ms retries=1
[2021-04-19T09:25:07.162Z] Stopping metricbeat_metricbeat_1 ... 
[2021-04-19T09:25:07.735Z] 
Stopping metricbeat_metricbeat_1 ... done
Removing metricbeat_metricbeat_1 ... 
[2021-04-19T09:25:07.735Z] 
Removing metricbeat_metricbeat_1 ... done
Going to remove metricbeat_metricbeat_1
[2021-04-19T09:25:07.735Z] time="2021-04-19T09:25:07Z" level=debug msg="Docker compose executed." cmd="[rm -fvs metricbeat]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/.op/compose/profiles/metricbeat/docker-compose.yml /var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/.op/compose/services/metricbeat/docker-compose.yml /var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/.op/compose/services/haproxy/docker-compose.yml]" env="map[BEAT_STRICT_PERMS:false HAPROXY_PATH:/var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/.op/compose/services/haproxy HAPROXY_VERSION:1.6.15 haproxyTag:1.6.15 indexName:metricbeat-8.0.0-haproxy-1.6.15-hz6su0le logLevel:debug metricbeatConfigFile:/var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/.op/compose/services/haproxy/_meta/config.yml metricbeatDockerNamespace:beats metricbeatPlatform:linux/amd64 metricbeatTag:8.0.0-SNAPSHOT serviceName:haproxy stackVersion:8.0.0-SNAPSHOT]" profile=metricbeat
[2021-04-19T09:25:07.736Z] time="2021-04-19T09:25:07Z" level=debug msg="Service removed from compose" profile=metricbeat service=metricbeat
[2021-04-19T09:25:08.308Z] Stopping metricbeat_haproxy_1 ... 
[2021-04-19T09:25:11.614Z] {"level":"debug","time":"2021-04-19T09:25:10Z","message":"sent request with 0 transactions, 5 spans, 0 errors, 0 metricsets"}
[2021-04-19T09:25:18.763Z] {"level":"debug","time":"2021-04-19T09:25:18Z","message":"gathering metrics"}
[2021-04-19T09:25:19.337Z] 
Stopping metricbeat_haproxy_1 ... done
Removing metricbeat_haproxy_1 ... 
[2021-04-19T09:25:19.337Z] 
Removing metricbeat_haproxy_1 ... done
Going to remove metricbeat_haproxy_1
[2021-04-19T09:25:19.337Z] time="2021-04-19T09:25:19Z" level=debug msg="Docker compose executed." cmd="[rm -fvs haproxy]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/.op/compose/profiles/metricbeat/docker-compose.yml /var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/.op/compose/services/metricbeat/docker-compose.yml /var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/.op/compose/services/haproxy/docker-compose.yml]" env="map[BEAT_STRICT_PERMS:false HAPROXY_PATH:/var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/.op/compose/services/haproxy HAPROXY_VERSION:1.6.15 haproxyTag:1.6.15 indexName:metricbeat-8.0.0-haproxy-1.6.15-hz6su0le logLevel:debug metricbeatConfigFile:/var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/.op/compose/services/haproxy/_meta/config.yml metricbeatDockerNamespace:beats metricbeatPlatform:linux/amd64 metricbeatTag:8.0.0-SNAPSHOT serviceName:haproxy stackVersion:8.0.0-SNAPSHOT]" profile=metricbeat
[2021-04-19T09:25:19.338Z] time="2021-04-19T09:25:19Z" level=debug msg="Service removed from compose" profile=metricbeat service=haproxy
[2021-04-19T09:25:19.338Z] time="2021-04-19T09:25:19Z" level=debug msg="Index deleted using Elasticsearch Go client" indexName=metricbeat-8.0.0-haproxy-1.6.15-hz6su0le status="400 Bad Request"
[2021-04-19T09:25:19.338Z] time="2021-04-19T09:25:19Z" level=debug msg="Index Alias deleted using Elasticsearch Go client" indexAlias=metricbeat-8.0.0-haproxy-1.6.15-hz6su0le status="400 Bad Request"
[2021-04-19T09:25:19.598Z] {"level":"debug","time":"2021-04-19T09:25:19Z","message":"sent request with 1 transaction, 2 spans, 0 errors, 1 metricset"}
[2021-04-19T09:25:20.170Z] Stopping metricbeat_elasticsearch_1 ... 
[2021-04-19T09:25:21.113Z] 
Stopping metricbeat_elasticsearch_1 ... done
Removing metricbeat_elasticsearch_1 ... 
[2021-04-19T09:25:21.113Z] 
Removing metricbeat_elasticsearch_1 ... done
Removing network metricbeat_default
[2021-04-19T09:25:21.687Z] time="2021-04-19T09:25:21Z" level=debug msg="Docker compose executed." cmd="[down --remove-orphans]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/.op/compose/profiles/metricbeat/docker-compose.yml]" env="map[BEAT_STRICT_PERMS:false HAPROXY_PATH:/var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/.op/compose/services/haproxy HAPROXY_VERSION:1.6.15 haproxyTag:1.6.15 indexName:metricbeat-8.0.0-haproxy-1.6.15-hz6su0le logLevel:debug metricbeatConfigFile:/var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/.op/compose/services/haproxy/_meta/config.yml metricbeatDockerNamespace:beats metricbeatPlatform:linux/amd64 metricbeatTag:8.0.0-SNAPSHOT serviceName:haproxy stackVersion:8.0.0-SNAPSHOT]" profile=metricbeat
[2021-04-19T09:25:21.687Z] {"level":"debug","time":"2021-04-19T09:25:21Z","message":"sent request with 1 transaction, 2 spans, 0 errors, 0 metricsets"}
[2021-04-19T09:25:22.036Z] [INFO] Stopping Filebeat Docker container
[2021-04-19T09:25:22.353Z] + docker exec -t 3b70d255af38a4687393d925c6a26daea96ccb7517148fb5e81e1b18375baafe chmod -R ugo+rw /output
[2021-04-19T09:25:22.927Z] + docker stop --time 30 3b70d255af38a4687393d925c6a26daea96ccb7517148fb5e81e1b18375baafe
[2021-04-19T09:25:23.188Z] 3b70d255af38a4687393d925c6a26daea96ccb7517148fb5e81e1b18375baafe
[2021-04-19T09:25:23.235Z] Archiving artifacts
[2021-04-19T09:25:24.290Z] Recording test results
[2021-04-19T09:25:24.786Z] [Checks API] No suitable checks publisher found.
[2021-04-19T09:25:24.829Z] Archiving artifacts
[2021-04-19T09:25:24.947Z] Running in /var/lib/jenkins/workspace/PR-1049-1-4cc2a76f-24a5-449c-834f-eb5c3282aa25/src/github.com/elastic/e2e-testing
[2021-04-19T09:25:25.302Z] + go clean -modcache
[2021-04-19T09:25:28.578Z] Stage "Release" skipped due to earlier failure(s)
[2021-04-19T09:25:29.518Z] Running on Jenkins in /var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1049
[2021-04-19T09:25:29.651Z] [INFO] getVaultSecret: Getting secrets
[2021-04-19T09:25:29.783Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-04-19T09:25:30.964Z] + chmod 755 generate-build-data.sh
[2021-04-19T09:25:30.965Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1049/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1049/runs/1 FAILURE 949340
[2021-04-19T09:25:31.215Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1049/runs/1/steps/?limit=10000 -o steps-info.json

🐛 Flaky test report

❕ There are test failures but not known flaky tests.

Expand to view the summary

Test stats 🧪

Test Results
Failed 4
Passed 118
Skipped 0
Total 122

Genuine test errors 4

💔 There are test failures but not known flaky tests, most likely a genuine test failure.

  • Name: Initializing / End-To-End Tests / ubuntu-18.04_fleet_fleet_mode_agent / [empty] – TEST-fleet.xml
  • Name: Initializing / End-To-End Tests / ubuntu-18.04_fleet_backend_processes / [empty] – TEST-fleet.xml
  • Name: Initializing / End-To-End Tests / ubuntu-18.04_fleet_agent_endpoint_integration / [empty] – TEST-fleet.xml
  • Name: Initializing / End-To-End Tests / ubuntu-18.04_fleet_stand_alone_agent / [empty] – TEST-fleet.xml

environment {
REPO = 'kibana'
BASE_DIR = "src/github.com/elastic/${env.REPO}"
ELASTIC_REPO = "elastic/${env.REPO}"
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.

If you use the the gitCheckout then ORG_NAME should be there and point to elastic:

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.

We are internally using gitCheckout in the buildKibana step, although it could be the case the image is already built and we skip that part

@mdelapenya mdelapenya merged commit 85b4f93 into elastic:master Apr 19, 2021
@mdelapenya mdelapenya deleted the fix-gwt-repo branch April 19, 2021 16:17
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Apr 20, 2021
…c#1049)

* fix: do not use GT_REPO variable, use fixed repo name

Because the repo is always Kibana, let's use it

* chore: remove unused echo
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Apr 20, 2021
…c#1049)

* fix: do not use GT_REPO variable, use fixed repo name

Because the repo is always Kibana, let's use it

* chore: remove unused echo
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Apr 20, 2021
…c#1049)

* fix: do not use GT_REPO variable, use fixed repo name

Because the repo is always Kibana, let's use it

* chore: remove unused echo
mdelapenya added a commit that referenced this pull request Apr 20, 2021
…bhook payload (#1043) | chore: add debug info for the payload (#1044) | fix: typo in parameters (#1045) | fix: incorrect variable name (#1046) | fix: do not use GT_REPO va (#1057)

* fix: wrong interpolation (#1042)

* chore: add debug traces for the webhook payload (#1043)

* chore: add debug info for the payload (#1044)

* fix: do not use variable names as variable prefix

* chore: print payload

* fix: perform another API call to fetch PR data

We need a second API request, as the issue_comment API does not retrieve
data about the pull request. See
https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#issue_comment

* fix: typo in parameters (#1045)

* fix: incorrect variable name (#1046)

* fix: do not use GT_REPO variable, use fixed repo name instead (#1049)

* fix: do not use GT_REPO variable, use fixed repo name

Because the repo is always Kibana, let's use it

* chore: remove unused echo
mdelapenya added a commit that referenced this pull request Apr 20, 2021
…bhook payload (#1043) | chore: add debug info for the payload (#1044) | fix: typo in parameters (#1045) | fix: incorrect variable name (#1046) | fix: do not use GT_REPO va (#1058)

* fix: wrong interpolation (#1042)

* chore: add debug traces for the webhook payload (#1043)

* chore: add debug info for the payload (#1044)

* fix: do not use variable names as variable prefix

* chore: print payload

* fix: perform another API call to fetch PR data

We need a second API request, as the issue_comment API does not retrieve
data about the pull request. See
https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#issue_comment

* fix: typo in parameters (#1045)

* fix: incorrect variable name (#1046)

* fix: do not use GT_REPO variable, use fixed repo name instead (#1049)

* fix: do not use GT_REPO variable, use fixed repo name

Because the repo is always Kibana, let's use it

* chore: remove unused echo
mdelapenya added a commit that referenced this pull request Apr 20, 2021
…bhook payload (#1043) | chore: add debug info for the payload (#1044) | fix: typo in parameters (#1045) | fix: incorrect variable name (#1046) | fix: do not use GT_REPO va (#1059)

* fix: wrong interpolation (#1042)

* chore: add debug traces for the webhook payload (#1043)

* chore: add debug info for the payload (#1044)

* fix: do not use variable names as variable prefix

* chore: print payload

* fix: perform another API call to fetch PR data

We need a second API request, as the issue_comment API does not retrieve
data about the pull request. See
https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#issue_comment

* fix: typo in parameters (#1045)

* fix: incorrect variable name (#1046)

* fix: do not use GT_REPO variable, use fixed repo name instead (#1049)

* fix: do not use GT_REPO variable, use fixed repo name

Because the repo is always Kibana, let's use it

* chore: remove unused echo
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Apr 21, 2021
* master:
  v2 refactor (elastic#1008)
  fix: use a version of kibana with the fix for fleet-server validations (elastic#1055)
  feat: add first scenario for Fleet Server (elastic#900)
  fix: do not use GT_REPO variable, use fixed repo name instead (elastic#1049)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants