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

feat: support using commits for merges #641

Merged
merged 4 commits into from
Jan 25, 2021

Conversation

mdelapenya
Copy link
Contributor

What does this PR do?

It adds a check for the GITHUB_CHECK_SHA1 environment variable:

  • if it's present and it's not a PR (the version of the elastic-agent does not start with pr-), then it will get the artifacts from the snapshots directory in thee GCP bucket.
  • if it's present and it's a PR, we'll use the pull-requests directory in the bucket (although we could use the commit, for simplicity)
  • if it's not present and it's not a PR, we'll use the snapshots directory in the bucket.
  • if it's not present and it's a PR, we'll use the pull-requests directory in the bucket.

We are extending the existing Make goal to run the tests to include everything under _suites. This is because Go ignores underscores and dot files.

Why is it important?

We want reproducibility, and because a snapshot could be overriden by the next Beats CI build, we'd like to univocally select the artifacts, and thee commit is the ID for that, as we store all CI artifacts under the commit SHA of each PR and merge.

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 -C e2e unit-test

Related issues

Follow-ups

@mdelapenya mdelapenya self-assigned this Jan 22, 2021
@mdelapenya mdelapenya requested a review from a team January 22, 2021 05:10
@elasticmachine
Copy link
Contributor

elasticmachine commented Jan 22, 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: mdelapenya commented: jenkins run the tests please

    • Start Time: 2021-01-22T11:01:49.308+0000
  • Duration: 42 min 19 sec

  • Commit: 475ccce

Test stats 🧪

Test Results
Failed 2
Passed 110
Skipped 12
Total 124

Test errors 2

Expand to view the tests failures

Initializing / End-To-End Tests / fleet_fleet_mode_agent / Re-enrolling the centos agent – Fleet Mode Agent
    Expand to view the error details

     Step the agent is listed in Fleet as "online": The Agent is not in the online status yet 
    

  • no stacktrace
Initializing / End-To-End Tests / fleet_fleet_mode_agent / Re-enrolling the debian agent – Fleet Mode Agent
    Expand to view the error details

     Step the agent is listed in Fleet as "online": The Agent is not in the online status yet 
    

  • no stacktrace

Steps errors 4

Expand to view the steps failures

Run functional tests for fleet:fleet_mode_agent
  • Took 37 min 11 sec . View more details on here
  • Description: .ci/scripts/functional-test.sh "fleet" "fleet_mode_agent" "8.0.0-SNAPSHOT" "8.0.0-SNAPSHOT"
Archive the artifacts
  • Took 0 min 1 sec . View more details on here
  • Description: [2021-01-22T11:44:04.883Z] Archiving artifacts script returned exit code 2
Archive the artifacts
  • Took 0 min 0 sec . View more details on here
  • Description: [2021-01-22T11:44:06.008Z] Archiving artifacts hudson.AbortException: script returned exit code 2
Error signal
  • Took 0 min 0 sec . View more details on here
  • Description: hudson.AbortException: script returned exit code 2

Log output

Expand to view the last 100 lines of log output

[2021-01-22T11:41:51.060Z] time="2021-01-22T11:41:50Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=1.698757818s hostname=004403af6d5c isAgentInStatus=false retry=3 status=offline
[2021-01-22T11:41:52.964Z] time="2021-01-22T11:41:52Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:41:52.964Z] time="2021-01-22T11:41:52Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=3.546064889s hostname=004403af6d5c isAgentInStatus=false retry=4 status=offline
[2021-01-22T11:41:57.153Z] time="2021-01-22T11:41:56Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:41:57.153Z] time="2021-01-22T11:41:56Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=7.25682778s hostname=004403af6d5c isAgentInStatus=false retry=5 status=offline
[2021-01-22T11:41:59.683Z] time="2021-01-22T11:41:59Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:41:59.683Z] time="2021-01-22T11:41:59Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=10.279883709s hostname=004403af6d5c isAgentInStatus=false retry=6 status=offline
[2021-01-22T11:42:07.797Z] time="2021-01-22T11:42:06Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:42:07.797Z] time="2021-01-22T11:42:06Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=17.32032763s hostname=004403af6d5c isAgentInStatus=false retry=7 status=offline
[2021-01-22T11:42:09.173Z] time="2021-01-22T11:42:08Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:42:09.173Z] time="2021-01-22T11:42:09Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=19.880915331s hostname=004403af6d5c isAgentInStatus=false retry=8 status=offline
[2021-01-22T11:42:13.361Z] time="2021-01-22T11:42:12Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:42:13.361Z] time="2021-01-22T11:42:12Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=23.778946116s hostname=004403af6d5c isAgentInStatus=false retry=9 status=offline
[2021-01-22T11:42:16.644Z] time="2021-01-22T11:42:15Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:42:16.644Z] time="2021-01-22T11:42:15Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=26.857051698s hostname=004403af6d5c isAgentInStatus=false retry=10 status=offline
[2021-01-22T11:42:23.205Z] time="2021-01-22T11:42:22Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:42:23.205Z] time="2021-01-22T11:42:22Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=33.666759127s hostname=004403af6d5c isAgentInStatus=false retry=11 status=offline
[2021-01-22T11:42:27.393Z] time="2021-01-22T11:42:26Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:42:27.393Z] time="2021-01-22T11:42:26Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=37.480727363s hostname=004403af6d5c isAgentInStatus=false retry=12 status=offline
[2021-01-22T11:42:35.507Z] time="2021-01-22T11:42:34Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:42:35.507Z] time="2021-01-22T11:42:34Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=44.962114126s hostname=004403af6d5c isAgentInStatus=false retry=13 status=offline
[2021-01-22T11:42:42.068Z] time="2021-01-22T11:42:41Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:42:42.068Z] time="2021-01-22T11:42:41Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=52.145697153s hostname=004403af6d5c isAgentInStatus=false retry=14 status=offline
[2021-01-22T11:42:45.352Z] time="2021-01-22T11:42:44Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:42:45.353Z] time="2021-01-22T11:42:44Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=55.531488665s hostname=004403af6d5c isAgentInStatus=false retry=15 status=offline
[2021-01-22T11:42:49.540Z] time="2021-01-22T11:42:48Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:42:49.540Z] time="2021-01-22T11:42:48Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=59.58143747s hostname=004403af6d5c isAgentInStatus=false retry=16 status=offline
[2021-01-22T11:42:54.808Z] time="2021-01-22T11:42:53Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:42:54.809Z] time="2021-01-22T11:42:53Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=1m4.778778621s hostname=004403af6d5c isAgentInStatus=false retry=17 status=offline
[2021-01-22T11:42:57.340Z] time="2021-01-22T11:42:57Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:42:57.340Z] time="2021-01-22T11:42:57Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=1m8.193931679s hostname=004403af6d5c isAgentInStatus=false retry=18 status=offline
[2021-01-22T11:43:03.901Z] time="2021-01-22T11:43:03Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:43:04.159Z] time="2021-01-22T11:43:03Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=1m14.790185503s hostname=004403af6d5c isAgentInStatus=false retry=19 status=offline
[2021-01-22T11:43:10.721Z] time="2021-01-22T11:43:09Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:43:10.722Z] time="2021-01-22T11:43:09Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=1m20.851136499s hostname=004403af6d5c isAgentInStatus=false retry=20 status=offline
[2021-01-22T11:43:14.007Z] time="2021-01-22T11:43:13Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:43:14.007Z] time="2021-01-22T11:43:13Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=1m24.667677755s hostname=004403af6d5c isAgentInStatus=false retry=21 status=offline
[2021-01-22T11:43:18.197Z] time="2021-01-22T11:43:17Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:43:18.197Z] time="2021-01-22T11:43:17Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=1m28.447220038s hostname=004403af6d5c isAgentInStatus=false retry=22 status=offline
[2021-01-22T11:43:22.383Z] time="2021-01-22T11:43:21Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:43:22.383Z] time="2021-01-22T11:43:21Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=1m32.662806482s hostname=004403af6d5c isAgentInStatus=false retry=23 status=offline
[2021-01-22T11:43:28.945Z] time="2021-01-22T11:43:28Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:43:28.945Z] time="2021-01-22T11:43:28Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=1m38.971877467s hostname=004403af6d5c isAgentInStatus=false retry=24 status=offline
[2021-01-22T11:43:30.846Z] time="2021-01-22T11:43:30Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:43:30.846Z] time="2021-01-22T11:43:30Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=1m41.528369702s hostname=004403af6d5c isAgentInStatus=false retry=25 status=offline
[2021-01-22T11:43:37.410Z] time="2021-01-22T11:43:37Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:43:37.410Z] time="2021-01-22T11:43:37Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=1m48.265667328s hostname=004403af6d5c isAgentInStatus=false retry=26 status=offline
[2021-01-22T11:43:41.598Z] time="2021-01-22T11:43:41Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:43:41.598Z] time="2021-01-22T11:43:41Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=1m51.942453876s hostname=004403af6d5c isAgentInStatus=false retry=27 status=offline
[2021-01-22T11:43:44.128Z] time="2021-01-22T11:43:43Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:43:44.128Z] time="2021-01-22T11:43:43Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=1m54.540858121s hostname=004403af6d5c isAgentInStatus=false retry=28 status=offline
[2021-01-22T11:43:52.238Z] time="2021-01-22T11:43:50Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:43:52.238Z] time="2021-01-22T11:43:50Z" level=warning msg="The Agent is not in the offline status yet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 elapsedTime=2m1.818397877s hostname=004403af6d5c isAgentInStatus=false retry=29 status=offline
[2021-01-22T11:43:58.801Z] time="2021-01-22T11:43:57Z" level=debug msg="Agent listed in Fleet with online status" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:43:58.801Z] time="2021-01-22T11:43:57Z" level=info msg="The Agent is in the desired status" elapsedTime=2m8.842977876s hostname=004403af6d5c isAgentInStatus=true retries=30 status=offline
[2021-01-22T11:43:58.801Z] OCI runtime exec failed: exec failed: container_linux.go:370: starting container process caused: exec: "elastic-agent": executable file not found in $PATH: unknown
[2021-01-22T11:43:59.059Z] time="2021-01-22T11:43:58Z" level=error msg="Could not execute command in container" command="[elastic-agent uninstall -f]" error="Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-641/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-641/.op/compose/services/debian-systemd/docker-compose.yml] - Local Docker compose exited abnormally whilst running docker-compose: [exec -T debian-systemd elastic-agent uninstall -f]. exit status 126" service=debian-systemd
[2021-01-22T11:43:59.060Z] time="2021-01-22T11:43:58Z" level=error msg="Could not run agent command in the box" command="[elastic-agent uninstall -f]" error="Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-641/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-641/.op/compose/services/debian-systemd/docker-compose.yml] - Local Docker compose exited abnormally whilst running docker-compose: [exec -T debian-systemd elastic-agent uninstall -f]. exit status 126" profile=fleet service=debian-systemd
[2021-01-22T11:43:59.060Z] time="2021-01-22T11:43:58Z" level=error msg="Could not uninstall the agent"
[2021-01-22T11:43:59.060Z] time="2021-01-22T11:43:58Z" level=debug msg="Un-enrolling agent in Fleet" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60 hostname=004403af6d5c
[2021-01-22T11:43:59.994Z] time="2021-01-22T11:43:59Z" level=debug msg="Fleet agent was unenrolled" agentID=ce9c7a20-5ca6-11eb-baa2-d733fb33da60
[2021-01-22T11:44:00.560Z] Stopping fleet_debian-systemd_elastic-agent_1 ... 
[2021-01-22T11:44:01.127Z] 
Stopping fleet_debian-systemd_elastic-agent_1 ... done
Removing fleet_debian-systemd_elastic-agent_1 ... 
[2021-01-22T11:44:01.127Z] 
Removing fleet_debian-systemd_elastic-agent_1 ... done
Going to remove fleet_debian-systemd_elastic-agent_1
[2021-01-22T11:44:01.127Z] time="2021-01-22T11:44:01Z" level=debug msg="Docker compose executed." cmd="[rm -fvs debian-systemd]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-641/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-641/.op/compose/services/debian-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz319457907 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-x86_64.tar.gz centos_systemdContainerName:fleet_centos-systemd_elastic-agent_1 centos_systemdTag:latest debian_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz319457907 debian_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-x86_64.tar.gz debian_systemdContainerName:fleet_debian-systemd_elastic-agent_1 debian_systemdTag:stretch kibanaConfigPath:/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-641/src/github.com/elastic/e2e-testing/e2e/_suites/fleet/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2021-01-22T11:44:01.127Z] time="2021-01-22T11:44:01Z" level=debug msg="Service removed from compose" profile=fleet service=debian-systemd
[2021-01-22T11:44:02.060Z] time="2021-01-22T11:44:01Z" level=debug msg="The token was deleted" tokenID=ca6deba0-5ca6-11eb-baa2-d733fb33da60
[2021-01-22T11:44:02.060Z] time="2021-01-22T11:44:01Z" level=info msg="Integration deleted from the configuration" integration= packageConfigId= policyID=3806d000-5ca2-11eb-baa2-d733fb33da60 version=
[2021-01-22T11:44:02.060Z] time="2021-01-22T11:44:01Z" level=debug msg="Destroying Fleet runtime dependencies"
[2021-01-22T11:44:02.626Z] Stopping fleet_kibana_1           ... 
[2021-01-22T11:44:02.626Z] Stopping fleet_package-registry_1 ... 
[2021-01-22T11:44:02.626Z] Stopping fleet_elasticsearch_1    ... 
[2021-01-22T11:44:03.760Z] 
Stopping fleet_kibana_1           ... done

Stopping fleet_package-registry_1 ... done

Stopping fleet_elasticsearch_1    ... done
Removing fleet_kibana_1           ... 
[2021-01-22T11:44:03.760Z] Removing fleet_package-registry_1 ... 
[2021-01-22T11:44:03.760Z] Removing fleet_elasticsearch_1    ... 
[2021-01-22T11:44:03.760Z] 
Removing fleet_package-registry_1 ... done

Removing fleet_kibana_1           ... done

Removing fleet_elasticsearch_1    ... done
Removing network fleet_default
[2021-01-22T11:44:04.018Z] time="2021-01-22T11:44:03Z" level=debug msg="Docker compose executed." cmd="[down --remove-orphans]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-641/.op/compose/profiles/fleet/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz319457907 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-x86_64.tar.gz centos_systemdContainerName:fleet_centos-systemd_elastic-agent_1 centos_systemdTag:latest debian_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz319457907 debian_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-x86_64.tar.gz debian_systemdContainerName:fleet_debian-systemd_elastic-agent_1 debian_systemdTag:stretch kibanaConfigPath:/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-641/src/github.com/elastic/e2e-testing/e2e/_suites/fleet/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2021-01-22T11:44:04.018Z] time="2021-01-22T11:44:03Z" level=debug msg="Elastic Agent binary was removed." installer=debian-systemd path=/tmp/elastic-agent-8.0.0-SNAPSHOT-amd64.deb879072054
[2021-01-22T11:44:04.018Z] time="2021-01-22T11:44:03Z" level=debug msg="Elastic Agent binary was removed." installer=debian-tar path=/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz319457907
[2021-01-22T11:44:04.018Z] time="2021-01-22T11:44:03Z" level=debug msg="Elastic Agent binary was removed." installer=centos-systemd path=/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm634550372
[2021-01-22T11:44:04.018Z] Makefile:61: recipe for target 'functional-test' failed
[2021-01-22T11:44:04.018Z] make: *** [functional-test] Error 1
[2021-01-22T11:44:04.072Z] [INFO] Stopping Filebeat Docker container
[2021-01-22T11:44:04.354Z] + docker exec -t d0920b889504b71c99fbb79cda7c6064b7d6d4b7119f8750de6f2c8026c0c762 chmod -R ugo+rw /output
[2021-01-22T11:44:04.612Z] + docker stop --time 30 d0920b889504b71c99fbb79cda7c6064b7d6d4b7119f8750de6f2c8026c0c762
[2021-01-22T11:44:04.869Z] d0920b889504b71c99fbb79cda7c6064b7d6d4b7119f8750de6f2c8026c0c762
[2021-01-22T11:44:04.883Z] Archiving artifacts
[2021-01-22T11:44:05.546Z] Recording test results
[2021-01-22T11:44:05.993Z] [Checks API] No suitable checks publisher found.
[2021-01-22T11:44:06.008Z] Archiving artifacts
[2021-01-22T11:44:06.041Z] Failed in branch fleet_fleet_mode_agent
[2021-01-22T11:44:07.150Z] Stage "Release" skipped due to earlier failure(s)
[2021-01-22T11:44:07.412Z] Running on worker-395930 in /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-641
[2021-01-22T11:44:07.456Z] [INFO] getVaultSecret: Getting secrets
[2021-01-22T11:44:07.536Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-01-22T11:44:09.575Z] + chmod 755 generate-build-data.sh
[2021-01-22T11:44:09.575Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-641/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-641/runs/2 FAILURE 2538882
[2021-01-22T11:44:09.575Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-641/runs/2/steps/?limit=10000 -o steps-info.json
[2021-01-22T11:44:13.674Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-641/runs/2/tests/?status=FAILED -o tests-errors.json
[2021-01-22T11:44:14.371Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-641/runs/2/log/ -o pipeline-log.txt

🐛 Flaky test report

❕ There are test failures but not known flaky tests.

Expand to view the summary

Test stats 🧪

Test Results
Failed 2
Passed 110
Skipped 12
Total 124

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 / fleet_fleet_mode_agent / Re-enrolling the centos agent – Fleet Mode Agent
  • Name: Initializing / End-To-End Tests / fleet_fleet_mode_agent / Re-enrolling the debian agent – Fleet Mode Agent

@mdelapenya mdelapenya marked this pull request as ready for review January 22, 2021 07:01
@mdelapenya
Copy link
Contributor Author

jenkins run the tests please

@mdelapenya
Copy link
Contributor Author

mdelapenya commented Jan 22, 2021

The above two failures seem present in upstream 😢

@mdelapenya mdelapenya merged commit 53bee1f into elastic:master Jan 25, 2021
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Jan 25, 2021
* chore: use commit sha for branches

* chore: extract bucket coordinates calculation to a method

We are adding unit tests for this new method

* chore: move init method to the BeforeSuite life cycle hook

This will allow unit tests not to execute that code

* chore: include unit tests for suites in Makefile goal
# Conflicts:
#	e2e/_suites/fleet/services.go
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Jan 25, 2021
* chore: use commit sha for branches

* chore: extract bucket coordinates calculation to a method

We are adding unit tests for this new method

* chore: move init method to the BeforeSuite life cycle hook

This will allow unit tests not to execute that code

* chore: include unit tests for suites in Makefile goal
# Conflicts:
#	e2e/_suites/fleet/services.go
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Jan 25, 2021
* chore: use commit sha for branches

* chore: extract bucket coordinates calculation to a method

We are adding unit tests for this new method

* chore: move init method to the BeforeSuite life cycle hook

This will allow unit tests not to execute that code

* chore: include unit tests for suites in Makefile goal
# Conflicts:
#	e2e/_suites/fleet/services.go
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Jan 25, 2021
* chore: use commit sha for branches

* chore: extract bucket coordinates calculation to a method

We are adding unit tests for this new method

* chore: move init method to the BeforeSuite life cycle hook

This will allow unit tests not to execute that code

* chore: include unit tests for suites in Makefile goal
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Jan 26, 2021
* chore: use commit sha for branches

* chore: extract bucket coordinates calculation to a method

We are adding unit tests for this new method

* chore: move init method to the BeforeSuite life cycle hook

This will allow unit tests not to execute that code

* chore: include unit tests for suites in Makefile goal
# Conflicts:
#	e2e/_suites/fleet/services.go
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Jan 26, 2021
* chore: use commit sha for branches

* chore: extract bucket coordinates calculation to a method

We are adding unit tests for this new method

* chore: move init method to the BeforeSuite life cycle hook

This will allow unit tests not to execute that code

* chore: include unit tests for suites in Makefile goal
# Conflicts:
#	e2e/_suites/fleet/services.go
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Jan 26, 2021
* chore: use commit sha for branches

* chore: extract bucket coordinates calculation to a method

We are adding unit tests for this new method

* chore: move init method to the BeforeSuite life cycle hook

This will allow unit tests not to execute that code

* chore: include unit tests for suites in Makefile goal
# Conflicts:
#	e2e/_suites/fleet/services.go
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Jan 26, 2021
* chore: use commit sha for branches

* chore: extract bucket coordinates calculation to a method

We are adding unit tests for this new method

* chore: move init method to the BeforeSuite life cycle hook

This will allow unit tests not to execute that code

* chore: include unit tests for suites in Makefile goal
mdelapenya added a commit that referenced this pull request Jan 26, 2021
* chore: use commit sha for branches

* chore: extract bucket coordinates calculation to a method

We are adding unit tests for this new method

* chore: move init method to the BeforeSuite life cycle hook

This will allow unit tests not to execute that code

* chore: include unit tests for suites in Makefile goal
# Conflicts:
#	e2e/_suites/fleet/services.go
mdelapenya added a commit that referenced this pull request Jan 26, 2021
* chore: use commit sha for branches

* chore: extract bucket coordinates calculation to a method

We are adding unit tests for this new method

* chore: move init method to the BeforeSuite life cycle hook

This will allow unit tests not to execute that code

* chore: include unit tests for suites in Makefile goal
# Conflicts:
#	e2e/_suites/fleet/services.go
mdelapenya added a commit that referenced this pull request Jan 26, 2021
* chore: use commit sha for branches

* chore: extract bucket coordinates calculation to a method

We are adding unit tests for this new method

* chore: move init method to the BeforeSuite life cycle hook

This will allow unit tests not to execute that code

* chore: include unit tests for suites in Makefile goal
# Conflicts:
#	e2e/_suites/fleet/services.go
mdelapenya added a commit that referenced this pull request Jan 26, 2021
* chore: use commit sha for branches

* chore: extract bucket coordinates calculation to a method

We are adding unit tests for this new method

* chore: move init method to the BeforeSuite life cycle hook

This will allow unit tests not to execute that code

* chore: include unit tests for suites in Makefile goal
@mdelapenya mdelapenya deleted the 377-use-commit-sha-for-merges branch January 26, 2021 16:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for downloading binaries from GCP using commit SHA
4 participants