Proposal: Add optional `threadId` to `retryAttempts` entries
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 68/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- json
- Área
- documentation, testing
Línea de trabajo
Read the Attempt History Entry Object (§11), §9.25, and the schema's retryAttempts.items.properties. Update the specification and schema for the optional per-attempt threadId, including the stated unknown-thread behavior and worker identity guidance. Done when the example and schema reflect the proposal and existing 0.2.0 documents remain valid.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
Entries in retryAttempts have their own start and stop, but no threadId. The test object's threadId describes the final attempt (§9.3), so a consumer knows when an earlier attempt ran, but not on which thread or worker.
Timeline views need this. Today they have to guess, usually the final attempt's thread, and the guess is often wrong:
- Gradle test-retry runs retries in a second round, with new test JVMs.
- Playwright discards the worker process after a failure and runs the retry in a new one. It already reports
workerIndexandparallelIndexon eachTestResult, i.e. per attempt.
Producers can't add it themselves: §11 forbids unknown fields outside extra, and the schema sets additionalProperties: false on attempt items.
Proposal
- Add an OPTIONAL
threadId(string) to the Attempt History Entry Object (§11): "Identifies the thread or worker on which this attempt executed." Same format as the test object'sthreadId. - Reword §9.25 to "on which the final attempt executed".
- If an attempt entry has no
threadId, its thread is unknown; it is not implied to be the test object'sthreadId. (Inheriting would make every existing report claim that earlier attempts ran on the final attempt's thread.) - Within a document, a
threadIdvalue SHOULD identify one worker, so executions that share it ran one at a time. Producers that run tests in several processes or on several hosts SHOULD qualify it, for examplefork-2/Test worker.
Schema, in retryAttempts.items.properties:
"threadId": {
"description": "Thread or worker on which this attempt executed",
"type": "string"
}
Example: a test that failed on one Gradle fork and passed on retry on another.
{
"name": "checkout accepts a saved card",
"status": "passed",
"duration": 1200,
"start": 1761200410000,
"stop": 1761200411200,
"threadId": "fork-2/Test worker",
"retries": 1,
"retryAttempts": [
{
"attempt": 1,
"status": "failed",
"duration": 1500,
"start": 1761200400000,
"stop": 1761200401500,
"threadId": "fork-1/Test worker"
}
]
}
All of this is additive; every valid 0.2.0 document stays valid.
Context
I ran into this while building a timeline report for github-test-reporter (ctrf-io/github-test-reporter#279). Related: #58 (retry model, settled in #62), #57 and #73 (attempt identity). Happy to open the spec and schema PR.
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 103
- Forks
- 4
- Merge medio
- 1 h 3 min
- PR fusionados (30 d)
- 2
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ctrf-io/ctrf
-
Also Mention UUID version 8Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 76/100
ctrf-io/ctrf#59 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 18/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
Los mantenedores suelen responder en 1 día
-
CTRF 0.3.0 preparationAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
Los mantenedores suelen responder en 1 día
Todos los issues de ctrf-io/ctrf
Issues similares
-
content triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
🔍 External Broken Links ReportAbiertobug documentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
eclipse-edc/eclipse-edc.github.io#250 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
EESSI/docs#949 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
b4b docs-loc:codebase docs:minor-content-fix documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
graph-2026-11-simplify
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
sequant-io/sequant#1650 ·
Los mantenedores suelen responder en 1 día