Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Build binaries via goreleaser #977

Merged
merged 1 commit into from
Mar 31, 2021
Merged

Build binaries via goreleaser #977

merged 1 commit into from
Mar 31, 2021

Conversation

adam-stokes
Copy link
Contributor

This handles building for all supported architectures including running packr
for embedding the binary files.

This allows us to easily extend our release process for tagging official cli
releases, building in various package formats and publishing to different
package registries

Signed-off-by: Adam Stokes [email protected]

What does this PR do?

Utilizes a release tool for easily building binaries for all arches and publishing

Why is it important?

Simplifies the process in building binaries for this project

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 run the Unit tests for the CLI, and they are passing locally
  • I have run the End-2-End tests for the suite I'm working on, and they are passing locally
  • I have noticed new Go dependencies (run make notice in the proper directory)

How to test this PR locally

Make sure goreleaser is installed and you've set your go environment to the version you want to build the binaries against:

$ brew install goreleaser/tap/goreleaser
$ eval $(gvm 1.14.12)
$ make build

Verify the distributions are built and placed in their respective arch directories under dist/

This handles building for all supported architectures including running packr
for embedding the binary files.

This allows us to easily extend our release process for tagging official cli
releases, building in various package formats and publishing to different
package registries

Signed-off-by: Adam Stokes <[email protected]>
@adam-stokes adam-stokes added the enhancement New feature or request label Mar 31, 2021
@adam-stokes adam-stokes requested a review from a team March 31, 2021 13:23
@elasticmachine
Copy link
Contributor

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

  • Start Time: 2021-03-31T13:35:07.652+0000

  • Duration: 27 min 25 sec

  • Commit: 25bdef1

Test stats 🧪

Test Results
Failed 2
Passed 135
Skipped 0
Total 137

Trends 🧪

Image of Build Times

Image of Tests

Test errors 2

Expand to view the tests failures

Initializing / End-To-End Tests / ubuntu-18.04_fleet_fleet_mode_agent / Un-installing the installed centos agent – Fleet Mode Agent
    Expand to view the error details

     Step the file system Agent folder is empty 
    

  • no stacktrace
Initializing / End-To-End Tests / ubuntu-18.04_fleet_backend_processes / Un-installing the installed centos agent – Backend Processes
    Expand to view the error details

     Step the "elastic-agent" process is in the "stopped" state on the host 
    

  • no stacktrace

Steps errors 2

Expand to view the steps failures

Run functional tests for fleet:fleet_mode_agent && ~@nightly && ~debian
  • Took 10 min 17 sec . View more details on here
  • Description: .ci/scripts/functional-test.sh "fleet" "fleet_mode_agent && ~@nightly && ~debian" "8.0.0-SNAPSHOT" "8.0.0-SNAPSHOT"
Run functional tests for fleet:backend_processes && ~@nightly && ~debian
  • Took 11 min 9 sec . View more details on here
  • Description: .ci/scripts/functional-test.sh "fleet" "backend_processes && ~@nightly && ~debian" "8.0.0-SNAPSHOT" "8.0.0-SNAPSHOT"

Log output

Expand to view the last 100 lines of log output

