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

feat: support executing nightly tests on CI #669

Merged
merged 4 commits into from
Feb 1, 2021

Conversation

mdelapenya
Copy link
Contributor

What does this PR do?

It instruments the CI to be able to modify the tags to be run in the CI test execution, adding or excluding the @nightly tag from Godog. To achieve that, we have defined a global environment variable for the tag to be added/excluded, NIGHTLY_TAG, and a Jenkins input parameter to control the nightly tags, NIGHTLY_SCENARIOS, which takes false as default value.

Finally, the nightly job for Fleet will trigger the main job setting the new parameter with true value, although it's also possible to run thee nightly tests when running the main job manually, be it a PR or a branch.

Why is it important?

We want Fleet's nightly build to run the tests that are marked as @nightly.

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)

Related issues

Use cases

Scenario Outline: Triggering the tests for a <buildType> excluding the nightly tests
When the E2E tests are run for a "<buildType>" in the "<repo>" repository
   And the NIGHTLY_SCENARIOS check is not checked
Then the nightly tests are not executed
Examples:
| repo        | buildType |
| beats       | PR        |
| beats       | branch    |
| e2e-testing | PR        |
| e2e-testing | branch    |

Scenario Outline: Triggering the tests for a <buildType> including the nightly tests
When the E2E tests are run for a "<buildType>" in the "<repo>" repository
   And the NIGHTLY_SCENARIOS check is checked
Then the nightly tests are executed
Examples:
| repo        | buildType |
| beats       | PR        |
| beats       | branch    |
| e2e-testing | PR        |
| e2e-testing | branch    |

Scenario: Triggering the tests for a nightly build including the nightly tests
When the E2E tests are run for a nightly build in the e2e-testing repository
Then the nightly tests are executed
   And the NIGHTLY_SCENARIOS check is checked

Follow-ups

We still have to replace the @skip tag from the Upgrade tests with @nightly, but we are going to do that in another R, as we are testing its behaviour before enabling it back.

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

elasticmachine commented Jan 27, 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-02-01T09:17:36.672+0000
  • Duration: 33 min 22 sec

  • Commit: 2f3d6c2

Test stats 🧪

Test Results
Failed 3
Passed 100
Skipped 19
Total 122

Test errors 3

Expand to view the tests failures

Initializing / End-To-End Tests / ubuntu-18.04_fleet_agent_endpoint_integration / Adding the Endpoint Integration to an Agent makes the host to show in Security App – Agent Endpoint Integration
    Expand to view the error details

     Step the host name is shown in the Administration view in the Security App as "online": The host 41a5023e95a3 is not listed in the Administration view in the Security App 
    

  • no stacktrace
Initializing / End-To-End Tests / ubuntu-18.04_fleet_agent_endpoint_integration / Deploying an Endpoint makes policies to appear in the Security App – Agent Endpoint Integration
    Expand to view the error details

     Step the policy response will be shown in the Security App: The policy response is not listed as 'success' in the Administration view in the Security App yet 
    

  • no stacktrace
Initializing / End-To-End Tests / ubuntu-18.04_fleet_agent_endpoint_integration / Changing an Agent policy is reflected in the Security App – Agent Endpoint Integration
    Expand to view the error details

     Step the policy will reflect the change in the Security App: No endpoint-security events where found for the agent in the 14051dff-81ee-44a4-8979-506751a68220 policy 
    

  • no stacktrace

Steps errors 4

Expand to view the steps failures

Run functional tests for fleet:agent_endpoint_integration && ~@nightly
  • Took 28 min 5 sec . View more details on here
  • Description: .ci/scripts/functional-test.sh "fleet" "agent_endpoint_integration && ~@nightly" "8.0.0-SNAPSHOT" "8.0.0-SNAPSHOT"
Archive the artifacts
  • Took 0 min 1 sec . View more details on here
  • Description: [2021-02-01T09:50:55.605Z] Archiving artifacts script returned exit code 2
Archive the artifacts
  • Took 0 min 0 sec . View more details on here
  • Description: [2021-02-01T09:50:56.671Z] 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-02-01T09:49:57.308Z] fleet_elasticsearch_1 is up-to-date
[2021-02-01T09:49:57.308Z] Creating fleet_centos-systemd_elastic-agent_1 ... 
[2021-02-01T09:49:57.308Z] fleet_kibana_1 is up-to-date
[2021-02-01T09:49:57.876Z] 
Creating fleet_centos-systemd_elastic-agent_1 ... done
time="2021-02-01T09:49:57Z" level=debug msg="Docker compose executed." cmd="[up -d]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-669/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-669/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz823218114 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-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-669/src/github.com/elastic/e2e-testing/e2e/_suites/fleet/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2021-02-01T09:49:58.811Z] elastic-agent-8.0.0-SNAPSHOT-linux-x86_64/data/elastic-agent-b89e5d/downloads/metricbeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz.sha512
[2021-02-01T09:49:58.811Z] elastic-agent-8.0.0-SNAPSHOT-linux-x86_64/elastic-agent.reference.yml
[2021-02-01T09:49:58.811Z] elastic-agent-8.0.0-SNAPSHOT-linux-x86_64/data/elastic-agent-b89e5d/downloads/metricbeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz
[2021-02-01T09:49:59.070Z] elastic-agent-8.0.0-SNAPSHOT-linux-x86_64/README.md
[2021-02-01T09:49:59.070Z] elastic-agent-8.0.0-SNAPSHOT-linux-x86_64/data/elastic-agent-b89e5d/elastic-agent
[2021-02-01T09:49:59.328Z] elastic-agent-8.0.0-SNAPSHOT-linux-x86_64/data/elastic-agent-b89e5d/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz.asc
[2021-02-01T09:49:59.328Z] elastic-agent-8.0.0-SNAPSHOT-linux-x86_64/data/elastic-agent-b89e5d/downloads/endpoint-security-8.0.0-SNAPSHOT-linux-x86_64.tar.gz.sha512
[2021-02-01T09:49:59.328Z] elastic-agent-8.0.0-SNAPSHOT-linux-x86_64/data/elastic-agent-b89e5d/downloads/apm-server-8.0.0-SNAPSHOT-linux-x86_64.tar.gz.sha512
[2021-02-01T09:49:59.328Z] elastic-agent-8.0.0-SNAPSHOT-linux-x86_64/elastic-agent.yml
[2021-02-01T09:49:59.328Z] elastic-agent-8.0.0-SNAPSHOT-linux-x86_64/.elastic-agent.active.commit
[2021-02-01T09:49:59.328Z] elastic-agent-8.0.0-SNAPSHOT-linux-x86_64/LICENSE.txt
[2021-02-01T09:49:59.328Z] elastic-agent-8.0.0-SNAPSHOT-linux-x86_64/data/elastic-agent-b89e5d/downloads/endpoint-security-8.0.0-SNAPSHOT-linux-x86_64.tar.gz.asc
[2021-02-01T09:49:59.328Z] elastic-agent-8.0.0-SNAPSHOT-linux-x86_64/data/elastic-agent-b89e5d/downloads/apm-server-8.0.0-SNAPSHOT-linux-x86_64.tar.gz.asc
[2021-02-01T09:49:59.328Z] elastic-agent-8.0.0-SNAPSHOT-linux-x86_64/data/elastic-agent-b89e5d/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz.sha512
[2021-02-01T09:49:59.328Z] elastic-agent-8.0.0-SNAPSHOT-linux-x86_64/data/elastic-agent-b89e5d/downloads/apm-server-8.0.0-SNAPSHOT-linux-x86_64.tar.gz
[2021-02-01T09:49:59.586Z] elastic-agent-8.0.0-SNAPSHOT-linux-x86_64/data/elastic-agent-b89e5d/downloads/metricbeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz.asc
[2021-02-01T09:49:59.586Z] elastic-agent-8.0.0-SNAPSHOT-linux-x86_64/.build_hash.txt
[2021-02-01T09:49:59.586Z] elastic-agent-8.0.0-SNAPSHOT-linux-x86_64/data/elastic-agent-b89e5d/downloads/endpoint-security-8.0.0-SNAPSHOT-linux-x86_64.tar.gz
[2021-02-01T09:49:59.586Z] elastic-agent-8.0.0-SNAPSHOT-linux-x86_64/data/elastic-agent-b89e5d/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz
[2021-02-01T09:49:59.844Z] elastic-agent-8.0.0-SNAPSHOT-linux-x86_64/NOTICE.txt
[2021-02-01T09:50:00.103Z] elastic-agent-8.0.0-SNAPSHOT-linux-x86_64/elastic-agent
[2021-02-01T09:50:00.103Z] time="2021-02-01T09:49:59Z" level=debug msg="Docker compose executed." cmd="[exec -T centos-systemd tar -xvf /elastic-agent-8.0.0-SNAPSHOT-x86_64.tar.gz]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-669/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-669/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz823218114 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-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-669/src/github.com/elastic/e2e-testing/e2e/_suites/fleet/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2021-02-01T09:50:01.044Z] time="2021-02-01T09:50:00Z" level=debug msg="Docker compose executed." cmd="[exec -T centos-systemd mv /elastic-agent-8.0.0-SNAPSHOT-linux-x86_64 /elastic-agent]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-669/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-669/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz823218114 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-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-669/src/github.com/elastic/e2e-testing/e2e/_suites/fleet/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2021-02-01T09:50:01.611Z] The Elastic Agent is currently in BETA and should not be used in production
[2021-02-01T09:50:01.611Z] 
[2021-02-01T09:50:03.514Z] Successfully enrolled the Elastic Agent.
[2021-02-01T09:50:03.514Z] Installation was successful and Elastic Agent is running.
[2021-02-01T09:50:03.514Z] time="2021-02-01T09:50:03Z" level=debug msg="Docker compose executed." cmd="[exec -T centos-systemd /elastic-agent/elastic-agent install --force --insecure --enrollment-token bUQzX1hIY0I2MmUwR05hZHEzUlA6TTh4UjdOMXJUWHE4X2lVam8xTHNyZw== --kibana-url http://kibana:5601]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-669/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-669/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz823218114 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-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-669/src/github.com/elastic/e2e-testing/e2e/_suites/fleet/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2021-02-01T09:50:03.772Z] time="2021-02-01T09:50:03Z" level=info msg="Hostname retrieved from the Docker client" containerName=fleet_centos-systemd_elastic-agent_1 hostname=074ffb54c5a8
[2021-02-01T09:50:03.772Z] time="2021-02-01T09:50:03Z" level=debug msg="Agent listed in Fleet with online status" agentID=db00bc80-6472-11eb-af19-c5912e37eb35 hostname=074ffb54c5a8
[2021-02-01T09:50:03.772Z] time="2021-02-01T09:50:03Z" level=warning msg="The Agent is not in the online status yet" agentID=db00bc80-6472-11eb-af19-c5912e37eb35 elapsedTime=28.757527ms hostname=074ffb54c5a8 isAgentInStatus=false retry=1 status=online
[2021-02-01T09:50:04.346Z] time="2021-02-01T09:50:04Z" level=debug msg="Agent listed in Fleet with online status" agentID=db00bc80-6472-11eb-af19-c5912e37eb35 hostname=074ffb54c5a8
[2021-02-01T09:50:04.346Z] time="2021-02-01T09:50:04Z" level=warning msg="The Agent is not in the online status yet" agentID=db00bc80-6472-11eb-af19-c5912e37eb35 elapsedTime=703.091836ms hostname=074ffb54c5a8 isAgentInStatus=false retry=2 status=online
[2021-02-01T09:50:05.280Z] time="2021-02-01T09:50:05Z" level=debug msg="Agent listed in Fleet with online status" agentID=db00bc80-6472-11eb-af19-c5912e37eb35 hostname=074ffb54c5a8
[2021-02-01T09:50:05.281Z] time="2021-02-01T09:50:05Z" level=warning msg="The Agent is not in the online status yet" agentID=db00bc80-6472-11eb-af19-c5912e37eb35 elapsedTime=1.503976025s hostname=074ffb54c5a8 isAgentInStatus=false retry=3 status=online
[2021-02-01T09:50:07.184Z] time="2021-02-01T09:50:06Z" level=debug msg="Agent listed in Fleet with online status" agentID=db00bc80-6472-11eb-af19-c5912e37eb35 hostname=074ffb54c5a8
[2021-02-01T09:50:07.184Z] time="2021-02-01T09:50:06Z" level=warning msg="The Agent is not in the online status yet" agentID=db00bc80-6472-11eb-af19-c5912e37eb35 elapsedTime=3.228575351s hostname=074ffb54c5a8 isAgentInStatus=false retry=4 status=online
[2021-02-01T09:50:09.717Z] time="2021-02-01T09:50:09Z" level=debug msg="Agent listed in Fleet with online status" agentID=db00bc80-6472-11eb-af19-c5912e37eb35 hostname=074ffb54c5a8
[2021-02-01T09:50:09.717Z] time="2021-02-01T09:50:09Z" level=warning msg="The Agent is not in the online status yet" agentID=db00bc80-6472-11eb-af19-c5912e37eb35 elapsedTime=6.135841817s hostname=074ffb54c5a8 isAgentInStatus=false retry=5 status=online
[2021-02-01T09:50:17.835Z] time="2021-02-01T09:50:16Z" level=debug msg="Agent listed in Fleet with online status" agentID=db00bc80-6472-11eb-af19-c5912e37eb35 hostname=074ffb54c5a8
[2021-02-01T09:50:17.835Z] time="2021-02-01T09:50:16Z" level=warning msg="The Agent is not in the online status yet" agentID=db00bc80-6472-11eb-af19-c5912e37eb35 elapsedTime=12.816082146s hostname=074ffb54c5a8 isAgentInStatus=false retry=6 status=online
[2021-02-01T09:50:21.120Z] time="2021-02-01T09:50:20Z" level=debug msg="Agent listed in Fleet with online status" agentID=db00bc80-6472-11eb-af19-c5912e37eb35 hostname=074ffb54c5a8
[2021-02-01T09:50:21.121Z] time="2021-02-01T09:50:20Z" level=warning msg="The Agent is not in the online status yet" agentID=db00bc80-6472-11eb-af19-c5912e37eb35 elapsedTime=17.101313577s hostname=074ffb54c5a8 isAgentInStatus=false retry=7 status=online
[2021-02-01T09:50:26.393Z] time="2021-02-01T09:50:26Z" level=debug msg="Agent listed in Fleet with online status" agentID=db00bc80-6472-11eb-af19-c5912e37eb35 hostname=074ffb54c5a8
[2021-02-01T09:50:26.393Z] time="2021-02-01T09:50:26Z" level=info msg="The Agent is in the desired status" elapsedTime=22.637969948s hostname=074ffb54c5a8 isAgentInStatus=true retries=8 status=online
[2021-02-01T09:50:26.393Z] time="2021-02-01T09:50:26Z" level=debug msg="Integration in latest version found" name=endpoint title="Endpoint Security" version=0.17.0
[2021-02-01T09:50:29.683Z] time="2021-02-01T09:50:29Z" level=info msg="Integration added to the configuration" integration=endpoint integrationConfigurationID=7d80b035-9e2c-4bb4-9f6b-a1cf2496a9ad policyID=598b7030-646f-11eb-af19-c5912e37eb35 version=0.17.0
[2021-02-01T09:50:29.683Z] time="2021-02-01T09:50:29Z" level=debug msg="Package policy found in the configuration" package="{7d80b035-9e2c-4bb4-9f6b-a1cf2496a9ad endpoint Endpoint Security 0.17.0 0xc000417610}" policyID=598b7030-646f-11eb-af19-c5912e37eb35
[2021-02-01T09:50:32.975Z] time="2021-02-01T09:50:32Z" level=info msg="Integration deleted from the configuration" integration=endpoint packageConfigId=7d80b035-9e2c-4bb4-9f6b-a1cf2496a9ad policyID=598b7030-646f-11eb-af19-c5912e37eb35 version=0.17.0
[2021-02-01T09:50:32.976Z] time="2021-02-01T09:50:32Z" level=debug msg="Agent listed in Fleet with online status" agentID=db00bc80-6472-11eb-af19-c5912e37eb35 hostname=074ffb54c5a8
[2021-02-01T09:50:32.976Z] time="2021-02-01T09:50:32Z" level=info msg="The Agent is in the desired status" elapsedTime=81.259197ms hostname=074ffb54c5a8 isAgentInStatus=true retries=1 status=online
[2021-02-01T09:50:32.976Z] time="2021-02-01T09:50:32Z" level=info msg="The Agent is not listed in the Administration view in the Security App" elapsedTime=74.135029ms hostname=074ffb54c5a8 retries=1
[2021-02-01T09:50:32.976Z] time="2021-02-01T09:50:32Z" level=info msg="Process desired state checked" container=fleet_centos-systemd_elastic-agent_1 desiredState=stopped mustBePresent=false process=elastic-endpoint
[2021-02-01T09:50:39.543Z] Elastic Agent has been uninstalled.
[2021-02-01T09:50:39.543Z] time="2021-02-01T09:50:38Z" 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-669/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-669/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz823218114 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-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-669/src/github.com/elastic/e2e-testing/e2e/_suites/fleet/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2021-02-01T09:50:39.543Z] time="2021-02-01T09:50:38Z" level=debug msg="Un-enrolling agent in Fleet" agentID=db00bc80-6472-11eb-af19-c5912e37eb35 hostname=074ffb54c5a8
[2021-02-01T09:50:39.802Z] time="2021-02-01T09:50:39Z" level=debug msg="Fleet agent was unenrolled" agentID=db00bc80-6472-11eb-af19-c5912e37eb35
[2021-02-01T09:50:40.369Z] Stopping fleet_centos-systemd_elastic-agent_1 ... 
[2021-02-01T09:50:52.568Z] 
Stopping fleet_centos-systemd_elastic-agent_1 ... done
Removing fleet_centos-systemd_elastic-agent_1 ... 
[2021-02-01T09:50:52.568Z] 
Removing fleet_centos-systemd_elastic-agent_1 ... done
Going to remove fleet_centos-systemd_elastic-agent_1
[2021-02-01T09:50:52.569Z] time="2021-02-01T09:50:50Z" level=debug msg="Docker compose executed." cmd="[rm -fvs centos-systemd]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-669/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-669/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz823218114 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-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-669/src/github.com/elastic/e2e-testing/e2e/_suites/fleet/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2021-02-01T09:50:52.569Z] time="2021-02-01T09:50:50Z" level=debug msg="Service removed from compose" profile=fleet service=centos-systemd
[2021-02-01T09:50:52.569Z] time="2021-02-01T09:50:52Z" level=debug msg="The token was deleted" tokenID=d6e4f2b0-6472-11eb-af19-c5912e37eb35
[2021-02-01T09:50:52.827Z] time="2021-02-01T09:50:52Z" level=info msg="Integration deleted from the configuration" integration=endpoint packageConfigId=7d80b035-9e2c-4bb4-9f6b-a1cf2496a9ad policyID=598b7030-646f-11eb-af19-c5912e37eb35 version=0.17.0
[2021-02-01T09:50:52.827Z] time="2021-02-01T09:50:52Z" level=debug msg="Destroying Fleet runtime dependencies"
[2021-02-01T09:50:53.393Z] Stopping fleet_kibana_1           ... 
[2021-02-01T09:50:53.393Z] Stopping fleet_elasticsearch_1    ... 
[2021-02-01T09:50:53.393Z] Stopping fleet_package-registry_1 ... 
[2021-02-01T09:50:54.476Z] 
Stopping fleet_kibana_1           ... done

