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

Sync CRUD unified tests #1543

Merged
merged 7 commits into from
Oct 30, 2024
Merged

Sync CRUD unified tests #1543

merged 7 commits into from
Oct 30, 2024

Conversation

nhachicha
Copy link
Contributor

@nhachicha nhachicha commented Oct 29, 2024

@nhachicha nhachicha self-assigned this Oct 29, 2024
- Fix checkstyle
@nhachicha nhachicha marked this pull request as ready for review October 29, 2024 23:55
@nhachicha nhachicha requested a review from jyemin October 29, 2024 23:55
Copy link
Contributor

@jyemin jyemin left a comment

Choose a reason for hiding this comment

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

While there are some advantages to including the YAML for the readability, we have so far decided to copy over only the JSON files, not the YAML ones. Let's not change that here.

@nhachicha nhachicha requested review from jyemin and removed request for jyemin and stIncMale October 30, 2024 14:12
@nhachicha nhachicha marked this pull request as draft October 30, 2024 14:26
assumeFalse(testDescription.toLowerCase().contains("replaceone with sort option"), "Skipping until JAVA-5622 is implemented");
assumeFalse(testDescription.equals("BulkWrite with string comment"), "Skipping until we decide "
+ "whether to update the spec or test https://mongodb.slack.com/archives/C72LB5RPV/p1730225657999979");
assumeFalse(testDescription.equals("BulkWrite with document comment"), "Skipping until we decide "
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's only include links that are accessible to the public. Slack doesn't fit the bill.

@@ -122,7 +122,6 @@
"expectEvents": [
{
"client": "client0",
"note": "Events split due to : JAVA-4537 ",
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we had previously decided to change this test, let's not reverse this decision until we have a better alternative. I'd prefer to revert the change to this file and leave it as is.

@nhachicha nhachicha marked this pull request as ready for review October 30, 2024 17:21
@nhachicha nhachicha requested a review from jyemin October 30, 2024 17:21
Copy link
Contributor

@jyemin jyemin left a comment

Choose a reason for hiding this comment

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

LGTM after the requested change.

@@ -43,6 +43,22 @@ public static void doSkips(final String fileDescription, final String testDescri
assumeFalse(testDescription.equals("Aggregate with $out includes read preference for 5.0+ server"));
assumeFalse(testDescription.equals("Database-level aggregate with $out includes read preference for 5.0+ server"));
}
if (fileDescription.equals("updateOne-sort")) {
assumeFalse(testDescription.equals("UpdateOne with sort option"));
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's add a second param for each of these, like "Skipped until implementation of JAVA-XXXX", where XXXX is the issue number for adding sort to update/replace.

@nhachicha nhachicha requested a review from jyemin October 30, 2024 21:00
Copy link
Contributor

@jyemin jyemin left a comment

Choose a reason for hiding this comment

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

Thanks. LGTM

@nhachicha nhachicha merged commit f46bbdd into mongodb:main Oct 30, 2024
58 of 60 checks passed
@nhachicha nhachicha deleted the sync-crud-tests branch October 30, 2024 21:27
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