Repository navigation
DRIVERS-3663: Keep mongodl's gpg home short on Windows too - #874
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The implementation preserves native Windows fallback behavior and is covered by the existing cross-platform CLI test suite.
Review effort: Balanced
Findings: None
What changed in this PR
Extends mongodl’s short GPG-home handling to Windows Cygwin environments, preventing gpg-agent socket path failures.
Changes:
- Resolves Cygwin’s
/tmpas the temporary GPG-home parent on Windows. - Improves gpg-agent failure guidance.
- Enables the deep-temporary-directory test on Windows.
| File | Description |
|---|---|
.evergreen/server_artifacts.py |
Adds Windows-aware short GPG-home selection and shared error construction. |
.evergreen/tests/test-cli.py |
Runs deep-path GPG verification coverage on Windows. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
papafe
marked this pull request as ready for review
October 7, 2026 13:03
papafe
requested review from
PavelSafronov and
blink1073
and removed request for
blink1073
October 7, 2026 13:03
papafe
force-pushed
the
DRIVERS-3663-windows
branch
from
October 7, 2026 13:04
500ae62 to
86b54f9
Compare
PavelSafronov
approved these changes
Oct 7, 2026
PavelSafronov
left a comment
Collaborator
There was a problem hiding this comment.
Changes look good, approving.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DRIVERS-3663
Summary
#860 moved mongodl's temporary gpg home to
/tmpon POSIX only. The Windows CI hosts run Cygwin's gpg, which has the same AF_UNIX socket path limit, so a deepTMPDIR(e.g.$MONGO_ORCHESTRATION_HOME/db) still stops gpg-agent from starting there and verification oflatestdownloads fails withcan't connect to the gpg-agent: IPC connect call failed.Changes in this PR
server_artifacts.py: create the gpg home under Cygwin's own/tmpon Windows (viacygpath -m /tmp), keeping the default whencygpathis unavailable.server_artifacts.py: the gpg-agent error message also mentions an overly deep gpg home as a possible cause.test-cli.py: run the deepTMPDIRtest on Windows too.Test Plan
Checklist
Checklist for Author
Checklist for Reviewer