| 1 |
From: Reinhard Tartler <[email protected]> |
| 2 |
Date: Mon, 21 Sep 2026 18:10:11 -0400 |
| 3 |
Subject: plumbing/format/packfile: Do not run fixture extraction tests in |
| 4 |
parallel |
| 5 |
|
| 6 |
go-git-fixtures uses an unsynchronized package-level global map to cache |
| 7 |
extracted fixture files. When TestChecksumMismatch and TestMalformedPack |
| 8 |
run concurrently, simultaneous writes to this map cause a fatal Go runtime |
| 9 |
panic ("fatal error: concurrent map writes", Debian bug #1138090). |
| 10 |
|
| 11 |
Remove t.Parallel() from these two tests so they run sequentially. |
| 12 |
|
| 13 |
Bug: https://github.com/go-git/go-git/issues/2416 |
| 14 |
Bug-Debian: https://bugs.debian.org/1138090 |
| 15 |
Forwarded: https://github.com/go-git/go-git/issues/2416 |
| 16 |
Last-Update: 2026-09-21 |
| 17 |
--- |
| 18 |
plumbing/format/packfile/parser_test.go | 4 ---- |
| 19 |
1 file changed, 4 deletions(-) |
| 20 |
|
| 21 |
diff --git a/plumbing/format/packfile/parser_test.go b/plumbing/format/packfile/parser_test.go |
| 22 |
index 56e00d2..469afd2 100644 |
| 23 |
--- a/plumbing/format/packfile/parser_test.go |
| 24 |
+++ b/plumbing/format/packfile/parser_test.go |
| 25 |
@@ -86,8 +86,6 @@ func (s *ParserSuite) TestParserHashes(c *C) { |
| 26 |
} |
| 27 |
|
| 28 |
func TestChecksumMismatch(t *testing.T) { |
| 29 |
- t.Parallel() |
| 30 |
- |
| 31 |
f, err := os.CreateTemp(t.TempDir(), "temp.pack") |
| 32 |
require.NoError(t, err) |
| 33 |
t.Cleanup(func() { |
| 34 |
@@ -115,8 +113,6 @@ func TestChecksumMismatch(t *testing.T) { |
| 35 |
} |
| 36 |
|
| 37 |
func TestMalformedPack(t *testing.T) { |
| 38 |
- t.Parallel() |
| 39 |
- |
| 40 |
f, err := os.CreateTemp(t.TempDir(), "temp.pack") |
| 41 |
require.NoError(t, err) |
| 42 |
t.Cleanup(func() { |