offline-transactions interruption oracle fails when a random sample misses a landing
Mantenedores costumam responder em até 1 dia
Um pull request relacionado já foi integrado.
- #2144 de @KyleAMathews — integrado
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- Meio dia
- Facilidade para iniciantes
- 62/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- typescript
- Domínio
- testing
Direção de pesquisa
Start with packages/offline-transactions/tests/interruption-settlement-oracle.property.test.ts, where the failing assertion compares the landings reached by a random sample with the full landing list. Run the test several times to reproduce the intermittent failure. Done means the coverage check no longer depends on random sampling (either fixed named histories per landing, or moved to the fixed-seed campaign), and the random law check still runs and passes repeatedly.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Summary
packages/offline-transactions/tests/interruption-settlement-oracle.property.test.ts fails at random. The failing check asserts that the random histories cover every interruption landing. It is not a behavior check. When a run draws no history that reaches a refused landing, the test fails.
Failure
The test "keeps settlement and ownership for an interruption at any microtask turn" fails with:
AssertionError: interruption landings: expected [ 'dispose issued', …(5) ] to deeply equal [ 'dispose issued', …(7) ]
- "dispose refused",
- "leadership refused",
It failed CI on #2128, which does not change offline-transactions. CI ran it because it tests the pull request merged with main. On main (cd92156d6), 1 of 3 local runs failed the same way.
Cause
The check compares the landings that one random sample reached with the full set of landings. A sample of config.runs histories does not always reach every landing, especially the refused ones. Any run that misses one fails, even when every history it does run satisfies the law.
Suggested fix
- Prove coverage with fixed, named histories (one per landing), not with a random sample.
- Or move the coverage check to the fixed-seed campaign only, where the sample is deterministic.
- Keep the random campaign for the settlement and ownership law itself.
- Linguagem predominante
- TypeScript
- Estrelas
- 3.9k
- Forks
- 272
- Merge médio
- 1d 21min
- PRs com merge (30d)
- 241
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 TanStack/db
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 8/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 5/100
TanStack/db#2186 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
query-db: a Query refetch that joins a loader's refetch acquisition does not report shifted pagesAberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 8/100
TanStack/db#2185 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
A live query's preload on an on-demand collection waits for any persisting optimistic transactionAberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 12/100
Mantenedores costumam responder em até 1 dia
Todas as issues de TanStack/db
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
callstackincubator/simlock#639 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100
aws/agentcore-cli#2606 ·
Mantenedores costumam responder em até 1 dia
-
ai-driven-qa bug Cosmetic
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
Mantenedores costumam responder em até 1 dia
-
ai-driven-qa bug claude Minor
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
linagora/twake-mail-admin#301 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 1 dia