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

[CI] Failures in build-and-test / unittest-matrix don't cause the job to fail #17037

Closed
dmitryax opened this issue Dec 15, 2022 · 6 comments
Closed
Labels
bug Something isn't working exporter/loadbalancing priority:p0 Critical release:blocker The issue must be resolved before cutting the next release

Comments

@dmitryax
Copy link
Member

dmitryax commented Dec 15, 2022

Look at the failing TestLoadInvalidConfig_NoScrapers test in https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/3700493629/jobs/6269016994 :

=== RUN   TestLoadInvalidConfig_NoScrapers
    config_test.go:112: 
        	Error Trace:	/home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/config_test.go:112
        	Error:      	"receivers::hostmetrics: must specify at least one scraper when using hostmetrics receiver" does not contain "receiver \"hostmetrics\" has invalid configuration: must specify at least one scraper when using hostmetrics receiver"
        	Test:       	TestLoadInvalidConfig_NoScrapers
--- FAIL: TestLoadInvalidConfig_NoScrapers (0.00s)
@dmitryax dmitryax added bug Something isn't working needs triage New item requiring triage release:blocker The issue must be resolved before cutting the next release priority:p0 Critical and removed needs triage New item requiring triage labels Dec 15, 2022
@dmitryax dmitryax changed the title [CI] Failures in unittest-matrix don't cause the job to fail [CI] Failures in build-and-test / unittest-matrix don't cause the job to fail Dec 15, 2022
@github-actions
Copy link
Contributor

Pinging code owners for exporter/loadbalancing: @jpkrohling. See Adding Labels via Comments if you do not have permissions to add labels yourself.

@dmitryax
Copy link
Member Author

Looks like we released 0.67.0 with the following failing unit tests:

=== RUN   TestLoadInvalidConfig_NoScrapers
    config_test.go:112: 
        	Error Trace:	/home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/config_test.go:112
        	Error:      	"receivers::hostmetrics: must specify at least one scraper when using hostmetrics receiver" does not contain "receiver \"hostmetrics\" has invalid configuration: must specify at least one scraper when using hostmetrics receiver"
        	Test:       	TestLoadInvalidConfig_NoScrapers
--- FAIL: TestLoadInvalidConfig_NoScrapers (0.00s)
=== RUN   TestConsumeLogsUnexpectedExporterType
    log_exporter_test.go:198: 
        	Error Trace:	/home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/exporter/loadbalancingexporter/log_exporter_test.go:198
        	Error:      	Error message not equal:
        	            	expected: "unable to export logs, unexpected exporter type: expected *exporter.Logs but got loadbalancingexporter.mockComponent"
        	            	actual  : "unable to export logs, unexpected exporter type: expected *component.LogsExporter but got loadbalancingexporter.mockComponent"
        	Test:       	TestConsumeLogsUnexpectedExporterType
--- FAIL: TestConsumeLogsUnexpectedExporterType (0.00s)
=== RUN   TestConsumeTracesUnexpectedExporterType
    trace_exporter_test.go:300: 
        	Error Trace:	/home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/exporter/loadbalancingexporter/trace_exporter_test.go:300
        	Error:      	Error message not equal:
        	            	expected: "expected *exporter.Traces but got loadbalancingexporter.mockComponent"
        	            	actual  : "expected *component.TracesExporter but got loadbalancingexporter.mockComponent"
        	Test:       	TestConsumeTracesUnexpectedExporterType
--- FAIL: TestConsumeTracesUnexpectedExporterType (0.00s)

See https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/3659745132/jobs/6186112298

Failing hostmetrics test is not a problem. But I need help from the routing processor owner to assess the impact

@dmitryax
Copy link
Member Author

My first guess is that the issue is caused by #16731

@MovieStoreGuy
Copy link
Contributor

Ooooh, I think I have an idea what has happened here.

Due to the fact that:

go test -race -timeout 300s --tags="" -v ./... 2>&1 | tee -a ./foresight-test-report.txt; \

go test pipes the result to tee, make doesn't capture the exit failure from go test but from tee

@dmitryax
Copy link
Member Author

dmitryax commented Dec 15, 2022

I think the tests broken in 0.67.0 are safe to not worry about 0.67.0 release

@dmitryax
Copy link
Member Author

dmitryax commented Dec 16, 2022

We are done. CI is back :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working exporter/loadbalancing priority:p0 Critical release:blocker The issue must be resolved before cutting the next release
Projects
None yet
Development

No branches or pull requests

2 participants