Stopping fleet_package-registry_1 ... done

Stopping fleet_elasticsearch_1    ... done
Removing fleet_kibana_1           ... 
[2021-02-01T09:50:54.477Z] Removing fleet_elasticsearch_1    ... 
[2021-02-01T09:50:54.477Z] Removing fleet_package-registry_1 ... 
[2021-02-01T09:50:54.477Z] 
Removing fleet_package-registry_1 ... done

Removing fleet_kibana_1           ... done

Removing fleet_elasticsearch_1    ... done
Removing network fleet_default
[2021-02-01T09:50:54.735Z] time="2021-02-01T09:50:54Z" level=debug msg="Docker compose executed." cmd="[down --remove-orphans]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-669/.op/compose/profiles/fleet/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz823218114 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-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-669/src/github.com/elastic/e2e-testing/e2e/_suites/fleet/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2021-02-01T09:50:54.735Z] time="2021-02-01T09:50:54Z" level=debug msg="Elastic Agent binary was removed." installer=centos-systemd path=/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm559095855
[2021-02-01T09:50:54.735Z] time="2021-02-01T09:50:54Z" level=debug msg="Elastic Agent binary was removed." installer=centos-tar path=/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz823218114
[2021-02-01T09:50:54.735Z] time="2021-02-01T09:50:54Z" level=debug msg="Elastic Agent binary was removed." installer=debian-systemd path=/tmp/elastic-agent-8.0.0-SNAPSHOT-amd64.deb778994233
[2021-02-01T09:50:54.735Z] Makefile:61: recipe for target 'functional-test' failed
[2021-02-01T09:50:54.735Z] make: *** [functional-test] Error 1
[2021-02-01T09:50:54.794Z] [INFO] Stopping Filebeat Docker container
[2021-02-01T09:50:55.075Z] + docker exec -t c726158718b7bfdf3ce5f94adc86ff06b75a507c4edd369c572232b9d551385c chmod -R ugo+rw /output
[2021-02-01T09:50:55.333Z] + docker stop --time 30 c726158718b7bfdf3ce5f94adc86ff06b75a507c4edd369c572232b9d551385c
[2021-02-01T09:50:55.591Z] c726158718b7bfdf3ce5f94adc86ff06b75a507c4edd369c572232b9d551385c
[2021-02-01T09:50:55.605Z] Archiving artifacts
[2021-02-01T09:50:56.242Z] Recording test results
[2021-02-01T09:50:56.651Z] [Checks API] No suitable checks publisher found.
[2021-02-01T09:50:56.671Z] Archiving artifacts
[2021-02-01T09:50:56.724Z] Failed in branch ubuntu-18.04_fleet_agent_endpoint_integration
[2021-02-01T09:50:57.753Z] Stage "Release" skipped due to earlier failure(s)
[2021-02-01T09:50:58.086Z] Running on worker-395930 in /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-669
[2021-02-01T09:50:58.158Z] [INFO] getVaultSecret: Getting secrets
[2021-02-01T09:50:58.230Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-02-01T09:51:00.527Z] + chmod 755 generate-build-data.sh
[2021-02-01T09:51:00.527Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-669/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-669/runs/11 FAILURE 2002281
[2021-02-01T09:51:00.527Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-669/runs/11/steps/?limit=10000 -o steps-info.json
[2021-02-01T09:51:04.639Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-669/runs/11/tests/?status=FAILED -o tests-errors.json
[2021-02-01T09:51:05.341Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-669/runs/11/log/ -o pipeline-log.txt

.ci/Jenkinsfile Outdated
Comment on lines 323 to 325
tags += " && ${NIGHTLY_TAG}"
} else {
tags += " && ~${NIGHTLY_TAG}"
Copy link
Contributor Author

@mdelapenya mdelapenya Jan 27, 2021

Choose a reason for hiding this comment

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

This is incorrect as it is saying:

Use the existing tags and exclude the nightly tag if it is disabled

and

Use the existing tags and add the nightly tag if it is enabled

The second is wrong as it will get all scenarios containing the tags AND nightly, which means it will only run the nightly scenario. It should be a (($tags) OR nightly)

I'm designing it in another manner

@mdelapenya mdelapenya marked this pull request as ready for review January 27, 2021 12:24
@mdelapenya
Copy link
Contributor Author

jenkins run the tests please

@mdelapenya mdelapenya mentioned this pull request Jan 27, 2021
10 tasks
@mdelapenya
Copy link
Contributor Author

jenkins run the tests please

@cachedout cachedout self-requested a review February 1, 2021 08:06
@mdelapenya
Copy link
Contributor Author

jenkins run the tests please

@mdelapenya
Copy link
Contributor Author

Same 3 errors as in master. Merging

@mdelapenya mdelapenya merged commit 0d4f61a into elastic:master Feb 1, 2021
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Feb 1, 2021
* docs: document SKIP_SCENARIOS variable

* chore: support running nightly scenarios only from the nighltly builds

* fix: wrong variable assignment
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Feb 1, 2021
* docs: document SKIP_SCENARIOS variable

* chore: support running nightly scenarios only from the nighltly builds

* fix: wrong variable assignment
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Feb 1, 2021
* docs: document SKIP_SCENARIOS variable

* chore: support running nightly scenarios only from the nighltly builds

* fix: wrong variable assignment
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Feb 1, 2021
* docs: document SKIP_SCENARIOS variable

* chore: support running nightly scenarios only from the nighltly builds

* fix: wrong variable assignment
@mdelapenya mdelapenya deleted the 652-nightly-tags branch February 1, 2021 11:05
mdelapenya added a commit that referenced this pull request Feb 1, 2021
* docs: document SKIP_SCENARIOS variable

* chore: support running nightly scenarios only from the nighltly builds

* fix: wrong variable assignment
mdelapenya added a commit that referenced this pull request Feb 1, 2021
* docs: document SKIP_SCENARIOS variable

* chore: support running nightly scenarios only from the nighltly builds

* fix: wrong variable assignment
mdelapenya added a commit that referenced this pull request Feb 1, 2021
* docs: document SKIP_SCENARIOS variable

* chore: support running nightly scenarios only from the nighltly builds

* fix: wrong variable assignment
mdelapenya added a commit that referenced this pull request Feb 1, 2021
* docs: document SKIP_SCENARIOS variable

* chore: support running nightly scenarios only from the nighltly builds

* fix: wrong variable assignment
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.

4 participants