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

Uniquify the stand-alone step for checking agent status (bp #993)#996

Merged
mdelapenya merged 1 commit into7.12.xfrom
mergify/bp/7.12.x/pr-993
Apr 7, 2021
Merged

Uniquify the stand-alone step for checking agent status (bp #993)#996
mdelapenya merged 1 commit into7.12.xfrom
mergify/bp/7.12.x/pr-993

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented Apr 6, 2021

This is an automatic backport of pull request #993 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.io/

There were 2 steps identical in both the stand-alone and fleet test suites.
Running the stand-alone test suite was picking up the step from the fleet test
suite and trying to reference the FleetTestSuite structure which did not hold
any of the agent information (like the hostname) for the stand alone tests.

This fixes it so that the standalone test step is being referenced in the
correct test suite.

Signed-off-by: Adam Stokes <51892+adam-stokes@users.noreply.github.com>
(cherry picked from commit d9e3b51)
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Tests Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #996 opened

  • Start Time: 2021-04-06T15:56:26.865+0000

  • Duration: 28 min 5 sec

  • Commit: 0089e22

Test stats 🧪

Test Results
Failed 1
Passed 137
Skipped 0
Total 138

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_stand_alone_agent / Deploying a default stand-alone agent with fleet server mode – Stand-alone Agent
    Expand to view the error details

     Step the stand-alone agent is listed in Fleet as "online": The agent is not present in Fleet, but it should 
    

  • no stacktrace

Steps errors 1

Expand to view the steps failures

Run functional tests for fleet:stand_alone_agent && ~@nightly && ~ubi8
  • Took 17 min 59 sec . View more details on here
  • Description: .ci/scripts/functional-test.sh "fleet" "stand_alone_agent && ~@nightly && ~ubi8" "7.12-SNAPSHOT" "7.12-SNAPSHOT"

Log output

Expand to view the last 100 lines of log output

[2021-04-06T16:24:20.127Z] elastic-agent_1     | 2021-04-06T16:14:28.487Z	INFO	stateresolver/stateresolver.go:49	Converging state requires execution of 0 step(s)
[2021-04-06T16:24:20.127Z] elastic-agent_1     | 2021-04-06T16:14:28.487Z	INFO	stateresolver/stateresolver.go:66	Updating internal state
[2021-04-06T16:24:20.127Z] elastic-agent_1     | 2021-04-06T16:14:29.236Z	INFO	log/reporter.go:40	2021-04-06T16:14:29Z: type: 'STATE': sub_type: 'RUNNING' message: Application: filebeat--7.12.1-SNAPSHOT--36643631373035623733363936343635[3562febb-0da9-45d7-9b48-49148055bd23]: State changed to RUNNING: Running
[2021-04-06T16:24:20.127Z] elastic-agent_1     | 2021-04-06T16:14:29.630Z	INFO	log/reporter.go:40	2021-04-06T16:14:29Z: type: 'STATE': sub_type: 'RUNNING' message: Application: metricbeat--7.12.1-SNAPSHOT--36643631373035623733363936343635[3562febb-0da9-45d7-9b48-49148055bd23]: State changed to RUNNING: Running
[2021-04-06T16:24:20.127Z] elastic-agent_1     | 2021-04-06T16:14:38.481Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.127Z] elastic-agent_1     | 2021-04-06T16:14:48.482Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.127Z] elastic-agent_1     | 2021-04-06T16:14:58.482Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.127Z] elastic-agent_1     | 2021-04-06T16:15:08.483Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.127Z] elastic-agent_1     | 2021-04-06T16:15:18.483Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.127Z] elastic-agent_1     | 2021-04-06T16:15:28.483Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.127Z] elastic-agent_1     | 2021-04-06T16:15:38.484Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.127Z] elastic-agent_1     | 2021-04-06T16:15:48.484Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.128Z] elastic-agent_1     | 2021-04-06T16:15:58.484Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.128Z] elastic-agent_1     | 2021-04-06T16:16:08.485Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.128Z] elastic-agent_1     | 2021-04-06T16:16:18.485Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.128Z] elastic-agent_1     | 2021-04-06T16:16:28.486Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.128Z] elastic-agent_1     | 2021-04-06T16:16:38.486Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.128Z] elastic-agent_1     | 2021-04-06T16:16:48.486Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.128Z] elastic-agent_1     | 2021-04-06T16:16:58.487Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.128Z] elastic-agent_1     | 2021-04-06T16:17:08.487Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.128Z] elastic-agent_1     | 2021-04-06T16:17:18.487Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.128Z] elastic-agent_1     | 2021-04-06T16:17:28.488Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.128Z] elastic-agent_1     | 2021-04-06T16:17:38.488Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.128Z] elastic-agent_1     | 2021-04-06T16:17:48.489Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.128Z] elastic-agent_1     | 2021-04-06T16:17:58.489Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.128Z] elastic-agent_1     | 2021-04-06T16:18:08.489Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.128Z] elastic-agent_1     | 2021-04-06T16:18:18.490Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.128Z] elastic-agent_1     | 2021-04-06T16:18:28.490Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.129Z] elastic-agent_1     | 2021-04-06T16:18:38.490Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.129Z] elastic-agent_1     | 2021-04-06T16:18:48.491Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.129Z] elastic-agent_1     | 2021-04-06T16:18:58.491Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.129Z] elastic-agent_1     | 2021-04-06T16:19:08.492Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.129Z] elastic-agent_1     | 2021-04-06T16:19:18.492Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.129Z] elastic-agent_1     | 2021-04-06T16:19:28.492Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.129Z] elastic-agent_1     | 2021-04-06T16:19:38.493Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.129Z] elastic-agent_1     | 2021-04-06T16:19:48.493Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.129Z] elastic-agent_1     | 2021-04-06T16:19:58.493Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.129Z] elastic-agent_1     | 2021-04-06T16:20:08.494Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.129Z] elastic-agent_1     | 2021-04-06T16:20:18.494Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.129Z] elastic-agent_1     | 2021-04-06T16:20:28.495Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.129Z] elastic-agent_1     | 2021-04-06T16:20:38.495Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.129Z] elastic-agent_1     | 2021-04-06T16:20:48.495Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.129Z] elastic-agent_1     | 2021-04-06T16:20:58.496Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.129Z] elastic-agent_1     | 2021-04-06T16:21:08.496Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.130Z] elastic-agent_1     | 2021-04-06T16:21:18.497Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.130Z] elastic-agent_1     | 2021-04-06T16:21:28.497Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.130Z] elastic-agent_1     | 2021-04-06T16:21:38.497Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.130Z] elastic-agent_1     | 2021-04-06T16:21:48.498Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.130Z] elastic-agent_1     | 2021-04-06T16:21:58.498Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.130Z] elastic-agent_1     | 2021-04-06T16:22:08.499Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.130Z] elastic-agent_1     | 2021-04-06T16:22:18.499Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.130Z] elastic-agent_1     | 2021-04-06T16:22:28.499Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.130Z] elastic-agent_1     | 2021-04-06T16:22:38.500Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.130Z] elastic-agent_1     | 2021-04-06T16:22:48.500Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.130Z] elastic-agent_1     | 2021-04-06T16:22:58.501Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.130Z] elastic-agent_1     | 2021-04-06T16:23:08.501Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.130Z] elastic-agent_1     | 2021-04-06T16:23:18.502Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.130Z] elastic-agent_1     | 2021-04-06T16:23:28.502Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.131Z] elastic-agent_1     | 2021-04-06T16:23:38.502Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.131Z] elastic-agent_1     | 2021-04-06T16:23:48.503Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.131Z] elastic-agent_1     | 2021-04-06T16:23:58.503Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.131Z] elastic-agent_1     | 2021-04-06T16:24:08.503Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.131Z] elastic-agent_1     | 2021-04-06T16:24:18.504Z	INFO	application/periodic.go:98	No configuration change
[2021-04-06T16:24:20.131Z] time="2021-04-06T16:24:19Z" level=debug msg="Docker compose executed." cmd="[logs elastic-agent]" composeFilePaths="[/var/lib/jenkins/workspace/PR-996-1-dfb68345-4c19-4c21-a8f9-c2a2fc670e06/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/PR-996-1-dfb68345-4c19-4c21-a8f9-c2a2fc670e06/.op/compose/services/elastic-agent/docker-compose.yml]" env="map[elasticAgentConfigFile:/tmp/elastic-agent.docker.yml783260083 elasticAgentContainerName:fleet_elastic-agent_1 elasticAgentDockerImageSuffix: elasticAgentDockerNamespace:beats elasticAgentPlatform:linux/amd64 elasticAgentTag:7.12.1-SNAPSHOT fleetServerMode:1 kibanaConfigPath:/var/lib/jenkins/workspace/PR-996-1-dfb68345-4c19-4c21-a8f9-c2a2fc670e06/src/github.com/elastic/e2e-testing/e2e/_suites/fleet/configurations/kibana.config.yml stackVersion:7.12.1-SNAPSHOT]" profile=fleet
[2021-04-06T16:24:20.392Z] Stopping fleet_elastic-agent_1 ... 
[2021-04-06T16:24:21.591Z] 
Stopping fleet_elastic-agent_1 ... done
Removing fleet_elastic-agent_1 ... 
[2021-04-06T16:24:21.591Z] 
Removing fleet_elastic-agent_1 ... done
Going to remove fleet_elastic-agent_1
[2021-04-06T16:24:21.591Z] time="2021-04-06T16:24:21Z" level=debug msg="Docker compose executed." cmd="[rm -fvs elastic-agent]" composeFilePaths="[/var/lib/jenkins/workspace/PR-996-1-dfb68345-4c19-4c21-a8f9-c2a2fc670e06/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/PR-996-1-dfb68345-4c19-4c21-a8f9-c2a2fc670e06/.op/compose/services/elastic-agent/docker-compose.yml]" env="map[elasticAgentConfigFile:/tmp/elastic-agent.docker.yml783260083 elasticAgentContainerName:fleet_elastic-agent_1 elasticAgentDockerImageSuffix: elasticAgentDockerNamespace:beats elasticAgentPlatform:linux/amd64 elasticAgentTag:7.12.1-SNAPSHOT fleetServerMode:1 kibanaConfigPath:/var/lib/jenkins/workspace/PR-996-1-dfb68345-4c19-4c21-a8f9-c2a2fc670e06/src/github.com/elastic/e2e-testing/e2e/_suites/fleet/configurations/kibana.config.yml stackVersion:7.12.1-SNAPSHOT]" profile=fleet
[2021-04-06T16:24:21.591Z] time="2021-04-06T16:24:21Z" level=debug msg="Service removed from compose" profile=fleet service=elastic-agent
[2021-04-06T16:24:21.591Z] time="2021-04-06T16:24:21Z" level=debug msg="Destroying Fleet runtime dependencies"
[2021-04-06T16:24:22.532Z] Stopping fleet_kibana_1           ... 
[2021-04-06T16:24:22.532Z] Stopping fleet_package-registry_1 ... 
[2021-04-06T16:24:22.532Z] Stopping fleet_elasticsearch_1    ... 
[2021-04-06T16:24:23.890Z] 
Stopping fleet_kibana_1           ... done

