Skip to content

CDRIVER-4350 unskip mock tests and remove unnecessary skips #1437

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 5 commits into from
Oct 9, 2023

Conversation

kevinAlbs
Copy link
Collaborator

@kevinAlbs kevinAlbs commented Oct 9, 2023

Summary

This PR partially resolves CDRIVER-4350.

Unskip the following mock server tests:

  • /inheritance/find/readPrefs
  • /BulkOperation/error/unordered
  • /command_monitoring/get_error
  • /Collection/find_with_opts/newoption
  • /inheritance/replace_one/writeConcern
  • /Collection/find_with_opts/newoption

Unskip the following live test:

  • /unified/entity-client-storeEventsAsEntities

Remove unnecessary skips for the following tests:

  • /unified/assertNumberConnectionsCheckedOut
  • /unified/entity-client-cmap-events

Background and Motivation

CDRIVER-4350 references both live and mock tests. The following are mock tests:

  • /inheritance/find/readPrefs
  • /BulkOperation/error/unordered
  • /command_monitoring/get_error
  • /Collection/find_with_opts/newoption
  • /inheritance/replace_one/writeConcern
  • /Collection/find_with_opts/newoption

As of #1277, mock server tests are only run on ubuntu2204-small distro. The flaky test failures may no longer be applicable. Mock tests were unskipped and run in a patch build: https://spruce.mongodb.com/version/6523f7c20305b90bc8cf1bee The result of three runs was success.

The following live tests were already skipped in runner.c:

  • /unified/assertNumberConnectionsCheckedOut
  • /unified/entity-client-cmap-events
  • /unified/entity-client-storeEventsAsEntities

Entries in skip-tests.txt were removed due to unnecessary duplicate skips.

/unified/entity-client-storeEventsAsEntities was initially skipped in #820 due to not implementing the storeEventsAsEntities used in the test:

For schema version 1.2, I've skipped implementing the loop operation and the storeEventsAsEntities option, as they are only required once we resume work on drivers atlas testing.

#1220 implements the storeEventsAsEntities operation. /unified/entity-client-storeEventsAsEntities is unskipped in runner.c.

Unskipping other live referenced tests resulted in an observed test failure in /change_streams/legacy/change-streams-resume-allowlist on this patch and is not addressed in this PR.

@kevinAlbs kevinAlbs marked this pull request as ready for review October 9, 2023 13:51
@kevinAlbs kevinAlbs requested a review from rcsanchez97 October 9, 2023 15:46
@kevinAlbs kevinAlbs merged commit 4998148 into mongodb:master Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants