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

Fix config #561

Closed
wants to merge 16 commits into from
2 changes: 1 addition & 1 deletion tests/mongo-go-driver
Submodule mongo-go-driver updated 211 files
19 changes: 11 additions & 8 deletions tests/mongo-go-driver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,13 @@ results:
ferretdb:
stats:
expected_fail: 10
expected_skip: 19
expected_pass: 633
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the number of passing tests went down?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's needs some investigation.

Copy link
Contributor Author

@b1ron b1ron Aug 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We seem to be running less subtests in total with the update. This is not the case for MongoDB. I am unsure why this is happening. I took a lot at the changelog but could not find a commit that might be the culprit. I logged some more output to verify that:

FerretDB:

CURRENT
commit: 6d814184973ae7ffc13281c93b423dc522a4bcca
Expectedly ignored: 16
Total number of tests: 678

UPDATE
commit: 6c7e1241b747d2fb5d164c9ca9d17617f33e7899
Expectedly ignored: 15
Total number of tests: 662

Any ideas?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This bumped our passes back up a little.

expected_skip: 16
expected_pass: 632

ignore:
# returns unknown result.
- go.mongodb.org/mongo-driver/mongo/integration/TestClientStress

- go.mongodb.org/mongo-driver/x/mongo/driver/topology/TestCMAPProse

# returns unknown result.
- go.mongodb.org/mongo-driver/examples/documentation_examples/TestDocumentationExamples/IndexExamples

Expand Down Expand Up @@ -124,8 +122,6 @@ results:
- go.mongodb.org/mongo-driver/mongo/integration/TestClient/retry_writes_error_20_wrapped/write_error_code_19_right_msg
- go.mongodb.org/mongo-driver/mongo/integration/TestClient/retry_writes_error_20_wrapped/write_error_code_20
- go.mongodb.org/mongo-driver/mongo/integration/TestClient/retry_writes_error_20_wrapped/write_error_code_20_wrong_msg
- go.mongodb.org/mongo-driver/mongo/integration/TestCausalConsistency_NotSupported
- go.mongodb.org/mongo-driver/mongo/integration/TestCausalConsistency_NotSupported/afterClusterTime_not_included
- go.mongodb.org/mongo-driver/mongo/integration/TestCausalConsistency_NotSupported/clusterTime_not_included
- go.mongodb.org/mongo-driver/mongo/integration/TestChangeStream_Standalone
- go.mongodb.org/mongo-driver/mongo/integration/TestChangeStream_Standalone/no_custom_standalone_error
Expand Down Expand Up @@ -157,6 +153,10 @@ results:
- go.mongodb.org/mongo-driver/x/mongo/driver/integration/TestAggregate/Multiple_Batches
- go.mongodb.org/mongo-driver/x/mongo/driver/integration/TestAggregate/TestMaxTimeMSInGetMore
fail:
# panics: runtime error: invalid memory address or nil pointer dereference
- go.mongodb.org/mongo-driver/mongo/integration/TestCausalConsistency_NotSupported
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There must be a comment explaining why those tests fail

Copy link
Contributor Author

@b1ron b1ron Aug 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to look into it more. They were previously passing now they panic.

	=== RUN   TestCausalConsistency_NotSupported
	--- FAIL: TestCausalConsistency_NotSupported (0.08s)
	
go.mongodb.org/mongo-driver/mongo/integration/TestCausalConsistency_NotSupported/afterClusterTime_not_included:
	=== RUN   TestCausalConsistency_NotSupported/afterClusterTime_not_included
	    --- FAIL: TestCausalConsistency_NotSupported/afterClusterTime_not_included (0.08s)
	panic: runtime error: invalid memory address or nil pointer dereference [recovered]
		panic: runtime error: invalid memory address or nil pointer dereference
	[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xe47b76]
	
	goroutine 72 [running]:
	testing.tRunner.func1.2({0xecf8e0, 0x17877e0})
		/usr/local/go/src/testing/testing.go:1526 +0x372
	testing.tRunner.func1()
		/usr/local/go/src/testing/testing.go:1529 +0x650
	panic({0xecf8e0, 0x17877e0})
		/usr/local/go/src/runtime/panic.go:890 +0x263
	go.mongodb.org/mongo-driver/mongo/integration.TestCausalConsistency_NotSupported.func1(0xc0002f0c40)
		/home/byron/workdir/dance/tests/mongo-go-driver/mongo/integration/causal_consistency_test.go:225 +0x256
	go.mongodb.org/mongo-driver/mongo/integration/mtest.(*T).RunOpts.func1(0x0?)
		/home/byron/workdir/dance/tests/mongo-go-driver/mongo/integration/mtest/mongotest.go:266 +0x5a9
	testing.tRunner(0xc0002fbba0, 0xc00003cde0)
		/usr/local/go/src/testing/testing.go:1576 +0x217
	created by testing.(*T).Run
		/usr/local/go/src/testing/testing.go:1629 +0x806

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not super confident on this but it seems that the changes made now cause their event monitor to return nil here when it tries to inspect the command name. Could be related to mongodb/mongo-go-driver#1347?

@AlekSi should I add this failing test to common ignore for now?

Copy link
Contributor Author

@b1ron b1ron Aug 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But it only fails on FerretDB which invalidates the above. 👁️

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AlekSi should I add this failing test to common ignore for now?

Added to FerretDB failures.

- go.mongodb.org/mongo-driver/mongo/integration/TestCausalConsistency_NotSupported/afterClusterTime_not_included

- go.mongodb.org/mongo-driver/examples/documentation_examples/TestDocumentationExamples

# (NotImplemented) `aggregate` stage "$project" is not implemented yet
Expand All @@ -182,10 +182,13 @@ results:
- go.mongodb.org/mongo-driver/mongo/integration/unified/TestUnifiedSpec
mongodb:
stats:
expected_skip: 432
expected_pass: 1940
expected_skip: 435
expected_pass: 1948

skip:
# skipping due to known failure: Test times out. See GODRIVER-2943
- go.mongodb.org/mongo-driver/mongo/integration/unified/TestUnifiedSpec/server-discovery-and-monitoring/unified/logging-standalone.json/Topology_lifecycle

# execution failed: test must be skipped: "the \"modifyCollection\" operation is not supported"
- go.mongodb.org/mongo-driver/mongo/integration/unified/TestUnifiedSpec/collection-management/modifyCollection-pre_and_post_images.json/modifyCollection_to_changeStreamPreAndPostImages_enabled
- go.mongodb.org/mongo-driver/mongo/integration/unified/TestUnifiedSpec/crud/unified/findOneAndUpdate-errorResponse.json/findOneAndUpdate_document_validation_errInfo_is_accessible
Expand Down
2 changes: 1 addition & 1 deletion tests/mongo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ results:
# they both seem to use a key file with incorrect permissions.
- mongo/jstests/auth/getMore.js
- mongo/jstests/auth/list_sessions.js
- mongo/jstests/core/query/elemmatch/elemmatch_or_pushdown_paths.js
- mongo/jstests/aggregation/explain.js
- mongo/jstests/aggregation/match_swapping_renamed_fields.js
- mongo/jstests/aggregation/use_query_project_and_sort.js
- mongo/jstests/aggregation/use_query_projection.js
- mongo/jstests/aggregation/use_query_sort.js
- mongo/jstests/core/query/elemmatch/elemmatch_or_pushdown_paths.js
Loading