Skip to content

Conversation

@durran
Copy link
Member

@durran durran commented Jul 13, 2021

No description provided.

Copy link
Contributor

@dariakp dariakp left a comment

Choose a reason for hiding this comment

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

Just a few outstanding questions/concerns here

// TODO: NodeJS Driver has extra events
// expect(actual).to.have.lengthOf(expected.length);
if (actual.length !== expected.length) {
// const actualNames = actual.map(a => a.constructor.name);
Copy link
Contributor

Choose a reason for hiding this comment

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

this seems to be an empty code block

Copy link
Contributor

Choose a reason for hiding this comment

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

Relevant convo over on the bigger PR: #2742 (comment)

Copy link
Contributor

Choose a reason for hiding this comment

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

@nbbeeken Thanks! still think that we should maybe remove the if block and the code that attempts to do things and add a comment in the code summarizing this:

It was intentional as the Node driver does not execute a killCursors after a getMore has errored, which causes the absence of the killCursors events in some cases. I could not find anywhere so far in the specs that states an errored getMore requires an immediate killCursors afterwards, and all the driver does in this case is cleanup the cursor (but not explicitly close() it).

(maybe even file a ticket to explore this further, since if we know exactly what's out of the ordinary, we may be able to filter explicitly those cases out)

Copy link
Member Author

Choose a reason for hiding this comment

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

This check is now back and asserting the event lengths, so no comment needed.

Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like some of the new snapshot tests are failing now with that check, I don't think you need to take care of it here because I need to sort out those tests anyway, but if you could add them to the skip list, that would allow the pipeline to stay green on main

Copy link
Contributor

Choose a reason for hiding this comment

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

snapshot-sessions-unsupported-ops

  • Server returns an error on findOneAndUpdate with snapshot
  • Server returns an error on deleteOne with snapshot
  • Server returns an error on updateOne with snapshot

Copy link
Member Author

Choose a reason for hiding this comment

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

I've skipped the one failing test now.

@dariakp dariakp requested a review from nbbeeken July 13, 2021 20:54
@dariakp dariakp added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Jul 13, 2021
@durran durran requested a review from dariakp July 14, 2021 14:13
Copy link
Contributor

@dariakp dariakp left a comment

Choose a reason for hiding this comment

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

Thank you very much!

@dariakp dariakp requested a review from emadum July 14, 2021 14:59
@dariakp dariakp added Team Review Needs review from team and removed Primary Review In Review with primary reviewer, not yet ready for team's eyes labels Jul 14, 2021
Copy link
Contributor

@nbbeeken nbbeeken left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@emadum emadum left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@dariakp dariakp merged commit fa4352d into 4.0 Jul 14, 2021
@dariakp dariakp deleted the unified-test-runner branch July 14, 2021 16:53
ljhaywar pushed a commit that referenced this pull request Nov 9, 2021
* test: new test runner changes from lb support

* test: refactoring unified runner

* test: bring back unified event length check

* test: run txn tests in manual lb tests

* test: skip failing snapshot test and refactor matchers

* test: remove lb manual test

* test: skip other failed tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Team Review Needs review from team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants