Skip to content

PHPLIB-366: Change streams test runner #616

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 1 commit into from
Jun 18, 2019
Merged

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented Jun 11, 2019

Depends on #615. Can be rebased after that is merged.

https://jira.mongodb.org/browse/PHPLIB-366

@jmikola
Copy link
Member Author

jmikola commented Jun 13, 2019

Rebased on master after merging #615. This should still wait until mongodb/specifications#567 is merged, since it requires a test fix.

@jmikola jmikola force-pushed the phplib-366 branch 2 times, most recently from 25ea007 to 15cd18c Compare June 13, 2019 19:31
/* These should all pass before the driver can be considered compatible with
* MongoDB 4.2. */
private static $incompleteTests = [
'change-streams: Test consecutive resume' => 'PHPLIB-416',
Copy link
Member Author

Choose a reason for hiding this comment

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

There is actually no reason for this to fail. I believe the problem is that I'm using iterator_to_array() to capture the change stream result rather than the documented iteration procedure.

Will attempt to get this fixed and passing before we merge.

Copy link
Member Author

Choose a reason for hiding this comment

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

Just to confirm, this was actually one of the two bugs cited below: PHPLIB-442

@jmikola
Copy link
Member Author

jmikola commented Jun 17, 2019

@kvwalker: This is ready for another look. While implementing this, I came across two bugs that appear to date back to the original implementation in 1.3.0:

I'd like to PHPLIB-442 in the active release branch (i.e. 1.4.x) and then merge up to master.

PHPLIB-443 can wait for 1.5.0 since it would be difficult to test this in v1.4 (we don't have anything using fail points there). Also, this may be more of a behavior change and better suited to a minor version bump where users might be more inclined to read release notes.

Copy link
Contributor

@kvwalker kvwalker left a comment

Choose a reason for hiding this comment

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

looks good, just one nit

Support placeholders in DocumentsMatchConstraint and allow CommandExpectations to ignore extra events.

Also removes abstract from base spec test class.

Spec tests synced with mongodb/specifications@a1c9d3c
@jmikola jmikola merged commit 1dc5478 into mongodb:master Jun 18, 2019
jmikola added a commit that referenced this pull request Jun 18, 2019
@jmikola jmikola deleted the phplib-366 branch June 18, 2019 14:58
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