Skip to content

DRIVERS-3663: Keep mongodl's gpg home short on Windows too - #874

Merged
papafe merged 1 commit into
mongodb-labs:masterfrom
papafe:DRIVERS-3663-windows
Oct 8, 2026
Merged

papafe merged 1 commit into
mongodb-labs:masterfrom
papafe:DRIVERS-3663-windows

Conversation

@papafe

@papafe papafe commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

DRIVERS-3663

Summary

#860 moved mongodl's temporary gpg home to /tmp on POSIX only. The Windows CI hosts run Cygwin's gpg, which has the same AF_UNIX socket path limit, so a deep TMPDIR (e.g. $MONGO_ORCHESTRATION_HOME/db) still stops gpg-agent from starting there and verification of latest downloads fails with can'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 /tmp on Windows (via cygpath -m /tmp), keeping the default when cygpath is 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 deep TMPDIR test on Windows too.

Test Plan

  • Standard CI.

Checklist

Checklist for Author

  • Does the title of the PR reference a JIRA Ticket?
  • Do you fully understand the implementation? (Would you be comfortable explaining how this code works to someone else?)
  • Is all relevant documentation (README or docstring) updated?

Checklist for Reviewer

  • Does the title of the PR reference a JIRA Ticket?
  • Do you fully understand the implementation? (Would you be comfortable explaining how this code works to someone else?)
  • Is all relevant documentation (README or docstring) updated?

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 /tmp as 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
papafe marked this pull request as ready for review October 7, 2026 13:03
@papafe
papafe requested a review from a team as a code owner October 7, 2026 13:03
@papafe
papafe requested review from PavelSafronov and blink1073 and removed request for blink1073 October 7, 2026 13:03
@papafe
papafe force-pushed the DRIVERS-3663-windows branch from 500ae62 to 86b54f9 Compare October 7, 2026 13:04

@PavelSafronov PavelSafronov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good, approving.

@papafe
papafe merged commit ef8aca9 into mongodb-labs:master Oct 8, 2026
79 of 82 checks passed
@papafe
papafe deleted the DRIVERS-3663-windows branch October 8, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants