Skip to content

[Heartbeat] Build elastic agent with synthetics support / offline mode (backport #27052)#27467

Closed
mergify[bot] wants to merge 1 commit into7.15from
mergify/bp/7.15/pr-27052
Closed

[Heartbeat] Build elastic agent with synthetics support / offline mode (backport #27052)#27467
mergify[bot] wants to merge 1 commit into7.15from
mergify/bp/7.15/pr-27052

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented Aug 18, 2021

This is an automatic backport of pull request #27052 done by Mergify.
Cherry-pick of 4727470 has failed:

On branch mergify/bp/7.15/pr-27052
Your branch is up to date with 'origin/7.15'.

You are currently cherry-picking commit 4727470f7.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   dev-tools/mage/dockerbuilder.go

no changes added to commit (use "git add" and/or "git commit -a")

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/github/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.io/

#27052)

Creates a new offline tagged docker image that includes the dependencies required for synthetics. Building elastic-agent docker images will now create additional -offline tagged images with these extras. We may need to do additional work to ensure that these additional images are incorporated into the release process and onto the public website.

These changes also set the ELASTIC_SYNTHETICS_CAPABLE env flag, as done in heartbeat, to enable synthetics features in the docker environment. This dovetails with the work @dominiqueclarke is doing in elastic/integrations#1064 and elsewhere

Fixes #22932

(cherry picked from commit 4727470)

# Conflicts:
#	dev-tools/mage/dockerbuilder.go
@mergify mergify bot added the conflicts There is a conflict in the backported pull request label Aug 18, 2021
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Aug 18, 2021
@botelastic
Copy link
Copy Markdown

botelastic bot commented Aug 18, 2021

This pull request doesn't have a Team:<team> label.

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2021-08-18T13:37:53.622+0000

  • Duration: 8 min 28 sec

  • Commit: e2adbc3

Trends 🧪

Image of Build Times

Steps errors 2

Expand to view the steps failures

Dump mage variables
  • Took 0 min 9 sec . View more details on here
  • Description: mage dumpVariables
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

[2021-08-18T13:45:38.008Z] ++ docker-compose --version
[2021-08-18T13:45:38.008Z] ++ awk '{print $3}'
[2021-08-18T13:45:38.009Z] ++ sed s/,//
[2021-08-18T13:45:38.588Z] + FOUND_DOCKER_COMPOSE_VERSION=1.25.5
[2021-08-18T13:45:38.588Z] + '[' 1.25.5 == 1.21.0 ']'
[2021-08-18T13:45:38.589Z] + set -e
[2021-08-18T13:45:38.589Z] + echo 'UNMET DEP: Installing docker-compose'
[2021-08-18T13:45:38.589Z] UNMET DEP: Installing docker-compose
[2021-08-18T13:45:38.589Z] + DC_CMD=/var/lib/jenkins/workspace/Beats_beats_PR-27467/bin/docker-compose
[2021-08-18T13:45:38.589Z] + mkdir -p /var/lib/jenkins/workspace/Beats_beats_PR-27467/bin
[2021-08-18T13:45:38.589Z] ++ uname -s
[2021-08-18T13:45:38.589Z] ++ uname -m
[2021-08-18T13:45:38.589Z] + curl -sSLo /var/lib/jenkins/workspace/Beats_beats_PR-27467/bin/docker-compose https://github.com/docker/compose/releases/download/1.21.0/docker-compose-Linux-x86_64
[2021-08-18T13:45:39.546Z] + chmod +x /var/lib/jenkins/workspace/Beats_beats_PR-27467/bin/docker-compose
[2021-08-18T13:45:39.546Z] + .ci/scripts/install-terraform.sh
[2021-08-18T13:45:39.546Z] + MSG='parameter missing.'
[2021-08-18T13:45:39.546Z] + TERRAFORM_VERSION=0.12.30
[2021-08-18T13:45:39.546Z] + HOME=/var/lib/jenkins/workspace/Beats_beats_PR-27467
[2021-08-18T13:45:39.546Z] + TERRAFORM_CMD=/var/lib/jenkins/workspace/Beats_beats_PR-27467/bin/terraform
[2021-08-18T13:45:39.546Z] + command -v terraform
[2021-08-18T13:45:39.546Z] /usr/local/bin/terraform
[2021-08-18T13:45:39.546Z] + set +e
[2021-08-18T13:45:39.546Z] + echo 'Found Terraform. Checking version..'
[2021-08-18T13:45:39.546Z] Found Terraform. Checking version..
[2021-08-18T13:45:39.546Z] ++ terraform --version
[2021-08-18T13:45:39.546Z] ++ awk '{print $2}'
[2021-08-18T13:45:39.546Z] ++ sed s/v//
[2021-08-18T13:45:40.124Z] + FOUND_TERRAFORM_VERSION='0.12.30
[2021-08-18T13:45:40.124Z] 
[2021-08-18T13:45:40.124Z] ersion
[2021-08-18T13:45:40.124Z] 1.0.4.'
[2021-08-18T13:45:40.124Z] + '[' '0.12.30
[2021-08-18T13:45:40.124Z] 
[2021-08-18T13:45:40.124Z] ersion
[2021-08-18T13:45:40.124Z] 1.0.4.' == 0.12.30 ']'
[2021-08-18T13:45:40.124Z] + set -e
[2021-08-18T13:45:40.124Z] + echo 'UNMET DEP: Installing Terraform'
[2021-08-18T13:45:40.124Z] UNMET DEP: Installing Terraform
[2021-08-18T13:45:40.124Z] + mkdir -p /var/lib/jenkins/workspace/Beats_beats_PR-27467/bin
[2021-08-18T13:45:40.124Z] ++ uname -s
[2021-08-18T13:45:40.124Z] ++ tr '[:upper:]' '[:lower:]'
[2021-08-18T13:45:40.124Z] + OS=linux
[2021-08-18T13:45:40.124Z] ++ uname -m
[2021-08-18T13:45:40.124Z] ++ tr '[:upper:]' '[:lower:]'
[2021-08-18T13:45:40.124Z] + ARCH=x86_64
[2021-08-18T13:45:40.124Z] + '[' x86_64 == aarch64 ']'
[2021-08-18T13:45:40.124Z] + '[' x86_64 == x86_64 ']'
[2021-08-18T13:45:40.124Z] + ARCH_SUFFIX=amd64
[2021-08-18T13:45:40.124Z] + curl -sSLo - https://releases.hashicorp.com/terraform/0.12.30/terraform_0.12.30_linux_amd64.zip
[2021-08-18T13:45:40.124Z] ++ dirname /var/lib/jenkins/workspace/Beats_beats_PR-27467/bin/terraform
[2021-08-18T13:45:40.124Z] + unzip -o /var/lib/jenkins/workspace/Beats_beats_PR-27467/bin/terraform.zip -d /var/lib/jenkins/workspace/Beats_beats_PR-27467/bin
[2021-08-18T13:45:40.124Z] Archive:  /var/lib/jenkins/workspace/Beats_beats_PR-27467/bin/terraform.zip
[2021-08-18T13:45:41.073Z]   inflating: /var/lib/jenkins/workspace/Beats_beats_PR-27467/bin/terraform  
[2021-08-18T13:45:41.073Z] + rm /var/lib/jenkins/workspace/Beats_beats_PR-27467/bin/terraform.zip
[2021-08-18T13:45:41.073Z] + chmod +x /var/lib/jenkins/workspace/Beats_beats_PR-27467/bin/terraform
[2021-08-18T13:45:41.578Z] + git config --get user.email
[2021-08-18T13:45:41.578Z] + [ -z  ]
[2021-08-18T13:45:41.578Z] + git config --global user.email beatsmachine@users.noreply.github.com
[2021-08-18T13:45:41.578Z] + git config --global user.name beatsmachine
[2021-08-18T13:45:41.970Z] + go mod download
[2021-08-18T13:46:00.132Z] ### MAGE DUMP ###
[2021-08-18T13:46:00.472Z] + mage dumpVariables
[2021-08-18T13:46:08.836Z] # github.com/elastic/beats/v7/dev-tools/mage
[2021-08-18T13:46:08.837Z] dev-tools/mage/dockerbuilder.go:198:1: syntax error: unexpected <<, expecting }
[2021-08-18T13:46:08.837Z] dev-tools/mage/dockerbuilder.go:209:92: invalid character U+0023 '#'
[2021-08-18T13:46:08.837Z] Error: error compiling magefiles
[2021-08-18T13:46:09.471Z] + go clean -modcache
[2021-08-18T13:46:12.127Z] Timeout set to expire in 5 min 0 sec
[2021-08-18T13:46:12.475Z] Cleaning up /var/lib/jenkins/workspace/Beats_beats_PR-27467
[2021-08-18T13:46:12.475Z] Change ownership of all files inside the specific folder from root/root to current user/group
[2021-08-18T13:46:12.475Z] ++ id -u
[2021-08-18T13:46:12.475Z] ++ id -g
[2021-08-18T13:46:12.475Z] + docker run -v /var/lib/jenkins/workspace/Beats_beats_PR-27467:/beat alpine:3.4 sh -c 'find /beat -user 0 -exec chown -h 1169:1170 {} \;'
[2021-08-18T13:46:12.475Z] Unable to find image 'alpine:3.4' locally
[2021-08-18T13:46:13.107Z] 3.4: Pulling from library/alpine
[2021-08-18T13:46:13.370Z] c1e54eec4b57: Pulling fs layer
[2021-08-18T13:46:13.634Z] c1e54eec4b57: Verifying Checksum
[2021-08-18T13:46:13.634Z] c1e54eec4b57: Download complete
[2021-08-18T13:46:13.894Z] c1e54eec4b57: Pull complete
[2021-08-18T13:46:13.894Z] Digest: sha256:b733d4a32c4da6a00a84df2ca32791bb03df95400243648d8c539e7b4cce329c
[2021-08-18T13:46:13.894Z] Status: Downloaded newer image for alpine:3.4
[2021-08-18T13:46:15.288Z] + set -e
[2021-08-18T13:46:15.288Z] + echo 'Change permissions with write access of all files inside the specific folder'
[2021-08-18T13:46:15.288Z] Change permissions with write access of all files inside the specific folder
[2021-08-18T13:46:15.288Z] + chmod -R +w /var/lib/jenkins/workspace/Beats_beats_PR-27467
[2021-08-18T13:46:15.403Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-27467
[2021-08-18T13:46:18.241Z] Stage "Build&Test" skipped due to earlier failure(s)
[2021-08-18T13:46:18.351Z] Stage "Extended" skipped due to earlier failure(s)
[2021-08-18T13:46:18.476Z] Stage "Packaging" skipped due to earlier failure(s)
[2021-08-18T13:46:18.592Z] Stage "Packaging-Pipeline" skipped due to earlier failure(s)
[2021-08-18T13:46:18.767Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-27467/src/github.com/elastic/beats
[2021-08-18T13:46:19.975Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-27467
[2021-08-18T13:46:20.092Z] [INFO] getVaultSecret: Getting secrets
[2021-08-18T13:46:20.163Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-08-18T13:46:21.454Z] + chmod 755 generate-build-data.sh
[2021-08-18T13:46:21.454Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-27467/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-27467/runs/1 FAILURE 507531
[2021-08-18T13:46:21.454Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-27467/runs/1/steps/?limit=10000 -o steps-info.json
[2021-08-18T13:46:22.005Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-27467/runs/1/tests/?status=FAILED -o tests-errors.json
[2021-08-18T13:46:22.005Z] Retry 1/3 exited 22, retrying in 1 seconds...
[2021-08-18T13:46:23.348Z] Retry 2/3 exited 22, retrying in 2 seconds...

❕ Flaky test report

No test was executed to be analysed.

@andrewvc
Copy link
Copy Markdown
Contributor

Closing in favor of #27468

@andrewvc andrewvc closed this Aug 18, 2021
@andrewvc andrewvc deleted the mergify/bp/7.15/pr-27052 branch August 18, 2021 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conflicts There is a conflict in the backported pull request needs_team Indicates that the issue/PR needs a Team:* label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants