Skip to content

PHPLIB-493: Unified test runner POC #783

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 41 commits into from
Oct 16, 2020
Merged

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented Sep 9, 2020

Copy link
Member

@alcaeus alcaeus left a comment

Choose a reason for hiding this comment

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

Initial review. As per request, I've skipped reviewing the ExpectedError, ExpectedResult, and Operation classes.

@jmikola jmikola changed the title [WIP] PHPLIB-493: Unified test runner POC PHPLIB-493: Unified test runner POC Oct 7, 2020
@jmikola jmikola marked this pull request as ready for review October 7, 2020 15:34
@jmikola
Copy link
Member Author

jmikola commented Oct 7, 2020

Includes patch from #790 for CreateIndexes.

Also syncs spec tests with mongodb/specifications#846, all of which are currently passing locally on replica set and sharded clusters. We'll see what Travis and Evergreen say.

@jmikola jmikola requested a review from alcaeus October 7, 2020 15:39
return (int) ((string) $bson);
}

/* TODO: Convert Int64 objects to integers on 32-bit platforms if they
Copy link
Member

Choose a reason for hiding this comment

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

I suppose this will only be relevant once we port over more tests to the new format?

Copy link
Member Author

@jmikola jmikola Oct 8, 2020

Choose a reason for hiding this comment

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

It may actually never come up unless a test actually asserts that a cursor ID is zero and a 32-bit PHP platform tries to compare 0 with Int64(0). I think you could probably punt on this until it actually becomes an issue.

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good 👍

@alcaeus alcaeus merged commit 4608a73 into mongodb:master Oct 16, 2020
@jmikola jmikola deleted the phplib-493 branch October 17, 2020 07:41
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