Stopping fleet_package-registry_1 ... done

Stopping fleet_elasticsearch_1    ... done
Removing fleet_kibana_1           ... 
[2021-04-06T16:24:23.890Z] Removing fleet_package-registry_1 ... 
[2021-04-06T16:24:23.890Z] Removing fleet_elasticsearch_1    ... 
[2021-04-06T16:24:23.890Z] 
Removing fleet_kibana_1           ... done

Removing fleet_package-registry_1 ... done

Removing fleet_elasticsearch_1    ... done
Removing network fleet_default
[2021-04-06T16:24:24.150Z] {"level":"debug","time":"2021-04-06T16:24:24Z","message":"gathering metrics"}
[2021-04-06T16:24:24.150Z] time="2021-04-06T16:24:24Z" level=debug msg="Docker compose executed." cmd="[down --remove-orphans]" composeFilePaths="[/var/lib/jenkins/workspace/PR-996-1-dfb68345-4c19-4c21-a8f9-c2a2fc670e06/.op/compose/profiles/fleet/docker-compose.yml]" env="map[elasticAgentConfigFile:/tmp/elastic-agent.docker.yml783260083 elasticAgentContainerName:fleet_elastic-agent_1 elasticAgentDockerImageSuffix: elasticAgentDockerNamespace:beats elasticAgentPlatform:linux/amd64 elasticAgentTag:7.12.1-SNAPSHOT fleetServerMode:1 kibanaConfigPath:/var/lib/jenkins/workspace/PR-996-1-dfb68345-4c19-4c21-a8f9-c2a2fc670e06/src/github.com/elastic/e2e-testing/e2e/_suites/fleet/configurations/kibana.config.yml stackVersion:7.12.1-SNAPSHOT]" profile=fleet
[2021-04-06T16:24:24.150Z] Makefile:73: recipe for target 'functional-test' failed
[2021-04-06T16:24:24.150Z] make: *** [functional-test] Error 1
[2021-04-06T16:24:24.469Z] [INFO] Stopping Filebeat Docker container
[2021-04-06T16:24:24.773Z] + docker exec -t 0ba333b3411cb96a7295de098424cde270a2b58ccbfe488ffc4443d52ded97f2 chmod -R ugo+rw /output
[2021-04-06T16:24:25.033Z] + docker stop --time 30 0ba333b3411cb96a7295de098424cde270a2b58ccbfe488ffc4443d52ded97f2
[2021-04-06T16:24:25.604Z] 0ba333b3411cb96a7295de098424cde270a2b58ccbfe488ffc4443d52ded97f2
[2021-04-06T16:24:25.641Z] Archiving artifacts
[2021-04-06T16:24:26.409Z] Recording test results
[2021-04-06T16:24:26.740Z] [Checks API] No suitable checks publisher found.
[2021-04-06T16:24:26.774Z] Archiving artifacts
[2021-04-06T16:24:26.874Z] Running in /var/lib/jenkins/workspace/PR-996-1-dfb68345-4c19-4c21-a8f9-c2a2fc670e06/src/github.com/elastic/e2e-testing
[2021-04-06T16:24:27.215Z] + go clean -modcache
[2021-04-06T16:24:28.145Z] Failed in branch ubuntu-18.04_fleet_stand_alone_agent
[2021-04-06T16:24:30.081Z] Stage "Release" skipped due to earlier failure(s)
[2021-04-06T16:24:30.605Z] Running on Jenkins in /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-996
[2021-04-06T16:24:30.719Z] [INFO] getVaultSecret: Getting secrets
[2021-04-06T16:24:30.841Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-04-06T16:24:31.878Z] + chmod 755 generate-build-data.sh
[2021-04-06T16:24:31.878Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-996/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-996/runs/1 FAILURE 1684733
[2021-04-06T16:24:32.129Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-996/runs/1/steps/?limit=10000 -o steps-info.json
[2021-04-06T16:24:33.507Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-996/runs/1/tests/?status=FAILED -o tests-errors.json

🐛 Flaky test report

❕ There are test failures but not known flaky tests.

Expand to view the summary

Test stats 🧪

Test Results
Failed 1
Passed 137
Skipped 0
Total 138

Genuine test errors 1

💔 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_stand_alone_agent / Deploying a default stand-alone agent with fleet server mode – Stand-alone Agent

@mdelapenya mdelapenya merged commit 9818d67 into 7.12.x Apr 7, 2021
@mergify mergify bot deleted the mergify/bp/7.12.x/pr-993 branch April 7, 2021 05:41
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Apr 8, 2021
mdelapenya added a commit that referenced this pull request Apr 8, 2021
* Revert "Uniquify the stand-alone step for checking agent status (#993) (#996)"

This reverts commit 9818d67.

* Revert "Add a standalone test scenario for fleet server mode (#978) (#987)"

This reverts commit a42c0ce.
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.

3 participants