[2021-03-31T14:01:35.574Z] time="2021-03-31T14:01:35Z" level=debug msg="Integration in latest version found" name=endpoint title="Endpoint Security" version=0.18.0
[2021-03-31T14:01:39.768Z] time="2021-03-31T14:01:39Z" level=info msg="Integration added to the configuration" integration=endpoint integrationConfigurationID=7ce9d15f-ecea-4115-b9b9-f55641b827c7 policyID=94bce7c0-9227-11eb-ac3b-8fb21dd6fcfe version=0.18.0
[2021-03-31T14:01:39.768Z] time="2021-03-31T14:01:39Z" level=debug msg="Package policy found in the configuration" package="{7ce9d15f-ecea-4115-b9b9-f55641b827c7 endpoint Endpoint Security 0.18.0 0xc000903fb0}" policyID=94bce7c0-9227-11eb-ac3b-8fb21dd6fcfe
[2021-03-31T14:01:42.309Z] time="2021-03-31T14:01:42Z" level=info msg="Integration deleted from the configuration" integration=endpoint packageConfigId=7ce9d15f-ecea-4115-b9b9-f55641b827c7 policyID=94bce7c0-9227-11eb-ac3b-8fb21dd6fcfe version=0.18.0
[2021-03-31T14:01:42.309Z] {"level":"debug","time":"2021-03-31T14:01:42Z","message":"sent request with 0 transactions, 0 spans, 0 errors, 1 metricset"}
[2021-03-31T14:01:42.309Z] time="2021-03-31T14:01:42Z" level=debug msg="Agent listed in Fleet with online status" agentID=a1f42115-4661-4359-8298-cff87ef3a29d hostname=4fe664161117
[2021-03-31T14:01:42.309Z] time="2021-03-31T14:01:42Z" level=info msg="The Agent is in the desired status" elapsedTime=65.267631ms hostname=4fe664161117 isAgentInStatus=true retries=1 status=online
[2021-03-31T14:01:42.309Z] time="2021-03-31T14:01:42Z" level=info msg="The Agent is not listed in the Administration view in the Security App" elapsedTime=32.624698ms hostname=4fe664161117 retries=1
[2021-03-31T14:01:43.266Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:07.316Z","log.origin":{"file.name":"warn/warn.go","file.line":18},"message":"The Elastic Agent is currently in BETA and should not be used in production","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.267Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:07.317Z","log.origin":{"file.name":"application/application.go","file.line":66},"message":"Detecting execution mode","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.267Z] {"log.level":"warn","@timestamp":"2021-03-31T14:01:07.317Z","log.logger":"cfgwarn","log.origin":{"file.name":"tlscommon/config.go","file.line":101},"message":"DEPRECATED: Treating the CommonName field on X.509 certificates as a host name when no Subject Alternative Names are present is going to be removed. Please update your certificates if needed. Will be removed in version: 8.0.0","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.267Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:07.317Z","log.origin":{"file.name":"application/application.go","file.line":91},"message":"Agent is managed by Fleet","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.267Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:07.317Z","log.origin":{"file.name":"capabilities/capabilities.go","file.line":59},"message":"capabilities file not found in /opt/Elastic/Agent/capabilities.yml","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.267Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:07.717Z","log.logger":"composable","log.origin":{"file.name":"composable/controller.go","file.line":44},"message":"EXPERIMENTAL - Inputs with variables are currently experimental and should not be used in production","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.267Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:07.820Z","log.logger":"composable.providers.docker","log.origin":{"file.name":"docker/docker.go","file.line":43},"message":"Docker provider skipped, unable to connect: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.267Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:07.821Z","log.logger":"api","log.origin":{"file.name":"api/server.go","file.line":62},"message":"Starting stats endpoint","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.267Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:07.821Z","log.origin":{"file.name":"application/managed_mode.go","file.line":284},"message":"Agent is starting","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.267Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:07.821Z","log.logger":"api","log.origin":{"file.name":"api/server.go","file.line":64},"message":"Metrics endpoint listening on: /tmp/elastic-agent/elastic-agent.sock (configured: unix:///tmp/elastic-agent/elastic-agent.sock)","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.267Z] {"log.level":"warn","@timestamp":"2021-03-31T14:01:07.922Z","log.origin":{"file.name":"application/managed_mode.go","file.line":297},"message":"failed to ack update open /opt/Elastic/Agent/data/.update-marker: no such file or directory","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.268Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:09.622Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":48},"message":"New State ID is rJrkHWIP","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.268Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:09.622Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":49},"message":"Converging state requires execution of 3 step(s)","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.268Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:09.623Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"filebeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-2b00b8/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.268Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:09.623Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"filebeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-2b00b8/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.268Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:13.550Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-03-31T14:01:13Z: type: 'STATE': sub_type: 'STARTING' message: Application: filebeat--8.0.0-SNAPSHOT[a1f42115-4661-4359-8298-cff87ef3a29d]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.268Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:13.551Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"metricbeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-2b00b8/downloads/metricbeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.268Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:13.551Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"metricbeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-2b00b8/downloads/metricbeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.268Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:14.656Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-03-31T14:01:14Z: type: 'STATE': sub_type: 'RUNNING' message: Application: filebeat--8.0.0-SNAPSHOT[a1f42115-4661-4359-8298-cff87ef3a29d]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.268Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:16.244Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-03-31T14:01:16Z: type: 'STATE': sub_type: 'STARTING' message: Application: metricbeat--8.0.0-SNAPSHOT[a1f42115-4661-4359-8298-cff87ef3a29d]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.268Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:16.246Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"filebeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-2b00b8/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.268Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:16.246Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"filebeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-2b00b8/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.268Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:16.431Z","log.origin":{"file.name":"operation/operator.go","file.line":259},"message":"operation 'operation-install' skipped for filebeat.8.0.0-SNAPSHOT","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.268Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:16.590Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-03-31T14:01:16Z: type: 'STATE': sub_type: 'STARTING' message: Application: filebeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[a1f42115-4661-4359-8298-cff87ef3a29d]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.269Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:16.591Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"metricbeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-2b00b8/downloads/metricbeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.269Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:16.591Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"metricbeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-2b00b8/downloads/metricbeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.269Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:16.802Z","log.origin":{"file.name":"operation/operator.go","file.line":259},"message":"operation 'operation-install' skipped for metricbeat.8.0.0-SNAPSHOT","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.269Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:16.984Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-03-31T14:01:16Z: type: 'STATE': sub_type: 'STARTING' message: Application: metricbeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[a1f42115-4661-4359-8298-cff87ef3a29d]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.269Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:16.985Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":66},"message":"Updating internal state","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.269Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:17.389Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-03-31T14:01:17Z: type: 'STATE': sub_type: 'RUNNING' message: Application: metricbeat--8.0.0-SNAPSHOT[a1f42115-4661-4359-8298-cff87ef3a29d]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.269Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:17.711Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-03-31T14:01:17Z: type: 'STATE': sub_type: 'RUNNING' message: Application: filebeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[a1f42115-4661-4359-8298-cff87ef3a29d]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.269Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:18.118Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-03-31T14:01:18Z: type: 'STATE': sub_type: 'RUNNING' message: Application: metricbeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[a1f42115-4661-4359-8298-cff87ef3a29d]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.269Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:40.090Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":48},"message":"New State ID is h9W4piZt","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.269Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:40.090Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":49},"message":"Converging state requires execution of 3 step(s)","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.269Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:40.090Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"filebeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-2b00b8/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.269Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:40.090Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"filebeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-2b00b8/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.269Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:40.306Z","log.origin":{"file.name":"operation/operator.go","file.line":259},"message":"operation 'operation-install' skipped for filebeat.8.0.0-SNAPSHOT","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.270Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:40.306Z","log.origin":{"file.name":"operation/operator.go","file.line":259},"message":"operation 'operation-start' skipped for filebeat.8.0.0-SNAPSHOT","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.270Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:40.307Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"endpoint-security.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-2b00b8/downloads/endpoint-security-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.270Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:40.307Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"endpoint-security.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-2b00b8/downloads/endpoint-security-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.270Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:41.054Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-03-31T14:01:41Z: type: 'STATE': sub_type: 'STARTING' message: Application: endpoint-security--8.0.0-SNAPSHOT[a1f42115-4661-4359-8298-cff87ef3a29d]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.270Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:41.249Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"filebeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-2b00b8/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.270Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:41.249Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"filebeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-2b00b8/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.270Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:41.427Z","log.origin":{"file.name":"operation/operator.go","file.line":259},"message":"operation 'operation-install' skipped for filebeat.8.0.0-SNAPSHOT","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.270Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:41.428Z","log.origin":{"file.name":"operation/operator.go","file.line":259},"message":"operation 'operation-start' skipped for filebeat.8.0.0-SNAPSHOT","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.270Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:41.428Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"metricbeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-2b00b8/downloads/metricbeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.270Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:41.428Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"metricbeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-2b00b8/downloads/metricbeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.271Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:41.645Z","log.origin":{"file.name":"operation/operator.go","file.line":259},"message":"operation 'operation-install' skipped for metricbeat.8.0.0-SNAPSHOT","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.271Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:41.645Z","log.origin":{"file.name":"operation/operator.go","file.line":259},"message":"operation 'operation-start' skipped for metricbeat.8.0.0-SNAPSHOT","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.271Z] {"log.level":"info","@timestamp":"2021-03-31T14:01:41.646Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":66},"message":"Updating internal state","ecs.version":"1.6.0"}
[2021-03-31T14:01:43.271Z] time="2021-03-31T14:01:43Z" level=debug msg="Docker compose executed." cmd="[exec -T centos-systemd cat /opt/Elastic/Agent/data/elastic-agent-2b00b8/logs//elastic-agent-json.log]" composeFilePaths="[/var/lib/jenkins/workspace/PR-977-1-f1297c35-34bf-49bf-8a5b-624d9d33170a/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/PR-977-1-f1297c35-34bf-49bf-8a5b-624d9d33170a/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz690252727 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz centos_systemdContainerName:fleet_centos-systemd_elastic-agent_1 centos_systemdTag:latest stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2021-03-31T14:01:58.172Z] Elastic Agent has been uninstalled.
[2021-03-31T14:01:58.172Z] time="2021-03-31T14:01:56Z" level=debug msg="Docker compose executed." cmd="[exec -T centos-systemd elastic-agent uninstall -f]" composeFilePaths="[/var/lib/jenkins/workspace/PR-977-1-f1297c35-34bf-49bf-8a5b-624d9d33170a/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/PR-977-1-f1297c35-34bf-49bf-8a5b-624d9d33170a/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz690252727 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz centos_systemdContainerName:fleet_centos-systemd_elastic-agent_1 centos_systemdTag:latest stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2021-03-31T14:01:58.172Z] time="2021-03-31T14:01:56Z" level=debug msg="Un-enrolling agent in Fleet" agentID=a1f42115-4661-4359-8298-cff87ef3a29d hostname=4fe664161117
[2021-03-31T14:01:58.172Z] time="2021-03-31T14:01:57Z" level=debug msg="Fleet agent was unenrolled" agentID=a1f42115-4661-4359-8298-cff87ef3a29d
[2021-03-31T14:01:58.432Z] Stopping fleet_centos-systemd_elastic-agent_1 ... 
[2021-03-31T14:02:02.627Z] {"level":"debug","time":"2021-03-31T14:02:02Z","message":"gathering metrics"}
[2021-03-31T14:02:09.201Z] 
Stopping fleet_centos-systemd_elastic-agent_1 ... done
Removing fleet_centos-systemd_elastic-agent_1 ... 
[2021-03-31T14:02:09.201Z] 
Removing fleet_centos-systemd_elastic-agent_1 ... done
Going to remove fleet_centos-systemd_elastic-agent_1
[2021-03-31T14:02:09.202Z] time="2021-03-31T14:02:08Z" level=debug msg="Docker compose executed." cmd="[rm -fvs centos-systemd]" composeFilePaths="[/var/lib/jenkins/workspace/PR-977-1-f1297c35-34bf-49bf-8a5b-624d9d33170a/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/PR-977-1-f1297c35-34bf-49bf-8a5b-624d9d33170a/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz690252727 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz centos_systemdContainerName:fleet_centos-systemd_elastic-agent_1 centos_systemdTag:latest stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2021-03-31T14:02:09.202Z] time="2021-03-31T14:02:08Z" level=debug msg="Service removed from compose" profile=fleet service=centos-systemd
[2021-03-31T14:02:10.140Z] time="2021-03-31T14:02:09Z" level=debug msg="The token was deleted" tokenID=c155671a-9610-46b5-acff-b2eb3369a99b
[2021-03-31T14:02:10.140Z] time="2021-03-31T14:02:09Z" level=info msg="Integration deleted from the configuration" integration=endpoint packageConfigId=7ce9d15f-ecea-4115-b9b9-f55641b827c7 policyID=94bce7c0-9227-11eb-ac3b-8fb21dd6fcfe version=0.18.0
[2021-03-31T14:02:10.140Z] time="2021-03-31T14:02:09Z" level=debug msg="Destroying Fleet runtime dependencies"
[2021-03-31T14:02:10.712Z] Stopping fleet_kibana_1           ... 
[2021-03-31T14:02:10.712Z] Stopping fleet_elasticsearch_1    ... 
[2021-03-31T14:02:10.712Z] Stopping fleet_package-registry_1 ... 
[2021-03-31T14:02:12.423Z] 
Stopping fleet_kibana_1           ... done

Stopping fleet_package-registry_1 ... done
{"level":"debug","time":"2021-03-31T14:02:12Z","message":"sent request with 0 transactions, 0 spans, 0 errors, 1 metricset"}
[2021-03-31T14:02:12.423Z] 
Stopping fleet_elasticsearch_1    ... done
Removing fleet_kibana_1           ... 
[2021-03-31T14:02:12.423Z] Removing fleet_elasticsearch_1    ... 
[2021-03-31T14:02:12.423Z] Removing fleet_package-registry_1 ... 
[2021-03-31T14:02:12.423Z] 
Removing fleet_package-registry_1 ... done

Removing fleet_kibana_1           ... done

Removing fleet_elasticsearch_1    ... done
Removing network fleet_default
[2021-03-31T14:02:12.994Z] time="2021-03-31T14:02:12Z" level=debug msg="Docker compose executed." cmd="[down --remove-orphans]" composeFilePaths="[/var/lib/jenkins/workspace/PR-977-1-f1297c35-34bf-49bf-8a5b-624d9d33170a/.op/compose/profiles/fleet/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz690252727 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz centos_systemdContainerName:fleet_centos-systemd_elastic-agent_1 centos_systemdTag:latest stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2021-03-31T14:02:12.994Z] time="2021-03-31T14:02:12Z" level=debug msg="Elastic Agent binary was removed." installer=centos-tar-8.0.0-SNAPSHOT path=/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz690252727
[2021-03-31T14:02:13.304Z] [INFO] Stopping Filebeat Docker container
[2021-03-31T14:02:13.609Z] + docker exec -t 69ac40368b07603bfdbc5b7e40cc337f0e3acb2e74e84e7340fdf679fdcf302d chmod -R ugo+rw /output
[2021-03-31T14:02:13.869Z] + docker stop --time 30 69ac40368b07603bfdbc5b7e40cc337f0e3acb2e74e84e7340fdf679fdcf302d
[2021-03-31T14:02:14.439Z] 69ac40368b07603bfdbc5b7e40cc337f0e3acb2e74e84e7340fdf679fdcf302d
[2021-03-31T14:02:14.479Z] Archiving artifacts
[2021-03-31T14:02:15.261Z] Recording test results
[2021-03-31T14:02:15.588Z] [Checks API] No suitable checks publisher found.
[2021-03-31T14:02:15.622Z] Archiving artifacts
[2021-03-31T14:02:15.719Z] Running in /var/lib/jenkins/workspace/PR-977-1-f1297c35-34bf-49bf-8a5b-624d9d33170a/src/github.com/elastic/e2e-testing
[2021-03-31T14:02:16.058Z] + go clean -modcache
[2021-03-31T14:02:19.577Z] Stage "Release" skipped due to earlier failure(s)
[2021-03-31T14:02:31.285Z] Running on Jenkins in /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-977
[2021-03-31T14:02:31.381Z] [INFO] getVaultSecret: Getting secrets
[2021-03-31T14:02:31.484Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-03-31T14:02:32.673Z] + chmod 755 generate-build-data.sh
[2021-03-31T14:02:32.673Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-977/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-977/runs/1 FAILURE 1644738
[2021-03-31T14:02:32.923Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-977/runs/1/steps/?limit=10000 -o steps-info.json
[2021-03-31T14:02:33.834Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-977/runs/1/tests/?status=FAILED -o tests-errors.json

🐛 Flaky test report

❕ There are test failures but not known flaky tests.

Expand to view the summary

Test stats 🧪

Test Results
Failed 2
Passed 135
Skipped 0
Total 137

Genuine test errors 2

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

  • Name: Initializing / End-To-End Tests / ubuntu-18.04_fleet_fleet_mode_agent / Un-installing the installed centos agent – Fleet Mode Agent
  • Name: Initializing / End-To-End Tests / ubuntu-18.04_fleet_backend_processes / Un-installing the installed centos agent – Backend Processes

@adam-stokes adam-stokes merged commit 0babb20 into master Mar 31, 2021
@adam-stokes adam-stokes deleted the feat-goreleaser branch March 31, 2021 16:17
@mdelapenya
Copy link
Contributor

Great improvement here! I wonder if we can use it in Beats too 🤔

mdelapenya pushed a commit to mdelapenya/e2e-testing that referenced this pull request Apr 22, 2021
This handles building for all supported architectures including running packr
for embedding the binary files.

This allows us to easily extend our release process for tagging official cli
releases, building in various package formats and publishing to different
package registries

Signed-off-by: Adam Stokes <[email protected]>
@mdelapenya mdelapenya mentioned this pull request Apr 22, 2021
9 tasks
mdelapenya added a commit that referenced this pull request Apr 22, 2021
* cli: enable loading default profiles turnkey (#943)

* cli: enable loading default profiles turnkey

Fixes #933
* update NOTICE
* Fix additional lint issues in ingest_manager_test
* Cleanup comment and trace log in GetComposeFile
* Provide better trace feedback if missing docker-compose
* Update cli/config/config.go
* chore: add back traces when extracting the files from the box (#946)
* fix: use a more comprehensive initialisation method for configs
   As go init() method is not deterministic, I found that the logger init was
   not called at the right time. With change we ensure that the Init is:
   1) called first
   2) existing it the config was already populated
* chore: add back traces when extracting the files from the box

Signed-off-by: Adam Stokes <[email protected]>
Co-authored-by: Manuel de la Peña <[email protected]>

* Add basic check on correct service is defined for profile runs (#957)

Fixes #944

This adds a length check on the string split for verifying that the
<service/image name>:<tag> is defined when adding additional services to a
profile deployment.

Signed-off-by: Adam Stokes <[email protected]>

* Update NOTICE (#969)

Adds additional overrides to pulling in the proper licenses

Signed-off-by: Adam Stokes <[email protected]>

* Build binaries via goreleaser (#977)

This handles building for all supported architectures including running packr
for embedding the binary files.

This allows us to easily extend our release process for tagging official cli
releases, building in various package formats and publishing to different
package registries

Signed-off-by: Adam Stokes <[email protected]>

* chore: simplify release process on Jenkins (#980)

* chore: archive releases in Jenkins UI

* chore: simplify release process on Jenkins

* chore: remove garbage

* chore: support retrying fetching the goreleaser script

It will also retry in the case the release command fails

* chore: set GITHUB_TOKEN

* chore: ensure workspace is clean in the worker

* chore: add release information for goreleaser

* Remove the agent config file parameters for stand alone (#983)

Signed-off-by: Adam Stokes <[email protected]>

Co-authored-by: Manuel de la Peña <[email protected]>

* fix: run unit tests after refactor (#1067)

* chore: remove unused files after refactor

* chore: run unit tests with new layout

* fix: run unit tests on CI

* chore: include unit tests for the e2e dir

* fix: move unit tests resources for installer tests

* fix: move more test resources for unit tests

* fix: abstract path calculation from OS

Co-authored-by: Adam Stokes <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants