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')
3535git remote set-url origin https://x-access-token:${token} @github.com/$owner /$repo .git
3636git checkout -b $branch " origin/master"
3737git add ./test
38- git apply -R .evergreen/specs. patch
38+ git apply -R --allow-empty .evergreen/patch/ *
3939git commit -am " resyncing specs $( date ' +%m-%d-%Y' ) "
4040echo " Creating the git checkout... done."
4141
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
432432new feature in PyMongo that has spec tests already implemented, or if
433433you 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
437456Follow 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