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

Ensure mage is installed to the expected version #23313

Merged
merged 1 commit into from
Dec 29, 2020

Conversation

jsoriano
Copy link
Member

@jsoriano jsoriano commented Dec 29, 2020

What does this PR do?

Ensure mage is installed to the expected version in makefile target.

Why is it important?

Fix linting in master branch.

Mage 0.11 has been released and installation using the make target is not specifying a version, which changes go mod files, breaking linting.

@jsoriano jsoriano added the Team:Integrations Label for the Integrations team label Dec 29, 2020
@jsoriano jsoriano self-assigned this Dec 29, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@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 Dec 29, 2020
@jsoriano jsoriano added needs_backport PR is waiting to be backported to other branches. v6.8.14 v7.10.2 v7.11.0 Team:Automation Label for the Observability productivity team labels Dec 29, 2020
@elasticmachine
Copy link
Collaborator

💔 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 #23313 opened

  • Start Time: 2020-12-29T14:11:09.446+0000

  • Duration: 54 min 34 sec

Test stats 🧪

Test Results
Failed 1
Passed 15328
Skipped 1317
Total 16646

Test errors 1

Expand to view the tests failures

Build&Test / libbeat-build / TestAutodiscoverWithMutlipleEntries – autodiscover
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

         autodiscover_test.go:447: 
        autodiscover_test.go:469: 
        autodiscover_test.go:473: 
        autodiscover_test.go:515: Waiting for condition 
    

Steps errors 4

Expand to view the steps failures

libbeat-build - mage build test
  • Took 2 min 41 sec . View more details on here
  • Description: mage build test
Terraform Apply on x-pack/metricbeat/module/aws
  • Took 0 min 15 sec . View more details on here
  • Description: terraform apply -auto-approve
Terraform Apply on x-pack/metricbeat/module/aws
  • Took 0 min 15 sec . View more details on here
  • Description: terraform apply -auto-approve
Error signal
  • Took 0 min 0 sec . View more details on here
  • Description: Error 'hudson.AbortException: script returned exit code 1'

Log output

Expand to view the last 100 lines of log output

