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

[receiver/mongodbatlas] Integration tests failing #32543

Closed
crobert-1 opened this issue Apr 18, 2024 · 4 comments
Closed

[receiver/mongodbatlas] Integration tests failing #32543

crobert-1 opened this issue Apr 18, 2024 · 4 comments

Comments

@crobert-1
Copy link
Member

Component(s)

receiver/mongodbatlas

Describe the issue you're reporting

Failing CI/CD link

Note that this test hasn't been running for some time, as explained in #32207, so this failure may not be the result of a recent change.

Failure output:

Running target 'mod-integration-test' in module 'receiver/mongodbatlasreceiver' as part of group 'receiver-1'
make --no-print-directory -C receiver/mongodbatlasreceiver mod-integration-test
running go integration test ./... in /home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/receiver/mongodbatlasreceiver
/home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/.tools/gotestsum --rerun-fails=1 --packages="./..." -- -race -timeout 360s -parallel 4 -tags=integration,""
∅  internal
∅  internal/model
✓  internal/metadata (1.248s)
✖  . (18.677s)

DONE 128 tests, 7 failures in 22.797s

✖  . (18ms)
✖  . (19ms)
✖  . (18ms)
✖  . (19ms)
✖  . (18ms)

=== Failed
=== FAIL: . TestAlertsReceiver/metric-threshold-closed.yaml (0.00s)
    alerts_integration_test.go:81: 
        	Error Trace:	/home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/receiver/mongodbatlasreceiver/alerts_integration_test.go:81
        	Error:      	Received unexpected error:
        	            	open testdata/alerts/sample-payloads/metric-threshold-closed.yaml: no such file or directory
        	Test:       	TestAlertsReceiver/metric-threshold-closed.yaml

=== FAIL: . TestAlertsReceiver/new-primary.yaml (0.00s)
    alerts_integration_test.go:81: 
        	Error Trace:	/home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/receiver/mongodbatlasreceiver/alerts_integration_test.go:81
        	Error:      	Received unexpected error:
        	            	open testdata/alerts/sample-payloads/new-primary.yaml: no such file or directory
        	Test:       	TestAlertsReceiver/new-primary.yaml

=== FAIL: . TestAlertsReceiver (0.00s)

=== FAIL: . TestAlertsReceiverTLS/metric-threshold-closed.yaml (0.00s)
    alerts_integration_test.go:141: 
        	Error Trace:	/home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/receiver/mongodbatlasreceiver/alerts_integration_test.go:141
        	Error:      	Received unexpected error:
        	            	unable to create a MongoDB Atlas Alerts Receiver instance: failed to load TLS config: failed to load TLS cert and key: failed to load TLS cert and key PEMs: x509: certificate contains duplicate extensions
        	Test:       	TestAlertsReceiverTLS/metric-threshold-closed.yaml

=== FAIL: . TestAlertsReceiverTLS/new-primary.yaml (0.00s)
make[2]: *** [../../Makefile.Common:142: mod-integration-test] Error 1
make[1]: *** [Makefile:165: receiver/mongodbatlasreceiver] Error 2
make: *** [Makefile:122: gointegration-test] Error 2
    alerts_integration_test.go:141: 
        	Error Trace:	/home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/receiver/mongodbatlasreceiver/alerts_integration_test.go:141
        	Error:      	Received unexpected error:
        	            	unable to create a MongoDB Atlas Alerts Receiver instance: failed to load TLS config: failed to load TLS cert and key: failed to load TLS cert and key PEMs: x509: certificate contains duplicate extensions
        	Test:       	TestAlertsReceiverTLS/new-primary.yaml

=== FAIL: . TestAlertsReceiverTLS (0.00s)

=== FAIL: . TestAtlasPoll (0.00s)
    alerts_integration_test.go:191: 
        	Error Trace:	/home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/receiver/mongodbatlasreceiver/alerts_integration_test.go:191
        	Error:      	Received unexpected error:
        	            	open testdata/alerts/sample-payloads/metric-threshold-closed.yaml: no such file or directory
        	Test:       	TestAtlasPoll

