From 994b982a4617692e72d37bac08f4b4bc294ba92f Mon Sep 17 00:00:00 2001 From: Noah Stapp Date: Mon, 8 Jun 2026 14:17:23 -0400 Subject: [PATCH 1/2] PYTHON-5869 - Fix automated sync permanent patch application --- .evergreen/scripts/resync-all-specs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.evergreen/scripts/resync-all-specs.py b/.evergreen/scripts/resync-all-specs.py index 9886650a9d..e84a91d0c6 100644 --- a/.evergreen/scripts/resync-all-specs.py +++ b/.evergreen/scripts/resync-all-specs.py @@ -42,7 +42,7 @@ def apply_patches(errored): # Note: glob expansion doesn't work in shell=False, so we use a list of files. spec_patch_dir = pathlib.Path("./.evergreen/spec-patch/") patches = [str(p) for p in spec_patch_dir.glob("*.patch")] - patches += [str(p) for p in spec_patch_dir.glob("permanent/*.patch")] + patches += [str(p) for p in (spec_patch_dir / pathlib.Path("permanent")).glob("*.patch")] if patches: subprocess.run( [ # noqa: S603, S607 From e83889e3495f9c6b789f2cd3d55ea8b862e47da8 Mon Sep 17 00:00:00 2001 From: Noah Stapp Date: Mon, 8 Jun 2026 14:24:17 -0400 Subject: [PATCH 2/2] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .evergreen/scripts/resync-all-specs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.evergreen/scripts/resync-all-specs.py b/.evergreen/scripts/resync-all-specs.py index e84a91d0c6..6c4d95c677 100644 --- a/.evergreen/scripts/resync-all-specs.py +++ b/.evergreen/scripts/resync-all-specs.py @@ -42,7 +42,7 @@ def apply_patches(errored): # Note: glob expansion doesn't work in shell=False, so we use a list of files. spec_patch_dir = pathlib.Path("./.evergreen/spec-patch/") patches = [str(p) for p in spec_patch_dir.glob("*.patch")] - patches += [str(p) for p in (spec_patch_dir / pathlib.Path("permanent")).glob("*.patch")] + patches += [str(p) for p in (spec_patch_dir / "permanent").glob("*.patch")] if patches: subprocess.run( [ # noqa: S603, S607