MOTOR-1466 & MOTOR-1467 Skip test and move to MacOS 14 (#338)

This commit is contained in:
Steven Silvester 2025-06-02 08:22:09 -05:00 committed by GitHub
parent 71c3cf9dda
commit edcae5440d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 10 additions and 30 deletions

View File

@ -616,23 +616,6 @@ tasks:
vars:
TOX_ENV: doctest
- name: "assign-pr-reviewer"
tags: ["pr"]
allowed_requesters: ["patch", "github_pr"]
commands:
- command: shell.exec
type: test
params:
shell: "bash"
working_dir: src
script: |
${PREPARE_SHELL}
set -x
export CONFIG=$PROJECT_DIRECTORY/.github/reviewers.txt
export SCRIPT="$DRIVERS_TOOLS/.evergreen/github_app/assign-reviewer.sh"
bash $SCRIPT -p $CONFIG -h ${github_commit} -o "mongodb" -n "motor"
echo '{"results": [{ "status": "PASS", "test_file": "Build", "log_raw": "Test completed" } ]}' > ${PROJECT_DIRECTORY}/test-results.json
# }}}
axes:
@ -751,9 +734,9 @@ axes:
- id: "win"
display_name: "Windows"
run_on: "windows-64-vsMulti-small"
- id: "macos-1100"
display_name: "macOS 11.00"
run_on: "macos-1100"
- id: "macos-1400"
display_name: "macOS 14.00"
run_on: "macos-1400"
buildvariants:
@ -816,7 +799,7 @@ buildvariants:
- matrix_name: "test-macos"
display_name: "${os}-${tox-env-osx}-${ssl}"
matrix_spec:
os: "macos-1100"
os: "macos-1400"
tox-env-osx: "*"
ssl: "*"
tasks:
@ -853,9 +836,3 @@ buildvariants:
PYTHON_BINARY: "/opt/python/3.9/bin/python3"
tasks:
- name: "doctest"
- name: rhel8-pr-assign-reviewer
display_name: Assign PR Reviewer
run_on: rhel87-small
tasks:
- name: "assign-pr-reviewer"

View File

@ -270,7 +270,7 @@ You can apply a sort, limit, or skip to a query before you begin iterating:
The cursor does not actually retrieve each document from the server
individually; it gets documents efficiently in `large batches`_.
.. _`large batches`: https://mongodb.com/docs/manual/tutorial/iterate-a-cursor/#cursor-batches
.. _`large batches`: https://www.mongodb.com/docs/manual/core/cursors/#cursor-batches
Counting Documents
------------------

View File

@ -357,7 +357,7 @@ You can apply a sort, limit, or skip to a query before you begin iterating:
The cursor does not actually retrieve each document from the server
individually; it gets documents efficiently in `large batches`_.
.. _`large batches`: https://mongodb.com/docs/manual/tutorial/iterate-a-cursor/#cursor-batches
.. _`large batches`: https://www.mongodb.com/docs/manual/core/cursors/#cursor-batches
Counting Documents
------------------

View File

@ -1497,7 +1497,7 @@ class AgnosticBaseCursor(AgnosticBase):
.. versionchanged:: 2.2
Deprecated.
.. _`large batches`: https://www.mongodb.com/docs/manual/tutorial/iterate-a-cursor/#cursor-batches
.. _`large batches`: https://www.mongodb.com/docs/manual/core/cursors/#cursor-batches
.. _`gen.coroutine`: http://tornadoweb.org/en/stable/gen.html
"""
warnings.warn(

View File

@ -140,6 +140,7 @@ class GridFSHandler(tornado.web.RequestHandler):
ims_value = self.request.headers.get("If-Modified-Since")
if ims_value is not None:
date_tuple = email.utils.parsedate(ims_value)
assert date_tuple is not None
# If our MotorClient is tz-aware, assume the naive ims_value is in
# its time zone.

View File

@ -207,6 +207,8 @@ excluded_tests = [
# Motor does not allow calling to_list on a tailable cursor.
"TestCursor.test_max_await_time_ms",
"TestCursor.test_to_list_tailable",
# This test relies on a private api"
"TestTransactions.test_transaction_pool_cleared_error_labelled_transient",
# Newer tests not implemented in Motor
"TestClient.test_repr_srv_host",
"TestGridfs.test_delete_by_name",