Skip to content

PHPLIB-918: Add test that reads are not retried in a transaction #963

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
Sep 2, 2022

Conversation

levon80999
Copy link
Contributor

@levon80999 levon80999 commented Aug 31, 2022

@levon80999 levon80999 requested a review from jmikola August 31, 2022 16:23
@jmikola jmikola changed the title [PHPLIB-918] Add test that reads are not retried in a transaction PHPLIB-918: Add test that reads are not retried in a transaction Aug 31, 2022
Copy link
Member

@jmikola jmikola left a comment

Choose a reason for hiding this comment

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

For consistency in the future, please use PHPLIB-###: as a commit prefix instead of wrapping the issue in brackets. I revised the PR title, which should be sufficient to ensure the correct message is used when squash-merging.

The commit message is missing a comment indicating the mongodb/specifications commit to which you've synced. When we discussed this earlier, I referenced the commits in #961 as an example. Please add the following to your commit message:

Synced with mongodb/specifications@<full commit hash>

GitHub will then render that as a short link in its UI, as in f8eff8d.

Feel free to amend your commit and force-push to your PR branch.

"tests": [
{
"description": "AbortTransaction succeeds after handshake network error",
"skipReason": "DRIVERS-2032: Pinned servers need to be checked if they are still selectable",
Copy link
Member

Choose a reason for hiding this comment

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

I noted from the downstream changes in DRIVERS-746 that both of the "retryable" tests are skipped, so it was not necessary to add these to UnifiedSpecTest::$incompleteTests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I noted it too and that is why I didn't add new lines in UnifiedSpecTest::$incompleteTests. Also I double checked the DRIVERS-2032 ticket which is the parent ticket of DRIVERS-746.

Copy link
Member

@jmikola jmikola left a comment

Choose a reason for hiding this comment

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

CI failures are unrelated. I believe they are actually both fixed in master, but your PR branch is based on an older master commit. For example, the tests/UnifiedSpecTests/change-streams directory corresponding to this PR's commit doesn't show any recent modifications to the two failing change stream tests, which were recently updated in a292d07 and f8eff8d. For future reference, I suggest rebasing your PR branch on master regularly if you're already comfortable with force-pushing. It will limit conflicts (granted, that's not an issue here) and help avoid unrelated CI failures that might have been recently addressed.

Please just remove the full issue URL from the commit message when squash-merging, as I mentioned in #967 (comment).

@levon80999 levon80999 merged commit 4bc4607 into mongodb:master Sep 2, 2022
@levon80999 levon80999 deleted the PHPLIB-918 branch September 2, 2022 08:06
@jmikola
Copy link
Member

jmikola commented Sep 2, 2022

@levon80999: FYI, the merge commit (4bc4607) was missing the following:

Synced with mongodb/specifications@c5d1c778dba6439de72e6a3dbbaeab9de7539306

levon80999 added a commit to levon80999/mongo-php-library that referenced this pull request Sep 28, 2022
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