cockroachdb / cockroachdb/errors

Require a context in assertion errors

Abierto
#18 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Go
Estrellas
2.5k
Forks
74
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Suggested by @andreimatei in https://github.com/cockroachdb/cockroach/pull/43032#pullrequestreview-334181315:

`AssertionFailedf` is usually called in functions with a `context.Context` available.

It would be beneficial to capture the context tags to provide more details during troubleshooting.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Start by locating AssertionFailedf and the functions that call it with a context.Context. Trace how assertion errors are constructed and how context tags are available there. Done means assertion errors consistently require or receive the context and include its tags for troubleshooting, with coverage for the updated behavior.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
go
Área
backend
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Activo
Claridad
Bastante claro
Aptitud para principiantes
48/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.