[Bug]: Read test_sim's per-test list from the result bundle, so an interleaved xcodebuild line doesn't drop a test

Aberta
#563 1 comentário 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
73/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
typescript
Domínio
testing

Direção de pesquisa

Start with src/utils/xcodebuild-domain-results.ts and trace how summary.counts and testCases are populated when an .xcresult is available. Check whether the result bundle exposes the per-test records needed for testCases; done means the list includes every test represented by the summary counts, including tests whose xcodebuild output lines were interrupted.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Bug Description

test_sim's per-test list (data.testCases) sometimes has one entry fewer than the summary counts: 958 entries for 959 passed tests. The counts come from the result bundle and are right. The list comes from xcodebuild's output, and xcodebuild writes one of its own log messages into the middle of a test's result line, so that test's line no longer parses.

From the run's build log, one test's line, cut by the interleaved message:

Test case 'Loss2026-10-28 21:26:25.515 xcodebuild[8740:2857227] [MT] IDESchemeActionSDKRecord: operatingSystemBuild = <DVTBuildVersion 24A94232>, error = invalid…

That line should have read Test case 'Lossy…Tests.test_…()' passed on 'Clone 1 of iPhone 12 - xctest (…)' (0.001 seconds). The suite runs on parallel simulator clones; it happened in 4 of 10 runs of the same suite, and not always to the same test.

In src/utils/xcodebuild-domain-results.ts, summary.counts is read with extractTestSummaryCountsFromXcresult when there's an .xcresult, while testCases maps state.testCaseResults, parsed from xcodebuild's output. Reading the per-test list from the result bundle as well, when there is one, would keep the two consistent.

Debug Output

Left out because it lists local paths; happy to share it if it would help. Everything the report depends on is quoted above.

Editor/Client

Claude Code 2.1.312

MCP Server Version

2.7.1

LLM

Claude Opus 5.5

Steps to Reproduce
  1. Run test_sim on a large suite (here about 960 XCTest cases) that runs on parallel simulator clones.
  2. Compare data.summary.counts with data.testCases.length, and search the run's build log for a Test case ' line that a [MT] IDESchemeActionSDKRecord message interrupts.
Expected Behavior

testCases lists every test the counts include.

Actual Behavior

counts.passed is 959, testCases has 958 entries, and the build log has the interrupted line.

Linguagem predominante
TypeScript
Estrelas
6.6k
Forks
329
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de getsentry/MobileBuildMCP

Todas as issues de getsentry/MobileBuildMCP

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.