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

Cherry-pick #20832 to 7.x: Setup python paths in test runner configuration #20892

Merged
merged 1 commit into from
Sep 1, 2020

Conversation

jsoriano
Copy link
Member

@jsoriano jsoriano commented Sep 1, 2020

Cherry-pick of PR #20832 to 7.x branch. Original message:

Add conftest.py files to projects with python tests. This file is imported by the test runner. Use it to setup python paths so tests don't need to care about them depending on where they are located, and we control paths from central points.

Use the python tests runner to setup python paths so each test doesn't
need to setup their own python paths.

(cherry picked from commit 42a53eb)
@jsoriano jsoriano requested review from a team as code owners September 1, 2020 11:30
@jsoriano jsoriano added [zube]: In Review backport Team:Integrations Label for the Integrations team labels Sep 1, 2020
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Sep 1, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Sep 1, 2020
@elasticmachine
Copy link
Collaborator

💔 Tests Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #20892 opened]

  • Start Time: 2020-09-01T11:31:40.571+0000

  • Duration: 104 min 11 sec

Test stats 🧪

Test Results
Failed 2
Passed 15273
Skipped 1770
Total 17045

Test errors

Expand to view the tests failures

  • Name: Build and Test / Elastic Agent Mac OS X / TestConfigurableService – operation

    • Age: 1
    • Duration: 0
    • Error Details: Failed
  • Name: Build and Test / Filebeat oss / test_default_settings – filebeat.tests.system.test_autodiscover.TestAutodiscover

    • Age: 1
    • Duration: 90.003
    • Error Details: Failed: Timeout >90.0s

Steps errors

Expand to view the steps failures

  • Name: Mage build unitTest

    • Description: mage build unitTest

    • Duration: 72 min 7 sec

    • Start Time: 2020-09-01T12:02:23.082+0000

    • log

  • Name: Recursively delete the current directory from the workspace

    • Description: script returned exit code 1

    • Duration: 0 min 12 sec

    • Start Time: 2020-09-01T13:14:39.977+0000

    • log

  • Name: Mage build test

    • Description: mage build test

    • Duration: 30 min 55 sec

    • Start Time: 2020-09-01T11:55:41.810+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-09-01T13:15:02.278Z] [Google Cloud Storage Plugin] Found 1 files to download from pattern: gs://beats-ci-temp/Beats/beats/PR-20892-1/source/source.tgz
[2020-09-01T13:15:02.298Z] [Google Cloud Storage Plugin] Downloading: Beats/beats/PR-20892-1/source/source.tgz to local path: /var/lib/jenkins/workspace/Beats_beats_PR-20892/source.tgz
[2020-09-01T13:15:10.183Z] + tar --version
[2020-09-01T13:15:10.500Z] + tar -xpf source.tgz
[2020-09-01T13:15:20.874Z] + rm source.tgz
[2020-09-01T13:15:20.899Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats
[2020-09-01T13:15:20.948Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Lint
[2020-09-01T13:15:21.111Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Winlogbeat-oss
[2020-09-01T13:15:21.273Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Elastic-Agent-x-pack
[2020-09-01T13:15:21.438Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Auditbeat-crosscompile
[2020-09-01T13:15:21.602Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/dockerlogbeat
[2020-09-01T13:15:21.771Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Generators-Metricbeat-Linux
[2020-09-01T13:15:21.933Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Journalbeat
[2020-09-01T13:15:22.098Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Functionbeat-x-pack
[2020-09-01T13:15:22.268Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Packetbeat-Linux
[2020-09-01T13:15:22.429Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Elastic-Agent-x-pack-Windows
[2020-09-01T13:15:22.593Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-09-01T13:15:22.755Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Heartbeat-Windows
[2020-09-01T13:15:22.918Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Auditbeat-oss-Windows
[2020-09-01T13:15:23.079Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Heartbeat-oss
[2020-09-01T13:15:23.241Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-09-01T13:15:23.408Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Auditbeat-x-pack-Windows
[2020-09-01T13:15:23.574Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Auditbeat-x-pack
[2020-09-01T13:15:23.738Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Auditbeat-oss-Linux
[2020-09-01T13:15:23.906Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Winlogbeat-Windows-x-pack
[2020-09-01T13:15:24.078Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Filebeat-x-pack-Windows
[2020-09-01T13:15:24.241Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Filebeat-Windows
[2020-09-01T13:15:24.409Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Heartbeat-Mac-OS-X
[2020-09-01T13:15:24.569Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Libbeat-x-pack
[2020-09-01T13:15:24.732Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Filebeat-x-pack-Mac-OS-X
[2020-09-01T13:15:24.892Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Packetbeat-Windows
[2020-09-01T13:15:25.055Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Winlogbeat-Windows
[2020-09-01T13:15:25.219Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Functionbeat-Windows
[2020-09-01T13:15:25.380Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Metricbeat-x-pack-Windows
[2020-09-01T13:15:25.540Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Auditbeat-oss-Mac-OS-X
[2020-09-01T13:15:25.706Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Auditbeat-x-pack-Mac-OS-X
[2020-09-01T13:15:25.884Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Filebeat-Mac-OS-X
[2020-09-01T13:15:26.061Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Metricbeat-Windows
[2020-09-01T13:15:26.233Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Generators-Beat-Linux
[2020-09-01T13:15:26.409Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Metricbeat-x-pack-Mac-OS-X
[2020-09-01T13:15:26.587Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Metricbeat-Mac-OS-X
[2020-09-01T13:15:26.764Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Packetbeat-Mac-OS-X
[2020-09-01T13:15:26.942Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Generators-Metricbeat-Mac-OS-X
[2020-09-01T13:15:27.117Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Filebeat-x-pack
[2020-09-01T13:15:27.292Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Generators-Beat-Mac-OS-X
[2020-09-01T13:15:27.465Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Filebeat-oss
[2020-09-01T13:15:27.640Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests
[2020-09-01T13:15:27.816Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Metricbeat-OSS-Python-Integration-tests
[2020-09-01T13:15:27.991Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-09-01T13:15:28.172Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Functionbeat-Mac-OS-X-x-pack
[2020-09-01T13:15:28.346Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Elastic-Agent-Mac-OS-X
[2020-09-01T13:15:28.882Z] + cat
[2020-09-01T13:15:28.882Z] + /usr/local/bin/runbld ./runbld-script --job-name elastic+beats+pull-request
[2020-09-01T13:15:28.882Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-09-01T13:15:35.527Z] runbld>>> runbld started
[2020-09-01T13:15:35.527Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-09-01T13:15:36.914Z] runbld>>> The following profiles matched the job 'elastic+beats+pull-request' in order of occurrence in the config (last value wins).
[2020-09-01T13:15:36.914Z] runbld>>> Matches in the system config:
[2020-09-01T13:15:36.914Z] runbld>>> - Matched ^elastic\+beats
[2020-09-01T13:15:36.914Z] runbld>>> - Matched ^elastic\+beats\+pull-request
[2020-09-01T13:15:37.855Z] runbld>>> Debug logging enabled.
[2020-09-01T13:15:37.855Z] runbld>>> Storing result
[2020-09-01T13:15:38.115Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-09-01T13:15:38.115Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20200901131537-289F2D74
[2020-09-01T13:15:38.115Z] runbld>>> Adding system facts.
[2020-09-01T13:15:39.063Z] runbld>>> Adding vcs info for the latest commit:  c2770228077ce8ede0a7faa1a50d2cb543d7997b
[2020-09-01T13:15:39.063Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-09-01T13:15:39.063Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-09-01T13:15:39.063Z] Processing JUnit reports with runbld...
[2020-09-01T13:15:39.063Z] + echo 'Processing JUnit reports with runbld...'
[2020-09-01T13:15:39.638Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-09-01T13:15:39.638Z] runbld>>> DURATION: 21ms
[2020-09-01T13:15:39.638Z] runbld>>> STDOUT: 40 bytes
[2020-09-01T13:15:39.638Z] runbld>>> STDERR: 49 bytes
[2020-09-01T13:15:39.638Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-09-01T13:15:39.638Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-20892
[2020-09-01T13:15:40.580Z] runbld>>> Storing build metadata: 
[2020-09-01T13:15:40.580Z] runbld>>> Adding test report.
[2020-09-01T13:15:40.580Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats
[2020-09-01T13:15:41.151Z] runbld>>> Found 136 test output files
[2020-09-01T13:15:43.065Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-09-01T13:15:43.065Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-09-01T13:15:43.065Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-09-01T13:15:43.065Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-09-01T13:15:43.065Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-09-01T13:15:44.007Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests/metricbeat/build/TEST-go-integration-graphite.xml
[2020-09-01T13:15:44.007Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20892/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests/metricbeat/build/TEST-go-integration-windows.xml
[2020-09-01T13:15:44.268Z] runbld>>> Test output logs contained: Errors: 0 Failures: 2 Tests: 16894 Skipped: 1516
[2020-09-01T13:15:44.529Z] runbld>>> Storing result
[2020-09-01T13:15:44.529Z] runbld>>> FAILURES: 2
[2020-09-01T13:15:45.100Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-09-01T13:15:45.100Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20200901131537-289F2D74
[2020-09-01T13:15:45.100Z] runbld>>> Email notification disabled by environment variable.
[2020-09-01T13:15:45.100Z] runbld>>> Slack notification disabled by environment variable.
[2020-09-01T13:15:50.656Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-20892
[2020-09-01T13:15:50.838Z] [INFO] getVaultSecret: Getting secrets
[2020-09-01T13:15:50.930Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-09-01T13:15:52.029Z] + chmod 755 generate-build-data.sh
[2020-09-01T13:15:52.029Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20892/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20892/runs/1 FAILURE 6251184
[2020-09-01T13:15:52.029Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20892/runs/1/steps/?limit=10000 -o steps-info.json

@jsoriano
Copy link
Member Author

jsoriano commented Sep 1, 2020

Failures in CI are not related to python imports.

@jsoriano jsoriano merged commit ad4f043 into elastic:7.x Sep 1, 2020
@jsoriano jsoriano deleted the backport_20832_7.x branch September 1, 2020 15:37
@zube zube bot removed the [zube]: Done label Dec 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Team:Integrations Label for the Integrations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants