Skip to content

3.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 29 Oct 03:15
· 1 commit to main since this release
e855e99

What's Changed

  • Added support for MongoDB 9 with MongoVersion.V9.
  • Added support for Windows on ARM64. MongoDB only publishes x64 builds for Windows, so they run through Windows 11's x64 emulation.
  • EphemeralMongo now requires MongoDB C# driver 3.9.0 or later, which no longer pulls vulnerable versions of SharpCompress and Snappier.
  • Downloaded archives, extracted binaries, temporary files and default data directories now live in the per-user local app data directory on every platform, instead of shared temp directories like /tmp. On Unix, that directory is restricted to its owner.
  • Versions and archive URLs from the MongoDB release documents are validated before use. Archives must be .zip or .tgz files downloaded over HTTPS from mongodb.org.
  • More reliable binary downloads:
    • Parallel test assemblies take turns through a cross-process lock instead of downloading the same archive several times.
    • Temporary HTTP failures (network errors, 408, 429 and 5xx) are retried with backoff, and a download that stalls for 60 seconds is aborted.
    • The release information (current.json and release.json) is cached on disk for NewVersionCheckTimeout and shared by all processes. When the download servers fail, the cached copy is used with a warning.
  • Retry starting mongod on another port when its port is already taken.
  • Rewrote MongoRunnerPool to be safe under concurrent use. Retired runners are stopped only once all their rentals are returned, failed startups are never handed out again, idle runners expire, and disposing the pool aborts pending startups.
  • mongoimport and mongoexport failures now throw an EphemeralMongoException that includes the command line and the tool's output, instead of going unnoticed.
  • Disposing a process that failed to start no longer hides the original startup exception.
  • Data directory cleanup skips directories still in use by a running mongod.
  • Fixed a few bugs:
    • Tar extraction could hang on a full output pipe. Errors now include tar's output.
    • Cancelling a wait on the cross-process mutex didn't release it.
    • The replica set's driver cluster kept monitoring in the background after the runner stopped.
    • MongoRunnerOptions now accepts null directories, and a null DataDirectoryLifetime turns cleanup off.
    • MongoDB versions are matched on <major>. instead of <major>.
    • Binaries are copied through a temporary file and renamed, so other processes never see a half-copied file.
  • NuGet packages are now attached to GitHub releases.

Pull Requests

  • chore(deps): update nuget dependencies (major) by @asimmon in #101
  • chore(deps): update actions/checkout action to v5 by @asimmon in #112
  • chore(deps): update dependency dotnet-sdk to v9.0.304 by @asimmon in #110
  • chore(deps): update nuget dependencies by @asimmon in #109
  • Update to .NET 10 SDK, C# 14 and latest packages by @asimmon in #123
  • Make CI, releases and binary downloads more reliable by @asimmon in #124
  • Fix tar extraction, mutex, replica set and options bugs by @asimmon in #125
  • Don't delete data directories in use by a running mongod by @asimmon in #126
  • Use per-user directories instead of /tmp on Linux by @asimmon in #127
  • Throw when mongoimport or mongoexport fails by @asimmon in #128
  • Keep the original startup error when disposing a mongo process by @asimmon in #129
  • Rewrite MongoRunnerPool by @asimmon in #130
  • Add support for MongoDB 9 by @asimmon in #131
  • Support Windows on ARM64 by @asimmon in #132
  • Update GitHub Actions to their latest major versions by @asimmon in #133
  • Keep files out of shared temp directories and harden CI against supply chain attacks by @asimmon in #134
  • Driver updates and vulnerability scan by @asimmon in #135
  • Fix the vulnerability scan report path in CI by @asimmon in #136
  • Cache MongoDB release information shared across processes by @asimmon in #137
  • Release on demand and tag only after publishing by @asimmon in #138
  • Attach the packages to GitHub releases by @asimmon in #139
  • Update the README for 3.3.0 by @asimmon in #140
  • Ignore data directories deleted during cleanup by @asimmon in #141

Full Changelog: 3.2.0...3.3.0