Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.6](backport #1773) Re-implement processes route to restore compatibility with the current cloud health checks #1778

Merged
merged 1 commit into from
Nov 23, 2022

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Nov 23, 2022

This is an automatic backport of pull request #1773 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.com

…t cloud health checks (#1773)

* Re-implement processes route to restore compatibility with the current cloud health checks
* Removed unused route
* Make linter happy
* Add changelog fragment
* Add nil check for InputSpec

(cherry picked from commit e3e953b)
@mergify mergify bot requested a review from a team as a code owner November 23, 2022 13:29
@mergify mergify bot added the backport label Nov 23, 2022
@mergify mergify bot requested review from blakerouse and michel-laterman and removed request for a team November 23, 2022 13:29
@elasticmachine
Copy link
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 preview

Expand to view the summary

Build stats

  • Start Time: 2022-11-23T13:30:13.832+0000

  • Duration: 15 min 49 sec

Test stats 🧪

Test Results
Failed 1
Passed 4516
Skipped 13
Total 4530

Test errors 1

Expand to view the tests failures

Test / Matrix - PLATFORM = 'aws && aarch64' / Test / TestManager_FakeShipper – github.com/elastic/elastic-agent/pkg/component/runtime
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestManager_FakeShipper
        manager_test.go:1962: component state changed: {State:starting Message:Starting: spawned pid '20968' Units:map[{UnitType:input UnitID:fake-input}:{State:starting Message:Starting: spawned pid '20968' Payload:map[] unitState:0 unitMessage:Starting unitPayload:map[] configStateIdx:0 err:<nil>} {UnitType:output UnitID:fake-default}:{State:starting Message:Starting: spawned pid '20968' Payload:map[] unitState:0 unitMessage:Starting unitPayload:map[] configStateIdx:0 err:<nil>}] VersionInfo:{Name: Version: Meta:map[]} expectedUnits:map[{UnitType:0 UnitID:fake-input}:{state:2 configStateIdx:1 config:0x40002d4000 err:<nil> logLevel:4} {UnitType:1 UnitID:fake-default}:{state:2 configStateIdx:1 config:0x40003395f0 err:<nil> logLevel:4}]}
        manager_test.go:1927: shipper state changed: {State:starting Message:Starting: spawned pid '20976' Units:map[{UnitType:input UnitID:fake-default}:{State:starting Message:Starting: spawned pid '20976' Payload:map[] unitState:0 unitMessage:Starting unitPayload:map[] configStateIdx:0 err:<nil>} {UnitType:output UnitID:fake-default}:{State:starting Message:Starting: spawned pid '20976' Payload:map[] unitState:0 unitMessage:Starting unitPayload:map[] configStateIdx:0 err:<nil>}] VersionInfo:{Name: Version: Meta:map[]} expectedUnits:map[{UnitType:0 UnitID:fake-default}:{state:2 configStateIdx:1 config:0x4000339560 err:<nil> logLevel:4} {UnitType:1 UnitID:fake-default}:{state:2 configStateIdx:1 config:0x40002d4750 err:<nil> logLevel:4}]}
        manager_test.go:1962: component state changed: {State:healthy Message:Healthy: communicating with pid '20968' Units:map[{UnitType:input UnitID:fake-input}:{State:starting Message:Starting: spawned pid '20968' Payload:map[] unitState:0 unitMessage: unitPayload:map[] configStateIdx:0 err:<nil>} {UnitType:output UnitID:fake-default}:{State:starting Message:Starting: spawned pid '20968' Payload:map[] unitState:0 unitMessage: unitPayload:map[] configStateIdx:0 err:<nil>}] VersionInfo:{Name:fake Version:1.0 Meta:map[input:fake]} expectedUnits:map[{UnitType:0 UnitID:fake-input}:{state:2 configStateIdx:1 config:0x40002d4000 err:<nil> logLevel:4} {UnitType:1 UnitID:fake-default}:{state:2 configStateIdx:1 config:0x40003395f0 err:<nil> logLevel:4}]}
    {"level":"trace","time":"2022-11-23T13:41:44Z","message":"registering set_state action for unit"}
    {"level":"trace","time":"2022-11-23T13:41:44Z","message":"registering send_event action for unit"}
    {"level":"trace","time":"2022-11-23T13:41:44Z","message":"registering kill action for unit"}
    {"level":"debug","state":"healthy","message":"Fake Healthy","time":"2022-11-23T13:41:44Z","message":"updating unit state"}
    {"level":"trace","time":"2022-11-23T13:41:44Z","message":"registering kill action for unit"}
    {"level":"debug","state":"configuring","message":"Configuring","time":"2022-11-23T13:41:44Z","message":"restarting shipper output"}
    {"level":"debug","state":"healthy","message":"GRPC fake event pipe connected \"unix:///tmp/at-4055575598/tmp/elastic-agent-fake-shipper-default-pipe.sock\"","time":"2022-11-23T13:41:44Z","message":"connected to output"}
        manager_test.go:1962: component state changed: {State:healthy Message:Healthy: communicating with pid '20968' Units:map[{UnitType:input UnitID:fake-input}:{State:healthy Message:Fake Healthy Payload:map[] unitState:2 unitMessage:Fake Healthy unitPayload:map[] configStateIdx:1 err:<nil>} {UnitType:output UnitID:fake-default}:{State:configuring Message:Configuring Payload:map[] unitState:1 unitMessage:Configuring unitPayload:map[] configStateIdx:1 err:<nil>}] VersionInfo:{Name:fake Version:1.0 Meta:map[input:fake]} expectedUnits:map[{UnitType:0 UnitID:fake-input}:{state:2 configStateIdx:1 config:0x40002d4000 err:<nil> logLevel:4} {UnitType:1 UnitID:fake-default}:{state:2 configStateIdx:1 config:0x40003395f0 err:<nil> logLevel:4}]}
        manager_test.go:1962: component state changed: {State:healthy Message:Healthy: communicating with pid '20968' Units:map[{UnitType:input UnitID:fake-input}:{State:healthy Message:Fake Healthy Payload:map[] unitState:2 unitMessage:Fake Healthy unitPayload:map[] configStateIdx:1 err:<nil>} {UnitType:output UnitID:fake-default}:{State:healthy Message:GRPC fake event pipe connected "unix:///tmp/at-4055575598/tmp/elastic-agent-fake-shipper-default-pipe.sock" Payload:map[] unitState:2 unitMessage:GRPC fake event pipe connected "unix:///tmp/at-4055575598/tmp/elastic-agent-fake-shipper-default-pipe.sock" unitPayload:map[] configStateIdx:1 err:<nil>}] VersionInfo:{Name:fake Version:1.0 Meta:map[input:fake]} expectedUnits:map[{UnitType:0 UnitID:fake-input}:{state:2 configStateIdx:1 config:0x40002d4000 err:<nil> logLevel:4} {UnitType:1 UnitID:fake-default}:{state:2 configStateIdx:1 config:0x40003395f0 err:<nil> logLevel:4}]}
        manager_test.go:1927: shipper state changed: {State:healthy Message:Healthy: communicating with pid '20976' Units:map[{UnitType:input UnitID:fake-default}:{State:starting Message:Starting: spawned pid '20976' Payload:map[] unitState:0 unitMessage: unitPayload:map[] configStateIdx:0 err:<nil>} {UnitType:output UnitID:fake-default}:{State:starting Message:Starting: spawned pid '20976' Payload:map[] unitState:0 unitMessage: unitPayload:map[] configStateIdx:0 err:<nil>}] VersionInfo:{Name:fake-shipper Version:1.0 Meta:map[shipper:fake-shipper]} expectedUnits:map[{UnitType:0 UnitID:fake-default}:{state:2 configStateIdx:1 config:0x4000339560 err:<nil> logLevel:4} {UnitType:1 UnitID:fake-default}:{state:2 configStateIdx:1 config:0x40002d4750 err:<nil> logLevel:4}]}
    {"level":"info","server":"unix:///tmp/at-4055575598/tmp/elastic-agent-fake-shipper-default-pipe.sock","time":"2022-11-23T13:41:44Z","message":"starting GRPC fake shipper server"}
    {"level":"trace","time":"2022-11-23T13:41:44Z","message":"registering kill action for unit"}
    {"level":"debug","state":"healthy","message":"Healthy","time":"2022-11-23T13:41:44Z","message":"updating unit state"}
    {"level":"trace","time":"2022-11-23T13:41:44Z","message":"registering record event action for unit"}
    {"level":"trace","time":"2022-11-23T13:41:44Z","message":"registering kill action for unit"}
    {"level":"debug","state":"healthy","message":"Healthy","time":"2022-11-23T13:41:44Z","message":"updating unit state"}
        manager_test.go:1927: shipper state changed: {State:healthy Message:Healthy: communicating with pid '20976' Units:map[{UnitType:input UnitID:fake-default}:{State:healthy Message:Healthy Payload:map[] unitState:2 unitMessage:Healthy unitPayload:map[] configStateIdx:1 err:<nil>} {UnitType:output UnitID:fake-default}:{State:starting Message:Starting Payload:map[] unitState:0 unitMessage:Starting unitPayload:map[] configStateIdx:1 err:<nil>}] VersionInfo:{Name:fake-shipper Version:1.0 Meta:map[shipper:fake-shipper]} expectedUnits:map[{UnitType:0 UnitID:fake-default}:{state:2 configStateIdx:1 config:0x4000339560 err:<nil> logLevel:4} {UnitType:1 UnitID:fake-default}:{state:2 configStateIdx:1 config:0x40002d4750 err:<nil> logLevel:4}]}
    {"level":"trace","time":"2022-11-23T13:41:44Z","message":"executing send_event action"}
    {"level":"trace","id":"fa658446-3a17-49f7-b25a-d713f1ab18c5","time":"2022-11-23T13:41:44Z","message":"registering record event action"}
    {"level":"trace","id":"fa658446-3a17-49f7-b25a-d713f1ab18c5","time":"2022-11-23T13:41:44Z","message":"subscribing for an event"}
    {"level":"trace","content":{"id":"fa658446-3a17-49f7-b25a-d713f1ab18c5"},"timestamp":"2022-11-23T13:41:44Z","time":"2022-11-23T13:41:45Z","message":"received event"}
    {"level":"trace","id":"fa658446-3a17-49f7-b25a-d713f1ab18c5","time":"2022-11-23T13:41:45Z","message":"subscription exists for event id"}
    {"level":"trace","content":{"id":"fa658446-3a17-49f7-b25a-d713f1ab18c5"},"timestamp":"2022-11-23T13:41:44Z","time":"2022-11-23T13:41:45Z","message":"record_event action got subscribed event"}
    {"level":"trace","id":"fa658446-3a17-49f7-b25a-d713f1ab18c5","time":"2022-11-23T13:41:45Z","message":"unsubscribing for an event"}
    {"level":"trace","log_timer":10000,"time":"2022-11-23T13:41:54Z","message":"trace log ticker"}
        manager_test.go:1927: shipper state changed: {State:healthy Message:Healthy: communicating with pid '20976' Units:map[{UnitType:input UnitID:fake-default}:{State:healthy Message:Healthy Payload:map[] unitState:2 unitMessage:Healthy unitPayload:map[] configStateIdx:1 err:<nil>} {UnitType:output UnitID:fake-default}:{State:healthy Message:Healthy Payload:map[] unitState:2 unitMessage:Healthy unitPayload:map[] configStateIdx:1 err:<nil>}] VersionInfo:{Name:fake-shipper Version:1.0 Meta:map[shipper:fake-shipper]} expectedUnits:map[{UnitType:0 UnitID:fake-default}:{state:2 configStateIdx:1 config:0x4000339560 err:<nil> logLevel:4} {UnitType:1 UnitID:fake-default}:{state:2 configStateIdx:1 config:0x40002d4750 err:<nil> logLevel:4}]}
        manager_test.go:2023: 
            	Error Trace:	manager_test.go:2023
            	Error:      	Received unexpected error:
            	            	context deadline exceeded
            	Test:       	TestManager_FakeShipper
    {"level":"trace","time":"2022-11-23T13:41:54Z","message":"executing send_event action"}
    {"level":"trace","id":"2925ef75-ac51-4c2b-aad4-8a135bb1fde9","time":"2022-11-23T13:41:54Z","message":"registering record event action"}
    {"level":"trace","id":"2925ef75-ac51-4c2b-aad4-8a135bb1fde9","time":"2022-11-23T13:41:54Z","message":"subscribing for an event"}
    --- FAIL: TestManager_FakeShipper (12.86s)
     
    

Steps errors 2

Expand to view the steps failures

Go unitTest
  • Took 2 min 0 sec . View more details here
  • Description: mage unitTest
Checks if running on a Unix-like node
  • Took 0 min 0 sec . View more details here
  • Description: script returned exit code 1

🐛 Flaky test report

❕ There are test failures but not known flaky tests.

Expand to view the summary

Genuine test errors 1

💔 There are test failures but not known flaky tests, most likely a genuine test failure.

  • Name: Test / Matrix - PLATFORM = 'aws && aarch64' / Test / TestManager_FakeShipper – github.com/elastic/elastic-agent/pkg/component/runtime

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /package : Generate the packages.

  • run integration tests : Run the Elastic Agent Integration tests.

  • run end-to-end tests : Generate the packages and run the E2E Tests.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@elasticmachine
Copy link
Contributor

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 98.305% (58/59) 👍
Files 71.066% (140/197) 👍
Classes 70.557% (266/377) 👍
Methods 54.828% (795/1450) 👎 -0.038
Lines 40.322% (8591/21306) 👎 -0.04
Conditionals 100.0% (0/0) 💚

@cmacknz cmacknz merged commit 4bfb1c3 into 8.6 Nov 23, 2022
@cmacknz cmacknz deleted the mergify/bp/8.6/pr-1773 branch November 23, 2022 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants