libgit2 / libgit2/libgit2sharp
Unstable tests based on AssertRefLogEntry
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- C#
- Estrellas
- 3.5k
- Forks
- 925
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Several tests are unstable and fail all too frequently on CI and perhaps locally.
From this run of this commit the windows agent happened to fail with this log:
X LibGit2Sharp.Tests.BranchFixture.CanCreateBranchFromCommit [63ms]
Error Message:
Assert.InRange() Failure
Range: (1/31/2020 4:54:25 AM +00:00 - 1/31/2020 4:54:25 AM +00:00)
Actual: 1/31/2020 4:54:24 AM +00:00
Stack Trace:
at LibGit2Sharp.Tests.TestHelpers.BaseFixture.AssertRefLogEntry(IRepository repo, String canonicalName, String message, ObjectId from, ObjectId to, Identity committer, DateTimeOffset before) in D:\a\libgit2sharp\libgit2sharp\LibGit2Sharp.Tests\TestHelpers\BaseFixture.cs:line 471
at LibGit2Sharp.Tests.BranchFixture.CanCreateBranchFromCommit() in D:\a\libgit2sharp\libgit2sharp\LibGit2Sharp.Tests\BranchFixture.cs:line 205
It looks to me like the before local variable is still set to a later value than is recorded in the commit at times, for whatever reason.
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.
Línea de trabajo
Empieza por AssertRefLogEntry en LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs y por la prueba fallida CanCreateBranchFromCommit en LibGit2Sharp.Tests/BranchFixture.cs. Ejecuta repetidamente la prueba afectada, inspecciona el fallo de CI referenciado y compara las marcas de tiempo del reflog esperadas y registradas. Se considera terminado cuando las pruebas afectadas ya no fallan de forma intermitente en CI ni localmente.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- csharp, git
- Área
- testing-qa
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 42/100