prometheus/prometheus
Vedi su GitHubTestDBReadOnly_Querier_NoAlteration is flaky on Windows
Open
#16.176 aperta il 6 mar 2025
component/testshelp wanted
Metriche repository
- Star
- (64.042 star)
- Metriche merge PR
- (Merge medio 11g 5h) (118 PR mergiate in 30 g)
Descrizione
recently here https://github.com/prometheus/prometheus/actions/runs/13678619527/job/38244942849?pr=16090
=== RUN TestDBReadOnly_Querier_NoAlteration/doesn't_truncate_corrupted_chunks
db_test.go:2701:
Error Trace: D:/a/prometheus/prometheus/tsdb/db_test.go:2701
Error: Received unexpected error:
delete corrupted, empty head chunk file during last file repair: remove C:\Users\RUNNER~1\AppData\Local\Temp\TestDBReadOnly_Querier_NoAlterationdoesnt_truncate_corrupted_chunks4149120796\001\chunks_head\000001: The process cannot access the file because it is being used by another process.
Test: TestDBReadOnly_Querier_NoAlteration/doesn't_truncate_corrupted_chunks
testing.go:1231: TempDir RemoveAll cleanup: remove C:\Users\RUNNER~1\AppData\Local\Temp\TestDBReadOnly_Querier_NoAlterationdoesnt_truncate_corrupted_chunks4149120796\001\chunks_head\000001: The process cannot access the file because it is being used by another process.
--- FAIL: TestDBReadOnly_Querier_NoAlteration (1.65s)
--- PASS: TestDBReadOnly_Querier_NoAlteration/doesn't_cut_chunks_while_replaying_WAL (0.04s)
--- FAIL: TestDBReadOnly_Querier_NoAlteration/doesn't_truncate_corrupted_chunks (1.61s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0xb0 pc=0x148f6ba]
goroutine 4018 [running]:
testing.tRunner.func1.2({0x169b120, 0x22f13d0})
C:/hostedtoolcache/windows/go/1.22.12/x64/src/testing/testing.go:1631 +0x24a
testing.tRunner.func1()
C:/hostedtoolcache/windows/go/1.22.12/x64/src/testing/testing.go:1634 +0x377
panic({0x169b120?, 0x22f13d0?})
C:/hostedtoolcache/windows/go/1.22.12/x64/src/runtime/panic.go:770 +0x132
github.com/prometheus/prometheus/tsdb.(*DB).Close(0x0)
D:/a/prometheus/prometheus/tsdb/db.go:1851 +0x3a
github.com/prometheus/prometheus/tsdb.TestDBReadOnly_Querier_NoAlteration.func5.1()
D:/a/prometheus/prometheus/tsdb/db_test.go:2699 +0x25
runtime.Goexit()
C:/hostedtoolcache/windows/go/1.22.12/x64/src/runtime/panic.go:626 +0x5e
testing.(*common).FailNow(0xc001828000)
C:/hostedtoolcache/windows/go/1.22.12/x64/src/testing/testing.go:1005 +0x4a
github.com/stretchr/testify/require.NoError({0x1d056f8, 0xc001828000}, {0x1d034c0, 0xc0041fe468}, {0x0, 0x0, 0x0})
C:/Users/runneradmin/go/pkg/mod/github.com/stretchr/testify@v1.9.0/require/require.go:1357 +0xca
github.com/prometheus/prometheus/tsdb.TestDBReadOnly_Querier_NoAlteration.func5(0xc001828000)
D:/a/prometheus/prometheus/tsdb/db_test.go:2701 +0x226
testing.tRunner(0xc001828000, 0xc0011361c8)
C:/hostedtoolcache/windows/go/1.22.12/x64/src/testing/testing.go:1689 +0xfb
created by testing.(*T).Run in goroutine 3980
C:/hostedtoolcache/windows/go/1.22.12/x64/src/testing/testing.go:1742 +0x390