=== FAIL: . TestAlertsReceiver/metric-threshold-closed.yaml (re-run 1) (0.00s)
    alerts_integration_test.go:81: 
        	Error Trace:	/home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/receiver/mongodbatlasreceiver/alerts_integration_test.go:81
        	Error:      	Received unexpected error:
        	            	open testdata/alerts/sample-payloads/metric-threshold-closed.yaml: no such file or directory
        	Test:       	TestAlertsReceiver/metric-threshold-closed.yaml

=== FAIL: . TestAlertsReceiver (re-run 1) (0.00s)

=== FAIL: . TestAlertsReceiver/new-primary.yaml (re-run 1) (0.00s)
    alerts_integration_test.go:81: 
        	Error Trace:	/home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/receiver/mongodbatlasreceiver/alerts_integration_test.go:81
        	Error:      	Received unexpected error:
        	            	open testdata/alerts/sample-payloads/new-primary.yaml: no such file or directory
        	Test:       	TestAlertsReceiver/new-primary.yaml

=== FAIL: . TestAlertsReceiver (re-run 1) (0.00s)

=== FAIL: . TestAlertsReceiverTLS/metric-threshold-closed.yaml (re-run 1) (0.00s)
    alerts_integration_test.go:141: 
        	Error Trace:	/home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/receiver/mongodbatlasreceiver/alerts_integration_test.go:141
        	Error:      	Received unexpected error:
        	            	unable to create a MongoDB Atlas Alerts Receiver instance: failed to load TLS config: failed to load TLS cert and key: failed to load TLS cert and key PEMs: x509: certificate contains duplicate extensions
        	Test:       	TestAlertsReceiverTLS/metric-threshold-closed.yaml

=== FAIL: . TestAlertsReceiverTLS (re-run 1) (0.00s)

=== FAIL: . TestAlertsReceiverTLS/new-primary.yaml (re-run 1) (0.00s)
    alerts_integration_test.go:141: 
        	Error Trace:	/home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/receiver/mongodbatlasreceiver/alerts_integration_test.go:141
        	Error:      	Received unexpected error:
        	            	unable to create a MongoDB Atlas Alerts Receiver instance: failed to load TLS config: failed to load TLS cert and key: failed to load TLS cert and key PEMs: x509: certificate contains duplicate extensions
        	Test:       	TestAlertsReceiverTLS/new-primary.yaml

=== FAIL: . TestAlertsReceiverTLS (re-run 1) (0.00s)

=== FAIL: . TestAtlasPoll (re-run 1) (0.00s)
    alerts_integration_test.go:191: 
        	Error Trace:	/home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/receiver/mongodbatlasreceiver/alerts_integration_test.go:191
        	Error:      	Received unexpected error:
        	            	open testdata/alerts/sample-payloads/metric-threshold-closed.yaml: no such file or directory
        	Test:       	TestAtlasPoll

DONE 2 runs, 137 tests, 16 failures in 27.840s
make[1]: Leaving directory '/home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib'
@crobert-1 crobert-1 added the needs triage New item requiring triage label Apr 18, 2024
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@crobert-1
Copy link
Member Author

I've posted a PR that should mostly resolve this, all that's left should be to regenerate some (or all) of the certificates being used in the TestAlertsReceiverTLS test.

@crobert-1 crobert-1 removed the needs triage New item requiring triage label Apr 26, 2024
djaglowski pushed a commit that referenced this issue Apr 30, 2024
…32717)

**Description:** <Describe what has changed.>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
This fixes 2/3 failing integration tests in
#32543.
The last failing test `TestAlertsReceiverTLS` needs to be skipped for
now, as its cert files are invalid and need to be re-generated.

All three of these tests are currently being skipped, but will run again
when #32529 is merged.

**Link to tracking Issue:** <Issue number if applicable>

#32529

#32543

**Testing:** <Describe what testing was performed and which tests were
added.>
Two tests are passing again locally.
Copy link
Contributor

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@github-actions github-actions bot added the Stale label Jun 26, 2024
Copy link
Contributor

This issue has been closed as inactive because it has been stale for 120 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant