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

[CI] tear down the workspace #885

Merged
merged 3 commits into from
Mar 15, 2021

Conversation

v1v
Copy link
Member

@v1v v1v commented Mar 15, 2021

What does this PR do?

Delete workspace

Why is it important?

If we use static/permanent workers then we might suffer disk space issues

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

Closes #884

#707 can benefit from this :)

.ci/Jenkinsfile Outdated Show resolved Hide resolved
/**
* Tear down the setup for the static workers.
*/
def tearDown(Map args = [:]){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wdyt about having a specific step in the library for cleaning up Go dependencies?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO the build system should be the one ensuring the workspace is in good shape. Then the CI should only caring to delete the workspace if required.

Though, it seems go has got some opinionated approach and the build system does not provide those tools, based on that, we could create a specific step in the library to help with.

There are some questions regarding:

  • the new step will always run within the Go environmental context?
  • if running as a post declarative step, will it work?

Do you think we just need to raise an issue regarding this improvement?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was/am concerned about having the very same method in different pipelines (Beats and here) and probably in many of the other Go projects that we maintain.

I agree that the build system should keep the workspace and dependencies in a good shape, but as you know there is nothing as maven/gradle to do so.

Regarding your questions:

  • I think the Go environment should be the same, just in case the clean method could change between different Go versions
  • I've been reading about go clean. Do you think it could be a best practice to invoke it before tests run? The same we do mvn clean test in the Maven world. If so then we should not think about the post step issue, as the environment would always be right. Even better, we could enforce the clean in the set Go env step 🤔

@elasticmachine
Copy link
Contributor

elasticmachine commented Mar 15, 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 #885 updated

  • Start Time: 2021-03-15T10:58:38.877+0000

  • Duration: 30 min 25 sec

  • Commit: 4630b71

Test stats 🧪

Test Results
Failed 1
Passed 108
Skipped 0
Total 109

Trends 🧪

Image of Build Times

Image of Tests

Test errors 1

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 agent is listed in Fleet as "offline": The Agent is not in the offline status yet 
    

  • no stacktrace

Steps errors 1

Expand to view the steps failures

Run functional tests for fleet:fleet_mode_agent && ~@nightly && ~debian
  • Took 19 min 35 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"

Log output

Expand to view the last 100 lines of log output

[2021-03-15T11:26:23.364Z] Recording test results
[2021-03-15T11:26:24.432Z] [Checks API] No suitable checks publisher found.
[2021-03-15T11:26:24.457Z] Archiving artifacts
[2021-03-15T11:26:24.507Z] Running in /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-885/src/github.com/elastic/e2e-testing
[2021-03-15T11:26:24.880Z] + go clean -modcache
[2021-03-15T11:26:27.504Z] time="2021-03-15T11:26:27Z" level=debug msg="Agent listed in Fleet with online status" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 hostname=d1da38626bcd
[2021-03-15T11:26:27.504Z] time="2021-03-15T11:26:27Z" level=warning msg="The Agent is not in the offline status yet" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 elapsedTime=8m15.288697793s hostname=d1da38626bcd isAgentInStatus=false retry=100 status=offline
[2021-03-15T11:26:28.928Z] {"level":"debug","time":"2021-03-15T11:26:28Z","message":"sent request with 0 transactions, 0 spans, 0 errors, 1 metricset"}
[2021-03-15T11:26:32.297Z] time="2021-03-15T11:26:32Z" level=debug msg="Agent listed in Fleet with online status" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 hostname=d1da38626bcd
[2021-03-15T11:26:32.297Z] time="2021-03-15T11:26:32Z" level=warning msg="The Agent is not in the offline status yet" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 elapsedTime=8m20.304657931s hostname=d1da38626bcd isAgentInStatus=false retry=101 status=offline
[2021-03-15T11:26:35.700Z] time="2021-03-15T11:26:35Z" level=debug msg="Agent listed in Fleet with online status" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 hostname=d1da38626bcd
[2021-03-15T11:26:35.700Z] time="2021-03-15T11:26:35Z" level=warning msg="The Agent is not in the offline status yet" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 elapsedTime=8m23.276079579s hostname=d1da38626bcd isAgentInStatus=false retry=102 status=offline
[2021-03-15T11:26:38.274Z] time="2021-03-15T11:26:37Z" level=debug msg="Agent listed in Fleet with online status" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 hostname=d1da38626bcd
[2021-03-15T11:26:38.274Z] time="2021-03-15T11:26:37Z" level=warning msg="The Agent is not in the offline status yet" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 elapsedTime=8m25.922626345s hostname=d1da38626bcd isAgentInStatus=false retry=103 status=offline
[2021-03-15T11:26:42.462Z] time="2021-03-15T11:26:42Z" level=debug msg="Agent listed in Fleet with online status" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 hostname=d1da38626bcd
[2021-03-15T11:26:42.463Z] time="2021-03-15T11:26:42Z" level=warning msg="The Agent is not in the offline status yet" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 elapsedTime=8m30.406905249s hostname=d1da38626bcd isAgentInStatus=false retry=104 status=offline
[2021-03-15T11:26:47.934Z] time="2021-03-15T11:26:47Z" level=debug msg="Agent listed in Fleet with online status" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 hostname=d1da38626bcd
[2021-03-15T11:26:47.934Z] time="2021-03-15T11:26:47Z" level=warning msg="The Agent is not in the offline status yet" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 elapsedTime=8m35.874605109s hostname=d1da38626bcd isAgentInStatus=false retry=105 status=offline
[2021-03-15T11:26:48.500Z] {"level":"debug","time":"2021-03-15T11:26:48Z","message":"gathering metrics"}
[2021-03-15T11:26:55.166Z] time="2021-03-15T11:26:55Z" level=debug msg="Agent listed in Fleet with online status" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 hostname=d1da38626bcd
[2021-03-15T11:26:55.166Z] time="2021-03-15T11:26:55Z" level=warning msg="The Agent is not in the offline status yet" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 elapsedTime=8m43.054375191s hostname=d1da38626bcd isAgentInStatus=false retry=106 status=offline
[2021-03-15T11:26:58.627Z] {"level":"debug","time":"2021-03-15T11:26:58Z","message":"sent request with 0 transactions, 0 spans, 0 errors, 1 metricset"}
[2021-03-15T11:27:00.537Z] time="2021-03-15T11:27:00Z" level=debug msg="Agent listed in Fleet with online status" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 hostname=d1da38626bcd
[2021-03-15T11:27:00.537Z] time="2021-03-15T11:27:00Z" level=warning msg="The Agent is not in the offline status yet" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 elapsedTime=8m48.438980622s hostname=d1da38626bcd isAgentInStatus=false retry=107 status=offline
[2021-03-15T11:27:07.102Z] time="2021-03-15T11:27:05Z" level=debug msg="Agent listed in Fleet with online status" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 hostname=d1da38626bcd
[2021-03-15T11:27:07.102Z] time="2021-03-15T11:27:05Z" level=warning msg="The Agent is not in the offline status yet" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 elapsedTime=8m53.902270994s hostname=d1da38626bcd isAgentInStatus=false retry=108 status=offline
[2021-03-15T11:27:11.303Z] time="2021-03-15T11:27:10Z" level=debug msg="Agent listed in Fleet with online status" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 hostname=d1da38626bcd
[2021-03-15T11:27:11.303Z] time="2021-03-15T11:27:10Z" level=warning msg="The Agent is not in the offline status yet" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 elapsedTime=8m58.486887598s hostname=d1da38626bcd isAgentInStatus=false retry=109 status=offline
[2021-03-15T11:27:16.627Z] time="2021-03-15T11:27:15Z" level=debug msg="Agent listed in Fleet with online status" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 hostname=d1da38626bcd
[2021-03-15T11:27:16.627Z] time="2021-03-15T11:27:15Z" level=warning msg="The Agent is not in the offline status yet" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 elapsedTime=9m3.775160989s hostname=d1da38626bcd isAgentInStatus=false retry=110 status=offline
[2021-03-15T11:27:18.529Z] {"level":"debug","time":"2021-03-15T11:27:18Z","message":"gathering metrics"}
[2021-03-15T11:27:21.103Z] time="2021-03-15T11:27:20Z" level=debug msg="Agent listed in Fleet with online status" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 hostname=d1da38626bcd
[2021-03-15T11:27:21.103Z] time="2021-03-15T11:27:20Z" level=warning msg="The Agent is not in the offline status yet" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 elapsedTime=9m8.762614872s hostname=d1da38626bcd isAgentInStatus=false retry=111 status=offline
[2021-03-15T11:27:29.487Z] time="2021-03-15T11:27:28Z" level=debug msg="Agent listed in Fleet with online status" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 hostname=d1da38626bcd
[2021-03-15T11:27:29.487Z] time="2021-03-15T11:27:28Z" level=warning msg="The Agent is not in the offline status yet" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 elapsedTime=9m16.074429016s hostname=d1da38626bcd isAgentInStatus=false retry=112 status=offline
[2021-03-15T11:27:29.487Z] {"level":"debug","time":"2021-03-15T11:27:28Z","message":"sent request with 0 transactions, 0 spans, 0 errors, 1 metricset"}
[2021-03-15T11:27:34.964Z] time="2021-03-15T11:27:34Z" level=debug msg="Agent listed in Fleet with online status" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 hostname=d1da38626bcd
[2021-03-15T11:27:34.964Z] time="2021-03-15T11:27:34Z" level=warning msg="The Agent is not in the offline status yet" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 elapsedTime=9m22.586652717s hostname=d1da38626bcd isAgentInStatus=false retry=113 status=offline
[2021-03-15T11:27:38.253Z] time="2021-03-15T11:27:37Z" level=debug msg="Agent listed in Fleet with online status" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 hostname=d1da38626bcd
[2021-03-15T11:27:38.253Z] time="2021-03-15T11:27:37Z" level=warning msg="The Agent is not in the offline status yet" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 elapsedTime=9m25.643301089s hostname=d1da38626bcd isAgentInStatus=false retry=114 status=offline
[2021-03-15T11:27:44.904Z] time="2021-03-15T11:27:44Z" level=debug msg="Agent listed in Fleet with online status" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 hostname=d1da38626bcd
[2021-03-15T11:27:44.904Z] time="2021-03-15T11:27:44Z" level=warning msg="The Agent is not in the offline status yet" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 elapsedTime=9m32.078874202s hostname=d1da38626bcd isAgentInStatus=false retry=115 status=offline
[2021-03-15T11:27:48.474Z] {"level":"debug","time":"2021-03-15T11:27:48Z","message":"gathering metrics"}
[2021-03-15T11:27:48.732Z] time="2021-03-15T11:27:48Z" level=debug msg="Agent listed in Fleet with online status" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 hostname=d1da38626bcd
[2021-03-15T11:27:48.732Z] time="2021-03-15T11:27:48Z" level=warning msg="The Agent is not in the offline status yet" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 elapsedTime=9m36.56670934s hostname=d1da38626bcd isAgentInStatus=false retry=116 status=offline
[2021-03-15T11:27:52.026Z] time="2021-03-15T11:27:51Z" level=debug msg="Agent listed in Fleet with online status" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 hostname=d1da38626bcd
[2021-03-15T11:27:52.027Z] time="2021-03-15T11:27:51Z" level=warning msg="The Agent is not in the offline status yet" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 elapsedTime=9m39.74255433s hostname=d1da38626bcd isAgentInStatus=false retry=117 status=offline
[2021-03-15T11:27:55.730Z] time="2021-03-15T11:27:55Z" level=debug msg="Agent listed in Fleet with online status" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 hostname=d1da38626bcd
[2021-03-15T11:27:55.730Z] time="2021-03-15T11:27:55Z" level=warning msg="The Agent is not in the offline status yet" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 elapsedTime=9m43.217435025s hostname=d1da38626bcd isAgentInStatus=false retry=118 status=offline
[2021-03-15T11:27:59.037Z] {"level":"debug","time":"2021-03-15T11:27:58Z","message":"sent request with 0 transactions, 0 spans, 0 errors, 1 metricset"}
[2021-03-15T11:28:01.648Z] time="2021-03-15T11:28:01Z" level=debug msg="Agent listed in Fleet with online status" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 hostname=d1da38626bcd
[2021-03-15T11:28:01.648Z] time="2021-03-15T11:28:01Z" level=warning msg="The Agent is not in the offline status yet" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 elapsedTime=9m49.438650945s hostname=d1da38626bcd isAgentInStatus=false retry=119 status=offline
[2021-03-15T11:28:07.233Z] time="2021-03-15T11:28:07Z" level=debug msg="Agent listed in Fleet with online status" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 hostname=d1da38626bcd
[2021-03-15T11:28:07.233Z] time="2021-03-15T11:28:07Z" level=warning msg="The Agent is not in the offline status yet" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 elapsedTime=9m55.241432254s hostname=d1da38626bcd isAgentInStatus=false retry=120 status=offline
[2021-03-15T11:28:10.595Z] time="2021-03-15T11:28:10Z" level=debug msg="Agent listed in Fleet with online status" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 hostname=d1da38626bcd
[2021-03-15T11:28:10.595Z] time="2021-03-15T11:28:10Z" level=warning msg="The Agent is not in the offline status yet" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 elapsedTime=9m58.255185957s hostname=d1da38626bcd isAgentInStatus=false retry=121 status=offline
[2021-03-15T11:28:11.192Z] cat: /opt/Elastic/Agent//data/elastic-agent-f323b3/logs//elastic-agent-json.log: No such file or directory
[2021-03-15T11:28:11.192Z] time="2021-03-15T11:28:11Z" level=error msg="Could not execute command in container" command="[cat /opt/Elastic/Agent//data/elastic-agent-f323b3/logs//elastic-agent-json.log]" error="Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-885/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-885/.op/compose/services/centos-systemd/docker-compose.yml] - Local Docker compose exited abnormally whilst running docker-compose: [exec -T centos-systemd cat /opt/Elastic/Agent//data/elastic-agent-f323b3/logs//elastic-agent-json.log]. exit status 1" service=centos-systemd
[2021-03-15T11:28:11.192Z] time="2021-03-15T11:28:11Z" level=warning msg="Could not get agent logs in the container" containerName=d1da38626bcd error="Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-885/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-885/.op/compose/services/centos-systemd/docker-compose.yml] - Local Docker compose exited abnormally whilst running docker-compose: [exec -T centos-systemd cat /opt/Elastic/Agent//data/elastic-agent-f323b3/logs//elastic-agent-json.log]. exit status 1"
[2021-03-15T11:28:11.192Z] time="2021-03-15T11:28:11Z" level=debug msg="Un-enrolling agent in Fleet" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3 hostname=d1da38626bcd
[2021-03-15T11:28:12.201Z] time="2021-03-15T11:28:12Z" level=debug msg="Fleet agent was unenrolled" agentID=ff2431dd-83d9-4321-bd69-17b3e1f46aa3
[2021-03-15T11:28:13.137Z] Stopping fleet_centos-systemd_elastic-agent_1 ... 
[2021-03-15T11:28:18.577Z] {"level":"debug","time":"2021-03-15T11:28:18Z","message":"gathering metrics"}
[2021-03-15T11:28:23.292Z] 
Stopping fleet_centos-systemd_elastic-agent_1 ... done
Removing fleet_centos-systemd_elastic-agent_1 ... 
[2021-03-15T11:28:23.553Z] 
Removing fleet_centos-systemd_elastic-agent_1 ... done
Going to remove fleet_centos-systemd_elastic-agent_1
[2021-03-15T11:28:23.553Z] time="2021-03-15T11:28:23Z" level=debug msg="Docker compose executed." cmd="[rm -fvs centos-systemd]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-885/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-885/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz718410820 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz centos_systemdContainerName:fleet_centos-systemd_elastic-agent_1 centos_systemdTag:latest kibanaConfigPath:/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-885/src/github.com/elastic/e2e-testing/e2e/_suites/fleet/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2021-03-15T11:28:23.553Z] time="2021-03-15T11:28:23Z" level=debug msg="Service removed from compose" profile=fleet service=centos-systemd
[2021-03-15T11:28:24.963Z] time="2021-03-15T11:28:24Z" level=debug msg="The token was deleted" tokenID=fd0d7852-c54c-4eea-85d2-abfc42697c3e
[2021-03-15T11:28:24.963Z] time="2021-03-15T11:28:24Z" level=info msg="Integration deleted from the configuration" integration= packageConfigId= policyID=42fb2c30-857f-11eb-81b2-f35c7b031d0b version=
[2021-03-15T11:28:24.963Z] time="2021-03-15T11:28:24Z" level=debug msg="Destroying Fleet runtime dependencies"
[2021-03-15T11:28:25.900Z] Stopping fleet_kibana_1           ... 
[2021-03-15T11:28:25.900Z] Stopping fleet_elasticsearch_1    ... 
[2021-03-15T11:28:25.900Z] Stopping fleet_package-registry_1 ... 
[2021-03-15T11:28:27.554Z] 
Stopping fleet_kibana_1           ... done

Stopping fleet_package-registry_1 ... done

Stopping fleet_elasticsearch_1    ... done
Removing fleet_kibana_1           ... 
[2021-03-15T11:28:27.554Z] Removing fleet_elasticsearch_1    ... 
[2021-03-15T11:28:27.554Z] Removing fleet_package-registry_1 ... 
[2021-03-15T11:28:27.554Z] 
Removing fleet_kibana_1           ... done

Removing fleet_package-registry_1 ... done

Removing fleet_elasticsearch_1    ... done
Removing network fleet_default
[2021-03-15T11:28:27.985Z] time="2021-03-15T11:28:27Z" level=debug msg="Docker compose executed." cmd="[down --remove-orphans]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-885/.op/compose/profiles/fleet/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz718410820 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz centos_systemdContainerName:fleet_centos-systemd_elastic-agent_1 centos_systemdTag:latest kibanaConfigPath:/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-885/src/github.com/elastic/e2e-testing/e2e/_suites/fleet/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2021-03-15T11:28:27.985Z] time="2021-03-15T11:28:27Z" 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.gz718410820
[2021-03-15T11:28:27.985Z] time="2021-03-15T11:28:27Z" level=debug msg="Elastic Agent binary was removed." installer=centos-systemd-8.0.0-SNAPSHOT path=/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm608112339
[2021-03-15T11:28:27.985Z] Makefile:71: recipe for target 'functional-test' failed
[2021-03-15T11:28:27.985Z] make: *** [functional-test] Error 1
[2021-03-15T11:28:28.144Z] [INFO] Stopping Filebeat Docker container
[2021-03-15T11:28:28.506Z] + docker exec -t ff13b61805325a1b92d9454bbdd1c367bf44e8df2e0b191b7bc8d34675488475 chmod -R ugo+rw /output
[2021-03-15T11:28:28.765Z] + docker stop --time 30 ff13b61805325a1b92d9454bbdd1c367bf44e8df2e0b191b7bc8d34675488475
[2021-03-15T11:28:29.023Z] ff13b61805325a1b92d9454bbdd1c367bf44e8df2e0b191b7bc8d34675488475
[2021-03-15T11:28:29.039Z] Archiving artifacts
[2021-03-15T11:28:29.729Z] Recording test results
[2021-03-15T11:28:30.174Z] [Checks API] No suitable checks publisher found.
[2021-03-15T11:28:30.191Z] Archiving artifacts
[2021-03-15T11:28:30.249Z] Running in /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-885/src/github.com/elastic/e2e-testing
[2021-03-15T11:28:30.569Z] + go clean -modcache
[2021-03-15T11:28:30.954Z] Failed in branch ubuntu-18.04_fleet_fleet_mode_agent
[2021-03-15T11:28:31.942Z] Stage "Release" skipped due to earlier failure(s)
[2021-03-15T11:29:03.531Z] Running on beats-ci-immutable-ubuntu-2004-1615806591719314756 in /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-885
[2021-03-15T11:29:03.584Z] [INFO] getVaultSecret: Getting secrets
[2021-03-15T11:29:03.757Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-03-15T11:29:04.685Z] + chmod 755 generate-build-data.sh
[2021-03-15T11:29:04.685Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-885/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-885/runs/3 FAILURE 1825462
[2021-03-15T11:29:04.685Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-885/runs/3/steps/?limit=10000 -o steps-info.json

@v1v v1v requested a review from a team March 15, 2021 10:15
@mdelapenya
Copy link
Contributor

BTW, the step in the pipeline shows this message:

[2021-03-15T10:28:09.830Z] /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-885/src/github.com/elastic/e2e-testing@tmp/durable-95501832/script.sh: 1: /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-885/src/github.com/elastic/e2e-testing@tmp/durable-95501832/script.sh: go: not found

Is it related?

@v1v
Copy link
Member Author

v1v commented Mar 15, 2021

It's now much better with 4630b71

image

Copy link
Contributor

@mdelapenya mdelapenya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! The failed test seems one of the flaky ones

error(e.toString())
} finally {
junit(allowEmptyResults: true, keepLongStdio: true, testResults: "${BASE_DIR}/outputs/TEST-*.xml")
} finally {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We only need the finally, then error is redundant

@v1v v1v merged commit 34dc603 into elastic:master Mar 15, 2021
v1v added a commit to v1v/e2e-testing that referenced this pull request Mar 15, 2021
v1v added a commit to v1v/e2e-testing that referenced this pull request Mar 15, 2021
v1v added a commit to v1v/e2e-testing that referenced this pull request Mar 15, 2021
v1v added a commit to v1v/e2e-testing that referenced this pull request Mar 15, 2021
v1v added a commit to v1v/e2e-testing that referenced this pull request Mar 15, 2021
…hings

* upstream/master:
  [CI] tear down the workspace (elastic#885)
  docs: add Make as build system (elastic#886)
  fix: proper usage of step (elastic#883)
  feat: run most frequent flavours in the PR stage (elastic#873)
  break: move from "pull-requests" to "commits" GCP bucket (elastic#866)
  fix: use proper flags (elastic#868)
  feat: instrument Helm charts test suite (elastic#858)
v1v added a commit that referenced this pull request Mar 16, 2021
v1v added a commit that referenced this pull request Mar 16, 2021
v1v added a commit that referenced this pull request Mar 16, 2021
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.

Fix the download packages with read only access
4 participants