memory: hand-off test "does not let a writer that created the lock while a live one was aside run beside its holder" fails intermittently on Windows since #5623
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 48/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- node.js, typescript
Direção de pesquisa
Start with file-lock.test.ts and the withFileLock hand-off test named in the issue, then trace the lock handling in src/memory/index.ts, especially the Windows rename and EPERM pending-delete path. Reproduce the intermittent failure on Windows and determine whether the timing assumption is in the test or the hand-off logic. Done means the test passes deterministically without retries, and the hand-off window is closed if the cause is in index.ts.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Problem
Since #5623 (the fix for #5565) merged into v2/main as 13725688, Test memory (Windows) fails intermittently on one of the tests it added:
file-lock.test.ts > withFileLock > hand-off windows (#5565) > does not let a writer that created the lock while a live one was aside run beside its holder
AssertionError: promise resolved "'breaker ran'" instead of rejecting
Seen three times in the first eight Windows runs after the merge, each on a change that does not touch src/memory/ code:
v2/mainpush at 77d1bf3f (job 135207834310)v2/mainpush at 640a8c31 (job 135217697055)- PR #5629 at 9db3591f (job 135219828145)
The same test passed on #5623's own Windows legs before it merged, and on Linux and macOS it has not failed.
Why it matters
The assertion is the one the fix exists for: the breaker took a successor's live lock aside, a third writer created its own lock in the gap, and the breaker then ran its operation instead of timing out. That is either a timing assumption in the test that does not hold on Windows, or the hand-off window #5565 meant to close still opening on Windows (for example around the rename that restores the lock, or the Windows EPERM pending-delete path). Which one is not yet established.
Every PR runs every server's tests, so until this is resolved about one Windows run in three goes red for reasons unrelated to the PR.
Expected
The test passes deterministically on Windows, with no retry, and if the cause is in index.ts rather than the test, the hand-off window is closed there as well.
- Linguagem predominante
- TypeScript
- Estrelas
- 92k
- Forks
- 12k
- Merge médio
- 3h 46min
- PRs com merge (30d)
- 206
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de modelcontextprotocol/servers
-
`interface-diff` discards the git error when resolving its default base and reports the wrong causeAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
modelcontextprotocol/servers#5636 ·
Mantenedores costumam responder em até 1 dia
-
chore server-memory v2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
modelcontextprotocol/servers#5634 ·
Mantenedores costumam responder em até 1 dia
-
documentation server-memory v2
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
modelcontextprotocol/servers#5609 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug server-memory v2
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 42/100
modelcontextprotocol/servers#5624 ·
Mantenedores costumam responder em até 1 dia
-
enhancement v2
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
modelcontextprotocol/servers#5611 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de modelcontextprotocol/servers
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia
-
e2e-failure ready-to-code
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 72/100
redhat-developer/rhdh-plugin-export-overlays#4794 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia
-
area: plugins documentation good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
CatVinci-Studio/Textus#727 ·
Mantenedores costumam responder em até 1 dia