Skip to content

RUBY-3280 Serverless tests failing on 2.18-stable #2742

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

Merged
merged 4 commits into from
Jul 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions spec/runners/crud/requirement.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ def satisfied?
end
end
if @auth == true
ok &&= cc.auth_enabled?
ok &&= SpecConfig.instance.auth?
elsif @auth == false
ok &&= !cc.auth_enabled?
ok &&= !SpecConfig.instance.auth?
end
if @csfle
ok &&= !!(ENV['LIBMONGOCRYPT_PATH'] || ENV['FLE'])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ description: "change-streams-showExpandedEvents"
schemaVersion: "1.7"
runOnRequirements:
- minServerVersion: "6.0.0"
topologies: [ replicaset, sharded-replicaset, sharded ]
topologies: [ replicaset, sharded ]
serverless: forbid
createEntities:
- client:
id: &client0 client0
Expand Down Expand Up @@ -160,7 +161,15 @@ tests:
- name: createChangeStream
object: *collection0
arguments:
pipeline: []
pipeline:
# On sharded clusters, the create command run when loading initial
# data sometimes is still reported in the change stream. To avoid
# this, we exclude the create command when creating the change
# stream, but specifically don't exclude other events to still catch
# driver errors.
- $match:
operationType:
$ne: create
showExpandedEvents: true
saveResultAsEntity: &changeStream0 changeStream0
- name: createIndex
Expand Down Expand Up @@ -259,17 +268,16 @@ tests:
arguments:
command:
collMod: *collection0
# Added here to fix our tests as we require a commandName but don't
# do anything with it.
commandName: modify_collection
commandName: collMod
- name: iterateUntilDocumentOrError
object: *changeStream0
expectResult:
operationType: modify

- description: "when showExpandedEvents is true, shardCollection events are reported"
runOnRequirements:
- topologies: [ sharded-replicaset, sharded ]
# Note: minServerVersion is specified in top-level runOnRequirements
- topologies: [ sharded ]
operations:
- name: dropCollection
object: *shardedDb
Expand All @@ -292,6 +300,7 @@ tests:
shardCollection: shardedDb.shardedCollection
key:
_id: 1
commandName: shardCollection
- name: iterateUntilDocumentOrError
object: *changeStream0
expectResult:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ tests:
payload: { $$exists: false }

- description: "getnonce"
runOnRequirements:
- maxServerVersion: 6.1.99 # getnonce removed as of 6.2 via SERVER-71007
operations:
- name: runCommand
object: *database
Expand Down Expand Up @@ -159,6 +161,8 @@ tests:
roles: { $$exists: false }

- description: "copydbgetnonce"
runOnRequirements:
- maxServerVersion: 3.6.99 # copydbgetnonce was removed as of 4.0 via SERVER-32276
operations:
- name: runCommand
object: *database
Expand All @@ -176,6 +180,8 @@ tests:
command: { copydbgetnonce: { $$exists: false } }

- description: "copydbsaslstart"
runOnRequirements:
- maxServerVersion: 4.0.99 # copydbsaslstart was removed as of 4.2 via SERVER-36211
operations:
- name: runCommand
object: *database
Expand All @@ -193,6 +199,8 @@ tests:
command: { copydbsaslstart: { $$exists: false } }

- description: "copydb"
runOnRequirements:
- maxServerVersion: 4.0.99 # copydb was removed as of 4.2 via SERVER-36257
operations:
- name: runCommand
object: *database
Expand Down