Skip to content

Cherry-pick #19055 to 7.x: [Metricbeat] Update Couchbase module to 6.5 version#19460

Merged
sayden merged 2 commits intoelastic:7.xfrom
sayden:backport_19055_7.x
Jun 26, 2020
Merged

Cherry-pick #19055 to 7.x: [Metricbeat] Update Couchbase module to 6.5 version#19460
sayden merged 2 commits intoelastic:7.xfrom
sayden:backport_19055_7.x

Conversation

@sayden
Copy link
Copy Markdown
Contributor

@sayden sayden commented Jun 26, 2020

Cherry-pick of PR #19055 to 7.x 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
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jun 26, 2020
@elasticmachine
Copy link
Copy Markdown
Contributor

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

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label 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
Copy Markdown
Contributor

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:44.120+0000

  • Duration: 164 min 12 sec

Test stats 🧪

Test Results
Failed 0
Passed 2248
Skipped 479
Total 2727

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:48:59.070+0000

    • log

  • Name: Install Go 1.13.10

    • Description: .ci/scripts/install-go.sh

    • Duration: 2 min 7 sec

    • Start Time: 2020-06-26T18:44:57.722+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-06-26T19:45:29.695Z] + .ci/scripts/install-terraform.sh
[2020-06-26T19:45:29.695Z] + MSG='parameter missing.'
[2020-06-26T19:45:29.695Z] + TERRAFORM_VERSION=0.12.24
[2020-06-26T19:45:29.695Z] + HOME=/var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460
[2020-06-26T19:45:29.695Z] + TERRAFORM_CMD=/var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460/bin/terraform
[2020-06-26T19:45:29.695Z] ++ uname -s
[2020-06-26T19:45:29.695Z] ++ tr '[:upper:]' '[:lower:]'
[2020-06-26T19:45:29.695Z] + OS=linux
[2020-06-26T19:45:29.695Z] + mkdir -p /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460/bin
[2020-06-26T19:45:29.695Z] + curl -sSLo - https://releases.hashicorp.com/terraform/0.12.24/terraform_0.12.24_linux_amd64.zip
[2020-06-26T19:45:30.268Z] ++ dirname /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460/bin/terraform
[2020-06-26T19:45:30.268Z] + unzip -o /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460/bin/terraform.zip -d /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460/bin
[2020-06-26T19:45:30.268Z] Archive:  /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460/bin/terraform.zip
[2020-06-26T19:45:30.842Z]   inflating: /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460/bin/terraform  
[2020-06-26T19:45:30.842Z] + rm /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460/bin/terraform.zip
[2020-06-26T19:45:30.842Z] + chmod +x /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460/bin/terraform
[2020-06-26T19:45:31.208Z] + make mage
[2020-06-26T19:45:31.208Z] Installing mage v1.9.0 from vendor dir.
[2020-06-26T19:45:32.156Z] /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460/.magefile cleaned
[2020-06-26T19:45:32.489Z] + git config --get user.email
[2020-06-26T19:45:32.490Z] + [ -z  ]
[2020-06-26T19:45:32.490Z] + git config user.email beatsmachine@users.noreply.github.com
[2020-06-26T19:45:32.490Z] + git config user.name beatsmachine
[2020-06-26T19:45:32.892Z] + .ci/scripts/terraform-cleanup.sh x-pack/metricbeat
[2020-06-26T19:45:32.892Z] + DIRECTORY=x-pack/metricbeat
[2020-06-26T19:45:32.892Z] + FAILED=0
[2020-06-26T19:45:32.892Z] ++ find x-pack/metricbeat -name terraform.tfstate
[2020-06-26T19:45:32.892Z] + exit 0
[2020-06-26T19:45:33.262Z] + curl -sSLo codecov https://codecov.io/bash
[2020-06-26T19:45:33.525Z] + FILE=auditbeat/build/coverage/full.cov
[2020-06-26T19:45:33.525Z] + [ -f auditbeat/build/coverage/full.cov ]
[2020-06-26T19:45:33.525Z] + FILE=filebeat/build/coverage/full.cov
[2020-06-26T19:45:33.525Z] + [ -f filebeat/build/coverage/full.cov ]
[2020-06-26T19:45:33.525Z] + FILE=heartbeat/build/coverage/full.cov
[2020-06-26T19:45:33.525Z] + [ -f heartbeat/build/coverage/full.cov ]
[2020-06-26T19:45:33.525Z] + FILE=libbeat/build/coverage/full.cov
[2020-06-26T19:45:33.525Z] + [ -f libbeat/build/coverage/full.cov ]
[2020-06-26T19:45:33.525Z] + FILE=metricbeat/build/coverage/full.cov
[2020-06-26T19:45:33.525Z] + [ -f metricbeat/build/coverage/full.cov ]
[2020-06-26T19:45:33.525Z] + FILE=packetbeat/build/coverage/full.cov
[2020-06-26T19:45:33.525Z] + [ -f packetbeat/build/coverage/full.cov ]
[2020-06-26T19:45:33.525Z] + FILE=winlogbeat/build/coverage/full.cov
[2020-06-26T19:45:33.525Z] + [ -f winlogbeat/build/coverage/full.cov ]
[2020-06-26T19:45:33.525Z] + FILE=journalbeat/build/coverage/full.cov
[2020-06-26T19:45:33.525Z] + [ -f journalbeat/build/coverage/full.cov ]
[2020-06-26T19:45:34.117Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460/src/github.com/elastic/beats
[2020-06-26T19:45:34.436Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-06-26T19:45:34.449Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460/src/github.com/elastic/beats/Lint
[2020-06-26T19:45:34.545Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests
[2020-06-26T19:45:34.627Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-06-26T19:45:34.710Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-06-26T19:45:34.786Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460/src/github.com/elastic/beats/Metricbeat-Windows
[2020-06-26T19:45:34.867Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460/src/github.com/elastic/beats/Metricbeat-x-pack-Windows
[2020-06-26T19:45:34.944Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460/src/github.com/elastic/beats/Metricbeat-Python-integration-tests
[2020-06-26T19:45:35.028Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-06-26T19:45:35.402Z] + cat
[2020-06-26T19:45:35.403Z] + /usr/local/bin/runbld ./runbld-script
[2020-06-26T19:45:35.403Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-06-26T19:45:41.985Z] runbld>>> runbld started
[2020-06-26T19:45:41.985Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-06-26T19:45:43.372Z] runbld>>> The following profiles matched the job 'Beats/beats-beats-mbp/PR-19460' in order of occurrence in the config (last value wins).
[2020-06-26T19:45:44.314Z] runbld>>> Debug logging enabled.
[2020-06-26T19:45:44.573Z] runbld>>> Storing result
[2020-06-26T19:45:44.573Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-06-26T19:45:44.573Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200626194544-C5A82F29
[2020-06-26T19:45:44.573Z] runbld>>> Adding system facts.
[2020-06-26T19:45:45.523Z] runbld>>> Adding vcs info for the latest commit:  a4863fa982588d355a7058d3ec3d46f4f99b5dd1
[2020-06-26T19:45:45.523Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-06-26T19:45:45.523Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-06-26T19:45:45.523Z] Processing JUnit reports with runbld...
[2020-06-26T19:45:45.523Z] + echo 'Processing JUnit reports with runbld...'
[2020-06-26T19:45:46.096Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-06-26T19:45:46.096Z] runbld>>> DURATION: 37ms
[2020-06-26T19:45:46.096Z] runbld>>> STDOUT: 40 bytes
[2020-06-26T19:45:46.096Z] runbld>>> STDERR: 49 bytes
[2020-06-26T19:45:46.096Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-06-26T19:45:46.096Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460/src/github.com/elastic/beats
[2020-06-26T19:45:47.531Z] runbld>>> Storing build metadata: 
[2020-06-26T19:45:47.531Z] runbld>>> Adding test report.
[2020-06-26T19:45:47.531Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460/src/github.com/elastic/beats
[2020-06-26T19:45:48.920Z] runbld>>> Found 31 test output files
[2020-06-26T19:45:48.920Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-06-26T19:45:48.920Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-06-26T19:45:48.920Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-06-26T19:45:48.920Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-06-26T19:45:48.920Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-06-26T19:45:49.496Z] runbld>>> Test output logs contained: Errors: 0 Failures: 0 Tests: 2727 Skipped: 413
[2020-06-26T19:45:49.496Z] runbld>>> Storing result
[2020-06-26T19:45:49.496Z] runbld>>> FAILURES: 0
[2020-06-26T19:45:49.756Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-06-26T19:45:49.756Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200626194544-C5A82F29
[2020-06-26T19:45:50.018Z] runbld>>> Email notification disabled by environment variable.
[2020-06-26T19:45:50.019Z] runbld>>> Slack notification disabled by environment variable.
[2020-06-26T19:45:55.527Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19460
[2020-06-26T19:45:55.738Z] [INFO] getVaultSecret: Getting secrets
[2020-06-26T19:45:55.793Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-06-26T19:45:56.534Z] + chmod 755 generate-build-data.sh
[2020-06-26T19:45:56.534Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-19460/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-19460/runs/3 FAILURE 9852153
[2020-06-26T19:45:56.534Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-19460/runs/3/steps/?limit=10000 -o steps-info.json
[2020-06-26T19:45:57.085Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-19460/runs/3/tests/?status=FAILED -o tests-errors.json

@jsoriano
Copy link
Copy Markdown
Member

jenkins run the tests please

@sayden
Copy link
Copy Markdown
Contributor Author

sayden commented Jun 26, 2020

Error in OSX seems unrelated

@sayden sayden merged commit e2744ea into elastic:7.x Jun 26, 2020
@sayden sayden deleted the backport_19055_7.x 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 [zube]: Done

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants