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 #19055 to 7.8: [Metricbeat] Update Couchbase module to 6.5 version #19461

Merged
merged 2 commits into from
Jun 26, 2020

Conversation

sayden
Copy link
Contributor

@sayden sayden commented Jun 26, 2020

Cherry-pick of PR #19055 to 7.8 branch. Original message:

What does this PR do?

Changes the number format of some fields that seems to be returned in floating point while we expect them like integers.

It seems that some of the values returned by Couchbase are in floating point numbers. In fact, all the data is returned in JSON format so every single number might be a floating point number.

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 added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Author's Checklist

  • Check that dashboards still works in v4.5, v5 and v6.5

How to test this PR locally

Just execute the module normally. Unfortunately, the bug can't be reproduce easily (or at all)

Related issues

Fixes: #18949
Fixes: #18595

@sayden sayden added [zube]: In Review backport Team:Services (Deprecated) Label for the former Integrations-Services team labels Jun 26, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-services (Team:Services)

@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Jun 26, 2020
@jsoriano jsoriano self-requested a review June 26, 2020 15:13
@sayden sayden self-assigned this Jun 26, 2020
@elasticmachine
Copy link
Collaborator

elasticmachine commented Jun 26, 2020

💔 Build Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [jsoriano commented: jenkins run the tests please]

  • Start Time: 2020-06-26T17:01:59.432+0000

  • Duration: 157 min 59 sec

Test stats 🧪

Test Results
Failed 0
Passed 2227
Skipped 479
Total 2706

Steps errors

Expand to view the steps failures

  • Name: Install Go 1.13.10
    • Description: .ci/scripts/install-go.sh

    • Duration: 2 min 22 sec

    • Start Time: 2020-06-26T18:54:34.103+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-06-26T19:38:23.431Z] + MSG='parameter missing.'
[2020-06-26T19:38:23.431Z] + TERRAFORM_VERSION=0.12.24
[2020-06-26T19:38:23.431Z] + HOME=/var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461
[2020-06-26T19:38:23.431Z] + TERRAFORM_CMD=/var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/bin/terraform
[2020-06-26T19:38:23.431Z] ++ uname -s
[2020-06-26T19:38:23.431Z] ++ tr '[:upper:]' '[:lower:]'
[2020-06-26T19:38:23.431Z] + OS=linux
[2020-06-26T19:38:23.431Z] + mkdir -p /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/bin
[2020-06-26T19:38:23.431Z] + curl -sSLo - https://releases.hashicorp.com/terraform/0.12.24/terraform_0.12.24_linux_amd64.zip
[2020-06-26T19:38:30.025Z] ++ dirname /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/bin/terraform
[2020-06-26T19:38:30.025Z] + unzip -o /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/bin/terraform.zip -d /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/bin
[2020-06-26T19:38:30.025Z] Archive:  /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/bin/terraform.zip
[2020-06-26T19:38:30.288Z]   inflating: /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/bin/terraform  
[2020-06-26T19:38:30.288Z] + rm /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/bin/terraform.zip
[2020-06-26T19:38:30.288Z] + chmod +x /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/bin/terraform
[2020-06-26T19:38:30.666Z] + make mage
[2020-06-26T19:38:30.666Z] Installing mage v1.9.0 from vendor dir.
[2020-06-26T19:38:32.057Z] /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/.magefile cleaned
[2020-06-26T19:38:32.404Z] + git config --get user.email
[2020-06-26T19:38:32.404Z] + [ -z  ]
[2020-06-26T19:38:32.404Z] + git config user.email beatsmachine@users.noreply.github.com
[2020-06-26T19:38:32.404Z] + git config user.name beatsmachine
[2020-06-26T19:38:32.828Z] + .ci/scripts/terraform-cleanup.sh x-pack/metricbeat
[2020-06-26T19:38:32.828Z] + DIRECTORY=x-pack/metricbeat
[2020-06-26T19:38:32.828Z] + FAILED=0
[2020-06-26T19:38:32.828Z] ++ find x-pack/metricbeat -name terraform.tfstate
[2020-06-26T19:38:32.828Z] + exit 0
[2020-06-26T19:38:33.234Z] + curl -sSLo codecov https://codecov.io/bash
[2020-06-26T19:38:33.498Z] + FILE=auditbeat/build/coverage/full.cov
[2020-06-26T19:38:33.498Z] + [ -f auditbeat/build/coverage/full.cov ]
[2020-06-26T19:38:33.498Z] + FILE=filebeat/build/coverage/full.cov
[2020-06-26T19:38:33.498Z] + [ -f filebeat/build/coverage/full.cov ]
[2020-06-26T19:38:33.498Z] + FILE=heartbeat/build/coverage/full.cov
[2020-06-26T19:38:33.498Z] + [ -f heartbeat/build/coverage/full.cov ]
[2020-06-26T19:38:33.498Z] + FILE=libbeat/build/coverage/full.cov
[2020-06-26T19:38:33.498Z] + [ -f libbeat/build/coverage/full.cov ]
[2020-06-26T19:38:33.498Z] + FILE=metricbeat/build/coverage/full.cov
[2020-06-26T19:38:33.498Z] + [ -f metricbeat/build/coverage/full.cov ]
[2020-06-26T19:38:33.498Z] + FILE=packetbeat/build/coverage/full.cov
[2020-06-26T19:38:33.498Z] + [ -f packetbeat/build/coverage/full.cov ]
[2020-06-26T19:38:33.498Z] + FILE=winlogbeat/build/coverage/full.cov
[2020-06-26T19:38:33.498Z] + [ -f winlogbeat/build/coverage/full.cov ]
[2020-06-26T19:38:33.498Z] + FILE=journalbeat/build/coverage/full.cov
[2020-06-26T19:38:33.498Z] + [ -f journalbeat/build/coverage/full.cov ]
[2020-06-26T19:38:34.305Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/src/github.com/elastic/beats
[2020-06-26T19:38:34.680Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-06-26T19:38:34.702Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/src/github.com/elastic/beats/Lint
[2020-06-26T19:38:34.863Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests
[2020-06-26T19:38:34.989Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-06-26T19:38:35.105Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-06-26T19:38:35.214Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/src/github.com/elastic/beats/Metricbeat-Windows
[2020-06-26T19:38:35.331Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/src/github.com/elastic/beats/Metricbeat-x-pack-Windows
[2020-06-26T19:38:35.451Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/src/github.com/elastic/beats/Metricbeat-Python-integration-tests
[2020-06-26T19:38:35.673Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-06-26T19:38:36.143Z] + cat
[2020-06-26T19:38:36.144Z] + /usr/local/bin/runbld ./runbld-script
[2020-06-26T19:38:36.144Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-06-26T19:38:42.748Z] runbld>>> runbld started
[2020-06-26T19:38:42.748Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-06-26T19:38:44.680Z] runbld>>> The following profiles matched the job 'Beats/beats-beats-mbp/PR-19461' in order of occurrence in the config (last value wins).
[2020-06-26T19:38:46.073Z] runbld>>> Debug logging enabled.
[2020-06-26T19:38:46.073Z] runbld>>> Storing result
[2020-06-26T19:38:46.073Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-06-26T19:38:46.073Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200626193845-AE9A9E8E
[2020-06-26T19:38:46.073Z] runbld>>> Adding system facts.
[2020-06-26T19:38:47.018Z] runbld>>> Adding vcs info for the latest commit:  a9f6a657e5142754177a5b7326ae352c3689e039
[2020-06-26T19:38:47.018Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-06-26T19:38:47.018Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-06-26T19:38:47.018Z] Processing JUnit reports with runbld...
[2020-06-26T19:38:47.018Z] + echo 'Processing JUnit reports with runbld...'
[2020-06-26T19:38:47.592Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-06-26T19:38:47.592Z] runbld>>> DURATION: 28ms
[2020-06-26T19:38:47.592Z] runbld>>> STDOUT: 40 bytes
[2020-06-26T19:38:47.592Z] runbld>>> STDERR: 49 bytes
[2020-06-26T19:38:47.592Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-06-26T19:38:47.592Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/src/github.com/elastic/beats
[2020-06-26T19:38:48.997Z] runbld>>> Storing build metadata: 
[2020-06-26T19:38:48.997Z] runbld>>> Adding test report.
[2020-06-26T19:38:48.997Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/src/github.com/elastic/beats
[2020-06-26T19:38:50.389Z] runbld>>> Found 31 test output files
[2020-06-26T19:38:50.658Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-06-26T19:38:50.658Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-06-26T19:38:50.659Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-cloudfoundry.xml
[2020-06-26T19:38:50.659Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-06-26T19:38:50.919Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-06-26T19:38:50.919Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-06-26T19:38:51.181Z] runbld>>> Test output logs contained: Errors: 0 Failures: 0 Tests: 2706 Skipped: 413
[2020-06-26T19:38:51.442Z] runbld>>> Storing result
[2020-06-26T19:38:51.442Z] runbld>>> FAILURES: 0
[2020-06-26T19:38:51.702Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-06-26T19:38:51.702Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200626193845-AE9A9E8E
[2020-06-26T19:38:51.962Z] runbld>>> Email notification disabled by environment variable.
[2020-06-26T19:38:51.962Z] runbld>>> Slack notification disabled by environment variable.
[2020-06-26T19:38:57.738Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19461
[2020-06-26T19:38:57.854Z] [INFO] getVaultSecret: Getting secrets
[2020-06-26T19:38:57.910Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-06-26T19:38:58.676Z] + chmod 755 generate-build-data.sh
[2020-06-26T19:38:58.676Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-19461/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-19461/runs/3 FAILURE 9418982
[2020-06-26T19:38:58.676Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-19461/runs/3/steps/?limit=10000 -o steps-info.json
[2020-06-26T19:38:59.227Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-19461/runs/3/tests/?status=FAILED -o tests-errors.json

@jsoriano
Copy link
Member

jenkins run the tests please

@sayden
Copy link
Contributor Author

sayden commented Jun 26, 2020

Error in OSX seems unrelated

@sayden sayden merged commit bad48d6 into elastic:7.8 Jun 26, 2020
@zube zube bot removed the [zube]: Done label Oct 13, 2020
@sayden sayden deleted the backport_19055_7.8 branch October 29, 2021 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Team:Services (Deprecated) Label for the former Integrations-Services team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants