Skip to content

Commit 1a3d87f

Browse files
committed
multiple patch files
1 parent 75ddd14 commit 1a3d87f

File tree

5 files changed

+20
-1
lines changed

5 files changed

+20
-1
lines changed
File renamed without changes.

.evergreen/patch/new.patch

Whitespace-only changes.

.evergreen/patch/update.patch

Whitespace-only changes.

.evergreen/scripts/create-pr.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ branch="spec-resync-"$(date '+%m-%d-%Y')
3535
git remote set-url origin https://x-access-token:${token}@github.com/$owner/$repo.git
3636
git checkout -b $branch "origin/master"
3737
git add ./test
38-
git apply -R .evergreen/specs.patch
38+
git apply -R --allow-empty .evergreen/patch/*
3939
git commit -am "resyncing specs $(date '+%m-%d-%Y')"
4040
echo "Creating the git checkout... done."
4141

CONTRIBUTING.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,25 @@ update in PyMongo. This is primarily helpful if you are implementing a
432432
new feature in PyMongo that has spec tests already implemented, or if
433433
you are attempting to validate new spec tests in PyMongo.
434434

435+
### Automated Specification Test Resyncing
436+
`/.evergreen/scripts/resync-all-specs.sh` is a script that will
437+
automatically run once a week. This script calls a python script
438+
`.evergreen/scripts/resync-all-specs.py` that actually does all
439+
the resyncing. If appropriate, the bash script then calls
440+
`.evergreen/scripts/create-pr.sh` that actually publishes a PR.
441+
442+
There are three patch files that contain test differences between
443+
pymongo tests and the specs
444+
`.evergreen/patch/diff.patch`: These contain tests that we know we
445+
differ in and do not plan to fix. (This is likely an instance of the
446+
Python driver having a different behaviour.)
447+
`.evergreen/patch/new.patch`: This is for newly added test files that
448+
we fail.
449+
`.evergreen/patch/update.patch`: This is for test changes that were
450+
updated and now fail. In this case, we want to keep the old passing
451+
version, add the appropriate `git diff` to this patch file, and open
452+
a new ticket to unskip these.
453+
435454
## Making a Release
436455

437456
Follow the [Python Driver Release Process Wiki](https://wiki.corp.mongodb.com/display/DRIVERS/Python+Driver+Release+Process).

0 commit comments

Comments
 (0)