File tree Expand file tree Collapse file tree 5 files changed +20
-1
lines changed Expand file tree Collapse file tree 5 files changed +20
-1
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ branch="spec-resync-"$(date '+%m-%d-%Y')
35
35
git remote set-url origin https://x-access-token:${token} @github.com/$owner /$repo .git
36
36
git checkout -b $branch " origin/master"
37
37
git add ./test
38
- git apply -R .evergreen/specs. patch
38
+ git apply -R --allow-empty .evergreen/patch/ *
39
39
git commit -am " resyncing specs $( date ' +%m-%d-%Y' ) "
40
40
echo " Creating the git checkout... done."
41
41
Original file line number Diff line number Diff line change @@ -432,6 +432,25 @@ update in PyMongo. This is primarily helpful if you are implementing a
432
432
new feature in PyMongo that has spec tests already implemented, or if
433
433
you are attempting to validate new spec tests in PyMongo.
434
434
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
+
435
454
## Making a Release
436
455
437
456
Follow the [ Python Driver Release Process Wiki] ( https://wiki.corp.mongodb.com/display/DRIVERS/Python+Driver+Release+Process ) .
You can’t perform that action at this time.
0 commit comments