elastic / beats-tester

E2E tests for the Beats
18 stars 22 forks source link

[CI] enable slack notifications for build failures in branches/tags #164

Closed v1v closed 4 years ago

v1v commented 4 years ago

This a follow up for https://github.com/elastic/beats-tester/pull/162

Tests

image

elasticmachine commented 4 years ago

:broken_heart: Tests Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

#### Build stats * Build Cause: `[Pull request #164 updated]` * Start Time: 2020-08-13T10:29:12.535+0000 * Duration: 26 min 54 sec #### Test stats :test_tube: | Test | Results | | ------------ | :-----------------------------: | | Failed | 6 | | Passed | 359 | | Skipped | 270 | | Total | 635 |

Test errors

Expand to view the tests failures

* **Name**: `[tester-awslinux] Packaging tests Packetbeat: common : Download package sha512 url={{beat_url}}.sha512, dest={{workdir}}, validate_certs=no – /var/lib/jenkins/workspace/Beats_beats-tester-mbp_PR-164/src/roles/common/tasks/download.yml:2` * Age: 5 * Duration: 0.657186 * Error Details: Request failed * **Name**: `[tester-awslinux2] Packaging tests Packetbeat: common : Download package sha512 url={{beat_url}}.sha512, dest={{workdir}}, validate_certs=no – /var/lib/jenkins/workspace/Beats_beats-tester-mbp_PR-164/src/roles/common/tasks/download.yml:2` * Age: 5 * Duration: 0.674916 * Error Details: Request failed * **Name**: `[tester-centos6-32] Packaging tests Packetbeat: common : Download package sha512 url={{beat_url}}.sha512, dest={{workdir}}, validate_certs=no – /var/lib/jenkins/workspace/Beats_beats-tester-mbp_PR-164/src/roles/common/tasks/download.yml:2` * Age: 5 * Duration: 0.689711 * Error Details: Request failed * **Name**: `[tester-centos7-64] Packaging tests Packetbeat: common : Download package sha512 url={{beat_url}}.sha512, dest={{workdir}}, validate_certs=no – /var/lib/jenkins/workspace/Beats_beats-tester-mbp_PR-164/src/roles/common/tasks/download.yml:2` * Age: 5 * Duration: 0.703688 * Error Details: Request failed * **Name**: `[tester-centos6-64] Packaging tests Packetbeat: common : Download package sha512 url={{beat_url}}.sha512, dest={{workdir}}, validate_certs=no – /var/lib/jenkins/workspace/Beats_beats-tester-mbp_PR-164/src/roles/common/tasks/download.yml:2` * Age: 5 * Duration: 0.704605 * Error Details: Request failed * **Name**: `[tester-centos8-64] Packaging tests Packetbeat: common : Download package sha512 url={{beat_url}}.sha512, dest={{workdir}}, validate_certs=no – /var/lib/jenkins/workspace/Beats_beats-tester-mbp_PR-164/src/roles/common/tasks/download.yml:2` * Age: 5 * Duration: 1.316402 * Error Details: Request failed

Steps errors

Expand to view the steps failures

* **Name**: `make batch` * Description: * Duration: 22 min 41 sec * Start Time: 2020-08-13T10:32:55.334+0000 * [log](https://beats-ci.elastic.co//blue/rest/organizations/jenkins/pipelines/Beats/pipelines/beats-tester-mbp/pipelines/PR-164/runs/5/steps/109/log) * **Name**: `Recursively delete the current directory from the workspace` * Description: script returned exit code 2 * Duration: 0 min 1 sec * Start Time: 2020-08-13T10:55:04.429+0000 * [log](https://beats-ci.elastic.co//blue/rest/organizations/jenkins/pipelines/Beats/pipelines/beats-tester-mbp/pipelines/PR-164/runs/5/steps/119/log)

Log output

Expand to view the last 100 lines of log output

``` [2020-08-13T10:54:34.100Z] [2020-08-13T10:54:34.101Z] TASK [common : Compute vars (redhat)] ****************************************** [2020-08-13T10:54:34.101Z] ok: [tester-awslinux] [2020-08-13T10:54:34.101Z] ok: [tester-awslinux2] [2020-08-13T10:54:34.101Z] ok: [tester-centos6-32] [2020-08-13T10:54:34.101Z] ok: [tester-centos6-64] [2020-08-13T10:54:34.101Z] ok: [tester-centos7-64] [2020-08-13T10:54:34.101Z] ok: [tester-centos8-64] [2020-08-13T10:54:34.101Z] [2020-08-13T10:54:34.101Z] TASK [common : Compute vars (darwin)] ****************************************** [2020-08-13T10:54:34.101Z] skipping: [tester-awslinux] [2020-08-13T10:54:34.101Z] skipping: [tester-awslinux2] [2020-08-13T10:54:34.101Z] skipping: [tester-centos6-32] [2020-08-13T10:54:34.101Z] skipping: [tester-centos6-64] [2020-08-13T10:54:34.101Z] skipping: [tester-centos7-64] [2020-08-13T10:54:34.101Z] skipping: [tester-centos8-64] [2020-08-13T10:54:34.101Z] [2020-08-13T10:54:34.101Z] TASK [common : Compute vars (windows)] ***************************************** [2020-08-13T10:54:34.101Z] skipping: [tester-awslinux] [2020-08-13T10:54:34.101Z] skipping: [tester-awslinux2] [2020-08-13T10:54:34.803Z] skipping: [tester-centos6-32] [2020-08-13T10:54:34.803Z] skipping: [tester-centos6-64] [2020-08-13T10:54:34.803Z] skipping: [tester-centos7-64] [2020-08-13T10:54:34.803Z] skipping: [tester-centos8-64] [2020-08-13T10:54:34.803Z] [2020-08-13T10:54:34.803Z] TASK [common : Display all variables/facts known for a host] ******************* [2020-08-13T10:54:34.803Z] skipping: [tester-awslinux] [2020-08-13T10:54:34.803Z] skipping: [tester-awslinux2] [2020-08-13T10:54:34.803Z] skipping: [tester-centos6-32] [2020-08-13T10:54:34.803Z] skipping: [tester-centos6-64] [2020-08-13T10:54:34.803Z] skipping: [tester-centos7-64] [2020-08-13T10:54:34.803Z] skipping: [tester-centos8-64] [2020-08-13T10:54:34.803Z] [2020-08-13T10:54:34.803Z] TASK [common : Download package and checksum] ********************************** [2020-08-13T10:54:34.803Z] included: /var/lib/jenkins/workspace/Beats_beats-tester-mbp_PR-164/src/roles/common/tasks/download.yml for tester-awslinux, tester-awslinux2, tester-centos6-32, tester-centos6-64, tester-centos7-64, tester-centos8-64 [2020-08-13T10:54:34.803Z] [2020-08-13T10:54:34.803Z] TASK [common : Download package sha512] **************************************** [2020-08-13T10:54:35.507Z] fatal: [tester-awslinux]: FAILED! => {"changed": false, "dest": "/root", "elapsed": 0, "gid": 0, "group": "root", "mode": "0550", "msg": "Request failed", "owner": "root", "response": "HTTP Error 404: Not Found", "size": 4096, "state": "directory", "status_code": 404, "uid": 0, "url": "https://storage.googleapis.com/beats-ci-artifacts/snapshots/packetbeat/packetbeat-8.0.0-SNAPSHOT-x86_64.rpm.sha512"} [2020-08-13T10:54:35.507Z] fatal: [tester-awslinux2]: FAILED! => {"changed": false, "dest": "/root", "elapsed": 0, "gid": 0, "group": "root", "mode": "0550", "msg": "Request failed", "owner": "root", "response": "HTTP Error 404: Not Found", "size": 198, "state": "directory", "status_code": 404, "uid": 0, "url": "https://storage.googleapis.com/beats-ci-artifacts/snapshots/packetbeat/packetbeat-8.0.0-SNAPSHOT-x86_64.rpm.sha512"} [2020-08-13T10:54:35.507Z] fatal: [tester-centos6-32]: FAILED! => {"changed": false, "dest": "/root", "elapsed": 0, "gid": 0, "group": "root", "mode": "0550", "msg": "Request failed", "owner": "root", "response": "HTTP Error 404: Not Found", "secontext": "system_u:object_r:admin_home_t:s0", "size": 4096, "state": "directory", "status_code": 404, "uid": 0, "url": "https://storage.googleapis.com/beats-ci-artifacts/snapshots/packetbeat/packetbeat-8.0.0-SNAPSHOT-i686.rpm.sha512"} [2020-08-13T10:54:35.507Z] fatal: [tester-centos7-64]: FAILED! => {"changed": false, "dest": "/root", "elapsed": 0, "gid": 0, "group": "root", "mode": "0550", "msg": "Request failed", "owner": "root", "response": "HTTP Error 404: Not Found", "secontext": "system_u:object_r:admin_home_t:s0", "size": 230, "state": "directory", "status_code": 404, "uid": 0, "url": "https://storage.googleapis.com/beats-ci-artifacts/snapshots/packetbeat/packetbeat-8.0.0-SNAPSHOT-x86_64.rpm.sha512"} [2020-08-13T10:54:35.507Z] fatal: [tester-centos6-64]: FAILED! => {"changed": false, "dest": "/root", "elapsed": 0, "gid": 0, "group": "root", "mode": "0550", "msg": "Request failed", "owner": "root", "response": "HTTP Error 404: Not Found", "secontext": "system_u:object_r:admin_home_t:s0", "size": 4096, "state": "directory", "status_code": 404, "uid": 0, "url": "https://storage.googleapis.com/beats-ci-artifacts/snapshots/packetbeat/packetbeat-8.0.0-SNAPSHOT-x86_64.rpm.sha512"} [2020-08-13T10:54:36.212Z] fatal: [tester-centos8-64]: FAILED! => {"changed": false, "dest": "/root", "elapsed": 0, "gid": 0, "group": "root", "mode": "0550", "msg": "Request failed", "owner": "root", "response": "HTTP Error 404: Not Found", "secontext": "system_u:object_r:admin_home_t:s0", "size": 225, "state": "directory", "status_code": 404, "uid": 0, "url": "https://storage.googleapis.com/beats-ci-artifacts/snapshots/packetbeat/packetbeat-8.0.0-SNAPSHOT-x86_64.rpm.sha512"} [2020-08-13T10:54:36.212Z] [2020-08-13T10:54:36.212Z] PLAY RECAP ********************************************************************* [2020-08-13T10:54:36.212Z] tester-awslinux : ok=57 changed=29 unreachable=0 failed=1 skipped=45 rescued=0 ignored=0 [2020-08-13T10:54:36.212Z] tester-awslinux2 : ok=57 changed=29 unreachable=0 failed=1 skipped=45 rescued=0 ignored=0 [2020-08-13T10:54:36.212Z] tester-centos6-32 : ok=57 changed=29 unreachable=0 failed=1 skipped=45 rescued=0 ignored=0 [2020-08-13T10:54:36.212Z] tester-centos6-64 : ok=57 changed=29 unreachable=0 failed=1 skipped=45 rescued=0 ignored=0 [2020-08-13T10:54:36.212Z] tester-centos7-64 : ok=57 changed=29 unreachable=0 failed=1 skipped=45 rescued=0 ignored=0 [2020-08-13T10:54:36.212Z] tester-centos8-64 : ok=57 changed=29 unreachable=0 failed=1 skipped=45 rescued=0 ignored=0 [2020-08-13T10:54:36.212Z] [2020-08-13T10:54:36.212Z] Makefile:51: recipe for target 'ansible-playbook-run-elastic' failed [2020-08-13T10:54:36.212Z] make[2]: *** [ansible-playbook-run-elastic] Error 2 [2020-08-13T10:54:36.212Z] make[2]: Leaving directory '/var/lib/jenkins/workspace/Beats_beats-tester-mbp_PR-164/src' [2020-08-13T10:54:36.212Z] Makefile:36: recipe for target 'run-group' failed [2020-08-13T10:54:36.212Z] make[1]: *** [run-group] Error 2 [2020-08-13T10:54:36.212Z] make[1]: Leaving directory '/var/lib/jenkins/workspace/Beats_beats-tester-mbp_PR-164/src' [2020-08-13T10:54:36.212Z] Makefile:29: recipe for target 'batch' failed [2020-08-13T10:54:36.212Z] make: *** [batch] Error 1 [2020-08-13T10:54:36.574Z] Post stage [2020-08-13T10:54:36.584Z] Running in /var/lib/jenkins/workspace/Beats_beats-tester-mbp_PR-164/src [2020-08-13T10:54:36.707Z] Recording test results [2020-08-13T10:54:37.646Z] Archiving artifacts [2020-08-13T10:54:39.289Z] + make clean [2020-08-13T10:54:39.289Z] vagrant destroy -f [2020-08-13T10:54:44.489Z] ==> tester-ubuntu2004-64: VM not created. Moving on... [2020-08-13T10:54:45.192Z] ==> tester-debian10-64: VM not created. Moving on... [2020-08-13T10:54:45.192Z] ==> tester-win19-64: VM not created. Moving on... [2020-08-13T10:54:46.649Z] ==> tester-centos8-64: Forcing shutdown of VM... [2020-08-13T10:54:47.355Z] ==> tester-centos8-64: Destroying VM and associated drives... [2020-08-13T10:54:48.811Z] ==> tester-awslinux2: Forcing shutdown of VM... [2020-08-13T10:54:50.272Z] ==> tester-awslinux2: Destroying VM and associated drives... [2020-08-13T10:54:50.975Z] ==> tester-ubuntu1804-64: VM not created. Moving on... [2020-08-13T10:54:51.678Z] ==> tester-ubuntu1404-64: VM not created. Moving on... [2020-08-13T10:54:51.678Z] ==> tester-sles12-64: VM not created. Moving on... [2020-08-13T10:54:52.382Z] ==> tester-debian9-64: VM not created. Moving on... [2020-08-13T10:54:53.258Z] ==> tester-awslinux: Forcing shutdown of VM... [2020-08-13T10:54:54.716Z] ==> tester-awslinux: Destroying VM and associated drives... [2020-08-13T10:54:54.716Z] ==> tester-ubuntu1604-64: VM not created. Moving on... [2020-08-13T10:54:55.419Z] ==> tester-win12-64: VM not created. Moving on... [2020-08-13T10:54:56.122Z] ==> tester-centos7-64: Forcing shutdown of VM... [2020-08-13T10:54:57.583Z] ==> tester-centos7-64: Destroying VM and associated drives... [2020-08-13T10:54:58.286Z] ==> tester-debian8-64: VM not created. Moving on... [2020-08-13T10:54:58.989Z] ==> tester-ubuntu1204-32: VM not created. Moving on... [2020-08-13T10:54:59.693Z] ==> tester-centos6-64: Forcing shutdown of VM... [2020-08-13T10:55:01.151Z] ==> tester-centos6-64: Destroying VM and associated drives... [2020-08-13T10:55:02.609Z] ==> tester-centos6-32: Forcing shutdown of VM... [2020-08-13T10:55:04.068Z] ==> tester-centos6-32: Destroying VM and associated drives... [2020-08-13T10:55:04.069Z] Makefile:71: recipe for target 'clean' failed [2020-08-13T10:55:04.069Z] make: [clean] Error 2 (ignored) [2020-08-13T10:55:04.069Z] rm -r .vagrant [2020-08-13T10:55:05.168Z] Failed in branch Matrix - GROUPS = 'centos debian sles windows' [2020-08-13T10:55:05.598Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats-tester-mbp_PR-164 [2020-08-13T10:55:05.787Z] [INFO] getVaultSecret: Getting secrets [2020-08-13T10:55:05.853Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID [2020-08-13T10:55:06.628Z] + chmod 755 generate-build-data.sh [2020-08-13T10:55:06.628Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-tester-mbp/PR-164/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-tester-mbp/PR-164/runs/5 FAILURE 1553834 [2020-08-13T10:55:06.628Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-tester-mbp/PR-164/runs/5/steps/?limit=10000 -o steps-info.json [2020-08-13T10:55:07.179Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-tester-mbp/PR-164/runs/5/tests/?status=FAILED -o tests-errors.json ```