typegoose / typegoose/mongodb-memory-server
Windows: spawn EFTYPE
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.8k
- Forks
- 191
- Avg merge
- 4h 25m
- Merged PRs (30d)
- 10
Description
Hi, it seems ocasionally when using mongodb-memory-server-core, it errors with spawn EFTYPE (on Windows at least).
I am not quite sure how it happens that the .exe ends up being corrupted/non-executable, but it seems to happen somewhat frequently.
The best solution might be to use a checksum before deciding "oh, the .exe already exists so I don't need to download it again".
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named in the issue. Start by tracing the Windows executable download and cache-reuse path in mongodb-memory-server-core, then reproduce the spawn EFTYPE failure with a corrupted cached binary. Done means invalid existing executables are detected before reuse and the affected Windows behavior is covered by a test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mongodb, typescript
- Domain
- testing, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100