-
Notifications
You must be signed in to change notification settings - Fork 1.8k
test: Update connection-monitoring-and-pooling specs #2555
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I like the update script 🤩
The only issue is that we may not want to pull master, I am usually cherry-picking files from a specific commit hash, or pulling all changes to a spec folder from a commit hash. I've never considered taking from master.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a nit for the sync script
Update connection-monitoring-and-pooling tests ensuring ConnectionCreated proceed ConnectionReady events NODE-2804
a5f5d49
to
b014976
Compare
@reggi PTAL at the update script (even better would be if you could give it a whirl for me). Should be able to support a specific git hash as an optional second argument. |
etc/update-spec-tests.sh
Outdated
curl -sL "https://github.com/mongodb/specifications/archive/master.zip" -o "$tmpdir/specs.zip" | ||
unzip -d "$tmpdir" "$tmpdir/specs.zip" > /dev/null | ||
mkdir -p "$spec_root/$1" | ||
rsync -ah "$tmpdir/specifications-master/source/$1/tests/" "$spec_root/$1" --delete |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rsync -ah "$tmpdir/specifications-master/source/$1/tests/" "$spec_root/$1" --delete | |
rsync -ah --exclude '*.rst' "$tmpdir/specifications-master/source/$1/tests/" "$spec_root/$1" --delete |
Update connection-monitoring-and-pooling tests
ensuring ConnectionCreated proceed ConnectionReady events
NODE-2804
Note to reviewers
I have a spec sync script I suggest we bring in here, if anyone has a hesitation we can drop that.
There were a few formatting issues that made it to 3.6, the fixes are in here.