[2020-12-29T15:03:47.565Z] Versions match. No need to install Go. Exiting.
[2020-12-29T15:03:47.565Z] + exit 0
[2020-12-29T15:03:47.565Z] + .ci/scripts/install-docker-compose.sh
[2020-12-29T15:03:47.565Z] + MSG='environment variable missing: DOCKER_COMPOSE_VERSION.'
[2020-12-29T15:03:47.565Z] + DOCKER_COMPOSE_VERSION=1.21.0
[2020-12-29T15:03:47.565Z] + HOME=/var/lib/jenkins/workspace/Beats_beats_PR-23313
[2020-12-29T15:03:47.565Z] + command -v docker-compose
[2020-12-29T15:03:47.565Z] /usr/local/bin/docker-compose
[2020-12-29T15:03:47.565Z] + echo 'Found docker-compose. Checking version..'
[2020-12-29T15:03:47.565Z] Found docker-compose. Checking version..
[2020-12-29T15:03:47.565Z] ++ docker-compose --version
[2020-12-29T15:03:47.565Z] ++ awk '{print $3}'
[2020-12-29T15:03:47.565Z] ++ sed s/,//
[2020-12-29T15:03:48.137Z] + FOUND_DOCKER_COMPOSE_VERSION=1.25.5
[2020-12-29T15:03:48.137Z] + '[' 1.25.5 == 1.21.0 ']'
[2020-12-29T15:03:48.137Z] + echo 'UNMET DEP: Installing docker-compose'
[2020-12-29T15:03:48.137Z] UNMET DEP: Installing docker-compose
[2020-12-29T15:03:48.137Z] + DC_CMD=/var/lib/jenkins/workspace/Beats_beats_PR-23313/bin/docker-compose
[2020-12-29T15:03:48.137Z] + mkdir -p /var/lib/jenkins/workspace/Beats_beats_PR-23313/bin
[2020-12-29T15:03:48.137Z] ++ uname -s
[2020-12-29T15:03:48.137Z] ++ uname -m
[2020-12-29T15:03:48.137Z] + curl -sSLo /var/lib/jenkins/workspace/Beats_beats_PR-23313/bin/docker-compose https://github.com/docker/compose/releases/download/1.21.0/docker-compose-Linux-x86_64
[2020-12-29T15:03:48.704Z] + chmod +x /var/lib/jenkins/workspace/Beats_beats_PR-23313/bin/docker-compose
[2020-12-29T15:03:48.704Z] + .ci/scripts/install-terraform.sh
[2020-12-29T15:03:48.704Z] + MSG='environment variable missing.'
[2020-12-29T15:03:48.704Z] + TERRAFORM_VERSION=0.12.24
[2020-12-29T15:03:48.704Z] + HOME=/var/lib/jenkins/workspace/Beats_beats_PR-23313
[2020-12-29T15:03:48.704Z] + TERRAFORM_CMD=/var/lib/jenkins/workspace/Beats_beats_PR-23313/bin/terraform
[2020-12-29T15:03:48.704Z] ++ uname -s
[2020-12-29T15:03:48.704Z] ++ tr '[:upper:]' '[:lower:]'
[2020-12-29T15:03:48.704Z] + OS=linux
[2020-12-29T15:03:48.704Z] + command -v terraform
[2020-12-29T15:03:48.704Z] + echo 'UNMET DEP: Installing Terraform'
[2020-12-29T15:03:48.704Z] UNMET DEP: Installing Terraform
[2020-12-29T15:03:48.704Z] + mkdir -p /var/lib/jenkins/workspace/Beats_beats_PR-23313/bin
[2020-12-29T15:03:48.704Z] + curl -sSLo - https://releases.hashicorp.com/terraform/0.12.24/terraform_0.12.24_linux_amd64.zip
[2020-12-29T15:03:49.639Z] ++ dirname /var/lib/jenkins/workspace/Beats_beats_PR-23313/bin/terraform
[2020-12-29T15:03:49.639Z] + unzip -o /var/lib/jenkins/workspace/Beats_beats_PR-23313/bin/terraform.zip -d /var/lib/jenkins/workspace/Beats_beats_PR-23313/bin
[2020-12-29T15:03:49.639Z] Archive:  /var/lib/jenkins/workspace/Beats_beats_PR-23313/bin/terraform.zip
[2020-12-29T15:03:49.897Z]   inflating: /var/lib/jenkins/workspace/Beats_beats_PR-23313/bin/terraform  
[2020-12-29T15:03:49.897Z] + rm /var/lib/jenkins/workspace/Beats_beats_PR-23313/bin/terraform.zip
[2020-12-29T15:03:49.897Z] + chmod +x /var/lib/jenkins/workspace/Beats_beats_PR-23313/bin/terraform
[2020-12-29T15:03:49.897Z] + make mage
[2020-12-29T15:03:49.897Z] Installing mage v1.10.0.
[2020-12-29T15:03:50.831Z] go: downloading github.com/magefile/mage v1.10.0
[2020-12-29T15:03:52.207Z] /var/lib/jenkins/workspace/Beats_beats_PR-23313/.magefile cleaned
[2020-12-29T15:03:52.565Z] + git config --get user.email
[2020-12-29T15:03:52.565Z] + [ -z  ]
[2020-12-29T15:03:52.565Z] + git config --global user.email beatsmachine@users.noreply.github.com
[2020-12-29T15:03:52.565Z] + git config --global user.name beatsmachine
[2020-12-29T15:03:52.874Z] + go mod download
[2020-12-29T15:04:08.333Z] + .ci/scripts/terraform-cleanup.sh x-pack/metricbeat
[2020-12-29T15:04:08.333Z] + DIRECTORY=x-pack/metricbeat
[2020-12-29T15:04:08.333Z] + FAILED=0
[2020-12-29T15:04:08.333Z] ++ find x-pack/metricbeat -name terraform.tfstate
[2020-12-29T15:04:08.333Z] + for tfstate in $(find $DIRECTORY -name terraform.tfstate)
[2020-12-29T15:04:08.333Z] ++ dirname x-pack/metricbeat/module/aws/terraform.tfstate
[2020-12-29T15:04:08.333Z] + cd x-pack/metricbeat/module/aws
[2020-12-29T15:04:08.333Z] + terraform destroy -auto-approve
[2020-12-29T15:04:11.621Z] 
[2020-12-29T15:04:11.621Z] Destroy complete! Resources: 0 destroyed.
[2020-12-29T15:04:11.621Z] + cd -
[2020-12-29T15:04:11.621Z] /var/lib/jenkins/workspace/Beats_beats_PR-23313/src/github.com/elastic/beats/src/github.com/elastic/beats
[2020-12-29T15:04:11.621Z] + exit 0
[2020-12-29T15:04:12.029Z] Client: Docker Engine - Community
[2020-12-29T15:04:12.029Z]  Version:           20.10.1
[2020-12-29T15:04:12.029Z]  API version:       1.41
[2020-12-29T15:04:12.029Z]  Go version:        go1.13.15
[2020-12-29T15:04:12.029Z]  Git commit:        831ebea
[2020-12-29T15:04:12.029Z]  Built:             Tue Dec 15 04:34:59 2020
[2020-12-29T15:04:12.030Z]  OS/Arch:           linux/amd64
[2020-12-29T15:04:12.030Z]  Context:           default
[2020-12-29T15:04:12.030Z]  Experimental:      true
[2020-12-29T15:04:12.030Z] 
[2020-12-29T15:04:12.030Z] Server: Docker Engine - Community
[2020-12-29T15:04:12.030Z]  Engine:
[2020-12-29T15:04:12.030Z]   Version:          20.10.1
[2020-12-29T15:04:12.030Z]   API version:      1.41 (minimum version 1.12)
[2020-12-29T15:04:12.030Z]   Go version:       go1.13.15
[2020-12-29T15:04:12.030Z]   Git commit:       f001486
[2020-12-29T15:04:12.030Z]   Built:            Tue Dec 15 04:32:40 2020
[2020-12-29T15:04:12.030Z]   OS/Arch:          linux/amd64
[2020-12-29T15:04:12.030Z]   Experimental:     false
[2020-12-29T15:04:12.030Z]  containerd:
[2020-12-29T15:04:12.030Z]   Version:          1.4.3
[2020-12-29T15:04:12.030Z]   GitCommit:        269548fa27e0089a8b8278fc4fc781d7f65a939b
[2020-12-29T15:04:12.030Z]  runc:
[2020-12-29T15:04:12.030Z]   Version:          1.0.0-rc92
[2020-12-29T15:04:12.030Z]   GitCommit:        ff819c7e9184c13b7c2607fe6c30ae19403a7aff
[2020-12-29T15:04:12.030Z]  docker-init:
[2020-12-29T15:04:12.030Z]   Version:          0.19.0
[2020-12-29T15:04:12.030Z]   GitCommit:        de40ad0
[2020-12-29T15:04:41.912Z] Stage "Packaging" skipped due to earlier failure(s)
[2020-12-29T15:04:42.006Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-23313/src/github.com/elastic/beats
[2020-12-29T15:04:42.679Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-23313
[2020-12-29T15:04:42.773Z] [INFO] getVaultSecret: Getting secrets
[2020-12-29T15:04:42.834Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-12-29T15:04:43.627Z] + chmod 755 generate-build-data.sh
[2020-12-29T15:04:43.628Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-23313/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-23313/runs/1 FAILURE 3213913
[2020-12-29T15:04:44.178Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-23313/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 1
Passed 15328
Skipped 1317
Total 16646

Genuine test errors 1

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

  • Name: Build&Test / libbeat-build / TestAutodiscoverWithMutlipleEntries – autodiscover

@jsoriano
Copy link
Member Author

Failing test is a flaky one, merging by now to fix linting in master.

@jsoriano jsoriano merged commit feb6cbf into elastic:master Dec 29, 2020
jsoriano added a commit to jsoriano/beats that referenced this pull request Dec 29, 2020
@jsoriano jsoriano added v7.12.0 and removed needs_backport PR is waiting to be backported to other branches. labels Dec 29, 2020
jsoriano added a commit to jsoriano/beats that referenced this pull request Dec 29, 2020
@jsoriano jsoriano removed the v6.8.14 label Dec 29, 2020
@jsoriano jsoriano deleted the pin-mage-0-10 branch December 29, 2020 15:43
jsoriano added a commit to jsoriano/beats that referenced this pull request Dec 29, 2020
jsoriano added a commit that referenced this pull request Dec 29, 2020
jsoriano added a commit that referenced this pull request Dec 29, 2020
jsoriano added a commit that referenced this pull request Dec 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Automation Label for the Observability productivity team Team:Integrations Label for the Integrations team v7.10.2 v7.11.0 v7.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants