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

Consolidate go modules to top level directory #954

Merged
merged 6 commits into from
Mar 30, 2021
Merged

Conversation

adam-stokes
Copy link
Contributor

@adam-stokes adam-stokes commented Mar 29, 2021

This allows developers who utilize things such as language server protocol to
easily resolve package level signatures across similar modules that make up the
project.

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

What does this PR do?

Moves go modules to the top level directory and each sub directory will reference those imports during build/run phases

Why is it important?

Gives better developer experience when utilizing linting, language protocols for definition reference, etc

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)

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

This allows developers who utilize things such as language server protocol to
easily resolve package level signatures across similar modules that make up the
project.

Fixes #557

Signed-off-by: Adam Stokes <[email protected]>
@elasticmachine
Copy link
Contributor

elasticmachine commented Mar 29, 2021

💔 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 #954 updated

  • Start Time: 2021-03-30T00:56:33.891+0000

  • Duration: 34 min 17 sec

  • Commit: 2e27de0

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_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
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

Steps errors 2

Expand to view the steps failures

Run functional tests for fleet:fleet_mode_agent && ~@nightly && ~debian
  • Took 9 min 42 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 10 min 4 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-30T01:30:19.458Z] time="2021-03-30T01:30:19Z" level=debug msg="Integration in latest version found" name=endpoint title="Endpoint Security" version=0.18.0
[2021-03-30T01:30:21.378Z] {"level":"debug","time":"2021-03-30T01:30:21Z","message":"gathering metrics"}
[2021-03-30T01:30:21.950Z] time="2021-03-30T01:30:21Z" level=info msg="Integration added to the configuration" integration=endpoint integrationConfigurationID=59188961-7fdf-4e83-bb26-a9ff19ebd38c policyID=7a9cb650-90f5-11eb-945c-612d88a9f271 version=0.18.0
[2021-03-30T01:30:21.950Z] time="2021-03-30T01:30:21Z" level=debug msg="Package policy found in the configuration" package="{59188961-7fdf-4e83-bb26-a9ff19ebd38c endpoint Endpoint Security 0.18.0 0xc000205cb0}" policyID=7a9cb650-90f5-11eb-945c-612d88a9f271
[2021-03-30T01:30:25.281Z] time="2021-03-30T01:30:24Z" level=info msg="Integration deleted from the configuration" integration=endpoint packageConfigId=59188961-7fdf-4e83-bb26-a9ff19ebd38c policyID=7a9cb650-90f5-11eb-945c-612d88a9f271 version=0.18.0
[2021-03-30T01:30:25.281Z] time="2021-03-30T01:30:24Z" level=debug msg="Agent listed in Fleet with online status" agentID=22a3384f-5804-4f3b-8a25-5a18f68923f4 hostname=4650d9b033be
[2021-03-30T01:30:25.281Z] time="2021-03-30T01:30:24Z" level=info msg="The Agent is in the desired status" elapsedTime=87.051953ms hostname=4650d9b033be isAgentInStatus=true retries=1 status=online
[2021-03-30T01:30:25.281Z] time="2021-03-30T01:30:24Z" level=info msg="The Agent is not listed in the Administration view in the Security App" elapsedTime=33.091927ms hostname=4650d9b033be retries=1
[2021-03-30T01:30:25.856Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:00.926Z","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-30T01:30:25.856Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:00.926Z","log.origin":{"file.name":"application/application.go","file.line":66},"message":"Detecting execution mode","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.856Z] {"log.level":"warn","@timestamp":"2021-03-30T01:30:00.927Z","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-30T01:30:25.857Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:00.927Z","log.origin":{"file.name":"application/application.go","file.line":91},"message":"Agent is managed by Fleet","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.857Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:00.927Z","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-30T01:30:25.857Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:01.124Z","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-30T01:30:25.857Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:01.246Z","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-30T01:30:25.857Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:01.247Z","log.logger":"api","log.origin":{"file.name":"api/server.go","file.line":62},"message":"Starting stats endpoint","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.857Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:01.247Z","log.origin":{"file.name":"application/managed_mode.go","file.line":284},"message":"Agent is starting","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.857Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:01.248Z","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-30T01:30:25.857Z] {"log.level":"warn","@timestamp":"2021-03-30T01:30:01.348Z","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-30T01:30:25.857Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:03.738Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":48},"message":"New State ID is l4ri26EZ","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.857Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:03.739Z","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-30T01:30:25.857Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:03.739Z","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-335911/downloads/metricbeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.857Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:03.739Z","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-335911/downloads/metricbeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.857Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:06.578Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-03-30T01:30:06Z: type: 'STATE': sub_type: 'STARTING' message: Application: metricbeat--8.0.0-SNAPSHOT[22a3384f-5804-4f3b-8a25-5a18f68923f4]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.857Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:06.580Z","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-335911/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.857Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:06.580Z","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-335911/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.857Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:07.736Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-03-30T01:30:07Z: type: 'STATE': sub_type: 'RUNNING' message: Application: metricbeat--8.0.0-SNAPSHOT[22a3384f-5804-4f3b-8a25-5a18f68923f4]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.858Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:11.342Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-03-30T01:30:11Z: type: 'STATE': sub_type: 'STARTING' message: Application: filebeat--8.0.0-SNAPSHOT[22a3384f-5804-4f3b-8a25-5a18f68923f4]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.858Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:11.343Z","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-335911/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.858Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:11.344Z","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-335911/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.858Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:11.540Z","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-30T01:30:25.858Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:11.875Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-03-30T01:30:11Z: type: 'STATE': sub_type: 'STARTING' message: Application: filebeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[22a3384f-5804-4f3b-8a25-5a18f68923f4]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.858Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:11.877Z","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-335911/downloads/metricbeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.858Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:11.877Z","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-335911/downloads/metricbeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.858Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:12.107Z","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-30T01:30:25.858Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:12.377Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-03-30T01:30:12Z: type: 'STATE': sub_type: 'STARTING' message: Application: metricbeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[22a3384f-5804-4f3b-8a25-5a18f68923f4]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.858Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:12.378Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":66},"message":"Updating internal state","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.858Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:12.492Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-03-30T01:30:12Z: type: 'STATE': sub_type: 'RUNNING' message: Application: filebeat--8.0.0-SNAPSHOT[22a3384f-5804-4f3b-8a25-5a18f68923f4]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.858Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:13.000Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-03-30T01:30:13Z: type: 'STATE': sub_type: 'RUNNING' message: Application: filebeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[22a3384f-5804-4f3b-8a25-5a18f68923f4]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.858Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:13.530Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-03-30T01:30:13Z: type: 'STATE': sub_type: 'RUNNING' message: Application: metricbeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[22a3384f-5804-4f3b-8a25-5a18f68923f4]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.858Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:24.832Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":48},"message":"New State ID is qCKMK9su","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.858Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:24.832Z","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-30T01:30:25.858Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:24.832Z","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-335911/downloads/metricbeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.859Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:24.832Z","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-335911/downloads/metricbeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.859Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:25.067Z","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-30T01:30:25.859Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:25.067Z","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-30T01:30:25.859Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:25.068Z","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-335911/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.859Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:25.068Z","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-335911/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.859Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:25.264Z","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-30T01:30:25.859Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:25.265Z","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-30T01:30:25.859Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:25.266Z","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-335911/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.859Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:25.266Z","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-335911/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.859Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:25.436Z","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-30T01:30:25.859Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:25.436Z","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-30T01:30:25.859Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:25.436Z","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-335911/downloads/metricbeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.859Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:25.436Z","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-335911/downloads/metricbeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-03-30T01:30:25.859Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:25.635Z","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-30T01:30:25.859Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:25.635Z","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-30T01:30:25.859Z] {"log.level":"info","@timestamp":"2021-03-30T01:30:25.636Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":66},"message":"Updating internal state","ecs.version":"1.6.0"}
[2021-03-30T01:30:26.122Z] time="2021-03-30T01:30:25Z" level=debug msg="Docker compose executed." cmd="[exec -T centos-systemd cat /opt/Elastic/Agent//data/elastic-agent-335911/logs//elastic-agent-json.log]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-954/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-954/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz348076064 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-30T01:30:28.041Z] Elastic Agent has been uninstalled.
[2021-03-30T01:30:28.302Z] time="2021-03-30T01:30:28Z" level=debug msg="Docker compose executed." cmd="[exec -T centos-systemd elastic-agent uninstall -f]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-954/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-954/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz348076064 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-30T01:30:28.303Z] time="2021-03-30T01:30:28Z" level=debug msg="Un-enrolling agent in Fleet" agentID=22a3384f-5804-4f3b-8a25-5a18f68923f4 hostname=4650d9b033be
[2021-03-30T01:30:30.224Z] time="2021-03-30T01:30:29Z" level=debug msg="Fleet agent was unenrolled" agentID=22a3384f-5804-4f3b-8a25-5a18f68923f4
[2021-03-30T01:30:30.487Z] Stopping fleet_centos-systemd_elastic-agent_1 ... 
[2021-03-30T01:30:31.432Z] {"level":"debug","time":"2021-03-30T01:30:31Z","message":"sent request with 0 transactions, 0 spans, 0 errors, 1 metricset"}
[2021-03-30T01:30:41.452Z] 
Stopping fleet_centos-systemd_elastic-agent_1 ... done
Removing fleet_centos-systemd_elastic-agent_1 ... 
[2021-03-30T01:30:41.452Z] 
Removing fleet_centos-systemd_elastic-agent_1 ... done
Going to remove fleet_centos-systemd_elastic-agent_1
[2021-03-30T01:30:41.452Z] time="2021-03-30T01:30:41Z" level=debug msg="Docker compose executed." cmd="[rm -fvs centos-systemd]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-954/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-954/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz348076064 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-30T01:30:41.453Z] time="2021-03-30T01:30:41Z" level=debug msg="Service removed from compose" profile=fleet service=centos-systemd
[2021-03-30T01:30:42.866Z] time="2021-03-30T01:30:42Z" level=debug msg="The token was deleted" tokenID=c9b33553-ed43-4daf-9541-b1bb64351ae5
[2021-03-30T01:30:42.866Z] time="2021-03-30T01:30:42Z" level=info msg="Integration deleted from the configuration" integration=endpoint packageConfigId=59188961-7fdf-4e83-bb26-a9ff19ebd38c policyID=7a9cb650-90f5-11eb-945c-612d88a9f271 version=0.18.0
[2021-03-30T01:30:42.866Z] time="2021-03-30T01:30:42Z" level=debug msg="Destroying Fleet runtime dependencies"
[2021-03-30T01:30:43.447Z] Stopping fleet_kibana_1           ... 
[2021-03-30T01:30:43.447Z] Stopping fleet_elasticsearch_1    ... 
[2021-03-30T01:30:43.447Z] Stopping fleet_package-registry_1 ... 
[2021-03-30T01:30:45.247Z] 
Stopping fleet_kibana_1           ... done

Stopping fleet_package-registry_1 ... done

Stopping fleet_elasticsearch_1    ... done
Removing fleet_kibana_1           ... 
[2021-03-30T01:30:45.248Z] Removing fleet_elasticsearch_1    ... 
[2021-03-30T01:30:45.248Z] Removing fleet_package-registry_1 ... 
[2021-03-30T01:30:45.248Z] 
Removing fleet_package-registry_1 ... done

Removing fleet_kibana_1           ... done

Removing fleet_elasticsearch_1    ... done
Removing network fleet_default
[2021-03-30T01:30:45.511Z] time="2021-03-30T01:30:45Z" level=debug msg="Docker compose executed." cmd="[down --remove-orphans]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-954/.op/compose/profiles/fleet/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz348076064 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-30T01:30:45.511Z] time="2021-03-30T01:30:45Z" 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.gz348076064
[2021-03-30T01:30:45.617Z] [INFO] Stopping Filebeat Docker container
[2021-03-30T01:30:45.911Z] + docker exec -t c7d8c07ff27b22d6566368a33e502504c24a1197f21ff80532f457200e4b8cb8 chmod -R ugo+rw /output
[2021-03-30T01:30:46.172Z] + docker stop --time 30 c7d8c07ff27b22d6566368a33e502504c24a1197f21ff80532f457200e4b8cb8
[2021-03-30T01:30:46.747Z] c7d8c07ff27b22d6566368a33e502504c24a1197f21ff80532f457200e4b8cb8
[2021-03-30T01:30:46.769Z] Archiving artifacts
[2021-03-30T01:30:47.119Z] Recording test results
[2021-03-30T01:30:47.149Z] [Checks API] No suitable checks publisher found.
[2021-03-30T01:30:47.170Z] Archiving artifacts
[2021-03-30T01:30:47.209Z] Running in /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-954/src/github.com/elastic/e2e-testing
[2021-03-30T01:30:47.511Z] + go clean -modcache
[2021-03-30T01:30:49.391Z] Stage "Release" skipped due to earlier failure(s)
[2021-03-30T01:30:49.778Z] Running on worker-395930 in /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-954
[2021-03-30T01:30:49.830Z] [INFO] getVaultSecret: Getting secrets
[2021-03-30T01:30:49.914Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-03-30T01:30:51.976Z] + chmod 755 generate-build-data.sh
[2021-03-30T01:30:51.976Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-954/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-954/runs/6 FAILURE 2056690
[2021-03-30T01:30:51.976Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-954/runs/6/steps/?limit=10000 -o steps-info.json
[2021-03-30T01:30:53.769Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-954/runs/6/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_backend_processes / Un-installing the installed centos agent – Backend Processes
  • Name: Initializing / End-To-End Tests / ubuntu-18.04_fleet_fleet_mode_agent / Un-installing the installed centos agent – Fleet Mode Agent

go.mod Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
adam-stokes and others added 2 commits March 29, 2021 15:00
Co-authored-by: Manuel de la Peña <[email protected]>
This was causing some invalid import errors

Signed-off-by: Adam Stokes <[email protected]>
@adam-stokes adam-stokes marked this pull request as ready for review March 29, 2021 19:29
@adam-stokes adam-stokes marked this pull request as draft March 29, 2021 19:40
Signed-off-by: Adam Stokes <[email protected]>
@adam-stokes
Copy link
Contributor Author

Filed this bug to see what if anything could be done with the import errors: elastic/apm-agent-go#922

@mdelapenya
Copy link
Contributor

We'd need to consolidate the NOTICE process too

For now it is recommended to use the latest commit hash from go.elastic.co/apm
until the next official release is out. That release cleans up some internals in
that project making godog not a hard requirement when using apm as a dependency

Signed-off-by: Adam Stokes <[email protected]>
@adam-stokes adam-stokes marked this pull request as ready for review March 30, 2021 00:55
@adam-stokes
Copy link
Contributor Author

@mdelapenya This is now ready for review, go imports fixed as well

@mdelapenya mdelapenya merged commit e0617f3 into master Mar 30, 2021
mergify bot pushed a commit that referenced this pull request Mar 30, 2021
* Consolidate go modules to top level directory

This allows developers who utilize things such as language server protocol to
easily resolve package level signatures across similar modules that make up the
project.

Fixes #557

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

* Update go.mod

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

* Remove e2e-testing modules from go.mod

This was causing some invalid import errors

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

* add proper godog deps

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

* Address issue with godog import

For now it is recommended to use the latest commit hash from go.elastic.co/apm
until the next official release is out. That release cleans up some internals in
that project making godog not a hard requirement when using apm as a dependency

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

Co-authored-by: Manuel de la Peña <[email protected]>
(cherry picked from commit e0617f3)

# Conflicts:
#	cli/go.mod
#	cli/go.sum
mergify bot pushed a commit that referenced this pull request Mar 30, 2021
* Consolidate go modules to top level directory

This allows developers who utilize things such as language server protocol to
easily resolve package level signatures across similar modules that make up the
project.

Fixes #557

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

* Update go.mod

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

* Remove e2e-testing modules from go.mod

This was causing some invalid import errors

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

* add proper godog deps

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

* Address issue with godog import

For now it is recommended to use the latest commit hash from go.elastic.co/apm
until the next official release is out. That release cleans up some internals in
that project making godog not a hard requirement when using apm as a dependency

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

Co-authored-by: Manuel de la Peña <[email protected]>
(cherry picked from commit e0617f3)

# Conflicts:
#	cli/go.mod
#	cli/go.sum
mergify bot pushed a commit that referenced this pull request Mar 30, 2021
* Consolidate go modules to top level directory

This allows developers who utilize things such as language server protocol to
easily resolve package level signatures across similar modules that make up the
project.

Fixes #557

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

* Update go.mod

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

* Remove e2e-testing modules from go.mod

This was causing some invalid import errors

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

* add proper godog deps

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

* Address issue with godog import

For now it is recommended to use the latest commit hash from go.elastic.co/apm
until the next official release is out. That release cleans up some internals in
that project making godog not a hard requirement when using apm as a dependency

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

Co-authored-by: Manuel de la Peña <[email protected]>
(cherry picked from commit e0617f3)

# Conflicts:
#	cli/go.mod
#	cli/go.sum
mdelapenya added a commit that referenced this pull request Mar 30, 2021
* Consolidate go modules to top level directory (#954)

* Consolidate go modules to top level directory

This allows developers who utilize things such as language server protocol to
easily resolve package level signatures across similar modules that make up the
project.

Fixes #557

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

* Update go.mod

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

* Remove e2e-testing modules from go.mod

This was causing some invalid import errors

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

* add proper godog deps

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

* Address issue with godog import

For now it is recommended to use the latest commit hash from go.elastic.co/apm
until the next official release is out. That release cleans up some internals in
that project making godog not a hard requirement when using apm as a dependency

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

Co-authored-by: Manuel de la Peña <[email protected]>
(cherry picked from commit e0617f3)

# Conflicts:
#	cli/go.mod
#	cli/go.sum

* chore: remove files after merge conflicts

Co-authored-by: Adam Stokes <[email protected]>
Co-authored-by: Manuel de la Peña <[email protected]>
mdelapenya added a commit that referenced this pull request Mar 30, 2021
* Consolidate go modules to top level directory (#954)

* Consolidate go modules to top level directory

This allows developers who utilize things such as language server protocol to
easily resolve package level signatures across similar modules that make up the
project.

Fixes #557

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

* Update go.mod

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

* Remove e2e-testing modules from go.mod

This was causing some invalid import errors

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

* add proper godog deps

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

* Address issue with godog import

For now it is recommended to use the latest commit hash from go.elastic.co/apm
until the next official release is out. That release cleans up some internals in
that project making godog not a hard requirement when using apm as a dependency

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

Co-authored-by: Manuel de la Peña <[email protected]>
(cherry picked from commit e0617f3)

# Conflicts:
#	cli/go.mod
#	cli/go.sum

* chore: remove files after merge conflicts

Co-authored-by: Adam Stokes <[email protected]>
Co-authored-by: Manuel de la Peña <[email protected]>
mdelapenya added a commit that referenced this pull request Mar 30, 2021
* Consolidate go modules to top level directory (#954)

* Consolidate go modules to top level directory

This allows developers who utilize things such as language server protocol to
easily resolve package level signatures across similar modules that make up the
project.

Fixes #557

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

* Update go.mod

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

* Remove e2e-testing modules from go.mod

This was causing some invalid import errors

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

* add proper godog deps

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

* Address issue with godog import

For now it is recommended to use the latest commit hash from go.elastic.co/apm
until the next official release is out. That release cleans up some internals in
that project making godog not a hard requirement when using apm as a dependency

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

Co-authored-by: Manuel de la Peña <[email protected]>
(cherry picked from commit e0617f3)

# Conflicts:
#	cli/go.mod
#	cli/go.sum

* chore: remove files after merge conflicts

Co-authored-by: Adam Stokes <[email protected]>
Co-authored-by: Manuel de la Peña <[email protected]>
@adam-stokes adam-stokes deleted the gh-fix-557 branch March 30, 2021 11:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Merge CLI and e2e dirs into the root dir
3 participants