newrelic / nri-winservices

Windows services Integration for New Relic Infrastructure
Apache License 2.0
8 stars 8 forks source link

IntegrationTest - GithubActions #22

Closed paologallinaharbur closed 4 years ago

paologallinaharbur commented 4 years ago

Currently we have github actions in place, however integration tests are NOT included.

In the past we tried to include integration tests in the job, however they were behaving inconsistently:

[DEBUG] integration version: 0.0.0 commit: 8a9a2e535227768fdf5df6c16b28158d3f945484
[DEBUG] exporter msg=Initializing SWbemServices source=exporter.go:248
[INFO] exporter msg=Enabled collectors: service, cs source=exporter.go:326
[INFO] exporter msg=Starting windows_exporter (version=0.12.0-10-geff5f24-dirty, branch=HEAD, revision=eff5f2415398d89173a2203c47366e4882f3bc0e) source=exporter.go:351
[INFO] exporter msg=Build context (go=go1.14.4, user=fv-az44\runneradmin@fv-az44, date=20200603-16:55:13) source=exporter.go:352
[INFO] exporter msg=Starting server on 127.0.0.1:9183 source=exporter.go:355
[DEBUG] exporter msg=Generated WMI query SELECT * FROM Win32_ComputerSystem source=wmi.go:24
[DEBUG] exporter msg=Generated WMI query SELECT * FROM Win32_Service WHERE Name like '%' source=wmi.go:47
[DEBUG] exporter msg=collector cs succeeded after 0.314972s. source=exporter.go:209
DEBUG
len stdout: 0
DEBUG

    TestIntegration: integration_test.go:86: 
            Error Trace:    integration_test.go:86
            Error:          Received unexpected error:
                            error validating, error: EOF
            Test:           TestIntegration
            Messages:       The output of WinServices integration doesn't have expected format

Same job passed in a re-run