Skip to content

Commit

Permalink
Use MongoDB 7 (#708)
Browse files Browse the repository at this point in the history
Closes #641.
  • Loading branch information
b1ron committed Dec 19, 2023
1 parent 2807cf6 commit ae42776
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 52 deletions.
2 changes: 1 addition & 1 deletion build/deps/mongo.Dockerfile
@@ -1 +1 @@
FROM ghcr.io/ferretdb/legacy-mongo-shell:6.0.8-1
FROM ghcr.io/ferretdb/legacy-mongo-shell:7.0.4-1
1 change: 0 additions & 1 deletion build/deps/mongo6.Dockerfile

This file was deleted.

1 change: 1 addition & 0 deletions build/deps/mongo7.Dockerfile
@@ -0,0 +1 @@
FROM mongo:7.0.4
4 changes: 2 additions & 2 deletions docker-compose.yml
Expand Up @@ -47,7 +47,7 @@ services:
mongodb:
build:
context: ./build/deps
dockerfile: mongo6.Dockerfile
dockerfile: mongo7.Dockerfile
command: --config /etc/mongod.conf
container_name: dance_mongodb
restart: unless-stopped
Expand All @@ -70,7 +70,7 @@ services:
mongosh:
build:
context: ./build/deps
dockerfile: mongo6.Dockerfile
dockerfile: mongo7.Dockerfile
container_name: dance_mongosh
environment:
# Always UTC+05:45. Set to catch timezone problems.
Expand Down
17 changes: 6 additions & 11 deletions tests/mongo-go-driver.yml
Expand Up @@ -166,9 +166,9 @@ results:

mongodb:
stats:
fail: 14
skip: 277
pass: 2735
fail: 30
skip: 276
pass: 2733
ignore:
- go.mongodb.org/mongo-driver/mongo/integration/TestUnifiedSpecs
- go.mongodb.org/mongo-driver/mongo/integration/TestClient_BSONOptions
Expand Down Expand Up @@ -214,8 +214,6 @@ results:
- go.mongodb.org/mongo-driver/mongo/integration/TestChangeStream_ReplicaSet/resume_token/no_getMore/without_PBRT_support
# skipping for lack of SDAM monitoring
- go.mongodb.org/mongo-driver/mongo/integration/TestChangeStream_ReplicaSet/server_selection_before_resume
# skipping due to environmental constraints: server version "6.0.8" is lower than min required version "7.0.0"
- go.mongodb.org/mongo-driver/mongo/integration/TestChangeStream_ReplicaSet/split_large_changes
# skipping due to environmental constraints: topology kind "replicaset" does not match any of the required kinds ["single"]
- go.mongodb.org/mongo-driver/mongo/integration/TestChangeStream_Standalone
# skipping due to environmental constraints: test requires auth value: true, cluster auth value: false
Expand Down Expand Up @@ -306,10 +304,8 @@ results:
- go.mongodb.org/mongo-driver/mongo/integration/TestMongosPinning
# skipping due to environmental constraints: topology kind "replicaset" does not match any of the required kinds ["sharded"]
- go.mongodb.org/mongo-driver/mongo/integration/TestRetryableWritesProse/transaction_number_not_sent_on_writes
# skipping due to environmental constraints: topology kind "replicaset" does not match any of the required kinds ["single"]
- go.mongodb.org/mongo-driver/mongo/integration/TestRetryableWritesProse/wrap_mmapv1_error
# skipping because storage engine is not mmapv1
- go.mongodb.org/mongo-driver/mongo/integration/unified/TestUnifiedSpec/change-streams/change-streams-disambiguatedPaths.json
- go.mongodb.org/mongo-driver/mongo/integration/TestRetryableWritesProse/wrap_mmapv1_error
# skipping due to environmental constraints: no matching RunOnBlock; comparison errors: [server version "6.0.8" is lower than min required version "6.1.0"]
- go.mongodb.org/mongo-driver/mongo/integration/unified/TestUnifiedSpec/change-streams/change-streams-errors.json/The_watch_helper_must_not_throw_a_custom_exception_when_executed_against_a_single_server_topology,_but_instead_depend_on_a_server_error
# skipping due to environmental constraints: no matching RunOnBlock; comparison errors: [topology kind "replicaset" does not match any of the required kinds ["single"]]
Expand Down Expand Up @@ -410,8 +406,6 @@ results:
- go.mongodb.org/mongo-driver/mongo/integration/unified/TestUnifiedSpec/client-side-operations-timeout/runCursorCommand.json/errors_if_timeoutMode_is_set_without_timeoutMS
# execution failed: test must be skipped: "timeoutMode not supported
- go.mongodb.org/mongo-driver/mongo/integration/unified/TestUnifiedSpec/collection-management/modifyCollection-pre_and_post_images.json/modifyCollection_to_changeStreamPreAndPostImages_enabled
# execution failed: test must be skipped: "the \"modifyCollection\" operation is not supported"
- go.mongodb.org/mongo-driver/mongo/integration/unified/TestUnifiedSpec/collection-management/timeseries-collection.json/createCollection_with_bucketing_options
# skipping due to environmental constraints: no matching RunOnBlock; comparison errors: [server version "6.0.8" is lower than min required version "7.0"]
- go.mongodb.org/mongo-driver/mongo/integration/unified/TestUnifiedSpec/command-monitoring/find.json/A_successful_find_event_with_a_getmore_and_the_server_kills_the_cursor_(<=_4.4)
# skipping due to environmental constraints: no matching RunOnBlock; comparison errors: [server version "6.0.8" is higher than max version "4.4.99"]
Expand Down Expand Up @@ -705,6 +699,8 @@ results:
- go.mongodb.org/mongo-driver/mongo/integration/TestSessionsProse/7_authenticating_as_multiple_users_suppresses_implicit_sessions
# event ordering is incompatible with load-balancer SDAM spec test (DRIVERS-1785)
- go.mongodb.org/mongo-driver/x/mongo/driver/topology/TestCMAPSpec/pool-create-min-size-error.json
# skipping due to environmental constraints: no matching RunOnBlock; comparison errors: [server version "7.0.4" is higher than max version "6.0.99"]
- go.mongodb.org/mongo-driver/mongo/integration/unified/TestUnifiedSpec/change-streams/change-streams-resume-errorLabels.json/change_stream_resumes_after_StaleShardVersion
pass:
- go.mongodb.org/mongo-driver/examples/documentation_examples/TestDocumentationExamples/CausalConsistencyExamples/post4.2
- go.mongodb.org/mongo-driver/examples/documentation_examples/TestDocumentationExamples/ChangeStreamExamples
Expand Down Expand Up @@ -915,7 +911,6 @@ results:
- go.mongodb.org/mongo-driver/mongo/integration/unified/TestUnifiedSpec/change-streams/change-streams-resume-errorLabels.json/change_stream_resumes_after_ShutdownInProgress
- go.mongodb.org/mongo-driver/mongo/integration/unified/TestUnifiedSpec/change-streams/change-streams-resume-errorLabels.json/change_stream_resumes_after_SocketException
- go.mongodb.org/mongo-driver/mongo/integration/unified/TestUnifiedSpec/change-streams/change-streams-resume-errorLabels.json/change_stream_resumes_after_StaleEpoch
- go.mongodb.org/mongo-driver/mongo/integration/unified/TestUnifiedSpec/change-streams/change-streams-resume-errorLabels.json/change_stream_resumes_after_StaleShardVersion
- go.mongodb.org/mongo-driver/mongo/integration/unified/TestUnifiedSpec/change-streams/change-streams-resume-errorLabels.json/change_stream_resumes_if_error_contains_ResumableChangeStreamError
- go.mongodb.org/mongo-driver/mongo/integration/unified/TestUnifiedSpec/change-streams/change-streams-showExpandedEvents.json
- go.mongodb.org/mongo-driver/mongo/integration/unified/TestUnifiedSpec/change-streams/change-streams-showExpandedEvents.json/when_omitted,_showExpandedEvents_is_not_sent_as_a_part_of_the_aggregate_command
Expand Down
43 changes: 6 additions & 37 deletions tests/mongo.yml
Expand Up @@ -51,7 +51,6 @@ args:
- mongo/jstests/core/capped/capped_resize.js
- mongo/jstests/core/capped/capped_update.js
- mongo/jstests/core/capped/capped_upsert.js
- mongo/jstests/noPassthroughWithMongod/capped6.js
- mongo/jstests/core/ddl/convert_to_capped_nonexistant.js
- mongo/jstests/core/ddl/convert_to_capped.js
- mongo/jstests/noPassthrough/noncapped_oplog_creation.js
Expand Down Expand Up @@ -120,7 +119,6 @@ results:
- mongo/jstests/core/capped/capped_resize.js
- mongo/jstests/core/capped/capped_update.js
- mongo/jstests/core/capped/capped_upsert.js
- mongo/jstests/noPassthroughWithMongod/capped6.js
- mongo/jstests/core/ddl/convert_to_capped_nonexistant.js
- mongo/jstests/core/ddl/convert_to_capped.js
- mongo/jstests/noPassthrough/noncapped_oplog_creation.js
Expand Down Expand Up @@ -210,8 +208,8 @@ results:

postgresql:
stats:
fail: 77
pass: 38
fail: 76
pass: 41
fail:
include_fail:
- aggregation
Expand All @@ -224,8 +222,8 @@ results:

sqlite:
stats:
fail: 77
pass: 38
fail: 76
pass: 41
fail:
include_fail:
- aggregation
Expand All @@ -238,39 +236,10 @@ results:

mongodb:
stats:
fail: 27
pass: 88
fail: 2
pass: 115
fail:
# both tests invoke the MongoRunner and also fail on resmoke.py with exit code 253.
# 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
# fails when updating the maximum size of the capped collection
- mongo/jstests/core/capped/capped_resize.js
# SyntaxError: import declarations may only appear at top level of a module
- mongo/jstests/aggregation/accumulators/min_n_max_n.js
- mongo/jstests/aggregation/bugs/cond.js
- mongo/jstests/aggregation/bugs/groupMissing.js
- mongo/jstests/aggregation/bugs/match.js
- mongo/jstests/aggregation/expressions/filter.js
- mongo/jstests/aggregation/expressions/set.js
- mongo/jstests/aggregation/ifnull.js
- mongo/jstests/aggregation/sources/collStats/query_exec_stats.js
- mongo/jstests/aggregation/testall.js
- mongo/jstests/core/query/awaitdata_getmore_cmd.js
- mongo/jstests/core/query/cursor/getmore_invalidated_cursors.js
- mongo/jstests/core/query/cursor/tailable_cursor_invalidation.js
- mongo/jstests/core/query/cursor/tailable_getmore_batch_size.js
- mongo/jstests/core/query/elemmatch/elemmatch_object.js
- ongo/jstests/core/query/elemmatch/elemmatch_value.js
- mongo/jstests/core/write/crud_api.js
- mongo/jstests/readonly/get_more.js
- mongo/jstests/core/query/elemmatch/elemmatch_value.js
# assert: [1] != [0] are not equal
- mongo/jstests/core/query/elemmatch/elemmatch_ne.js

0 comments on commit ae42776

Please sign in to comment.