libgit2 / libgit2/libgit2sharp
Unstable tests based on AssertRefLogEntry
オープン
まだ誰も着手していません。
- 主要言語
- C#
- スター
- 3.5k
- フォーク
- 925
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs の AssertRefLogEntry と、LibGit2Sharp.Tests/BranchFixture.cs の失敗している CanCreateBranchFromCommit テストから始めます。対象のテストを繰り返し実行し、参照されている CI の失敗を調査して、期待される reflog のタイムスタンプと記録されたタイムスタンプを比較します。対象のテストが CI 上でもローカルでも断続的に失敗しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, git
- 領域
- testing-qa
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100