Skip to content

Commit c5fdadc

Browse files
reyortiz3claude
andauthored
Increase file lock timeout to fix flaky CI test (#4004)
The concurrent secrets test was failing on GitHub Actions with "context deadline exceeded" when 10 goroutines raced to acquire the same file lock. Each lock holder performs AES encryption and a disk write, which on slow CI runners could easily exceed the previous 1-second timeout when requests queue up. Increasing the timeout to 5 seconds provides enough headroom for concurrent operations on slow hardware without meaningfully impacting real-world responsiveness. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 5e246db commit c5fdadc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/fileutils/lock.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
const (
1515
// DefaultLockTimeout is the maximum time to wait for a file lock.
16-
DefaultLockTimeout = 1 * time.Second
16+
DefaultLockTimeout = 5 * time.Second
1717

1818
// defaultLockRetryInterval is the interval between lock acquisition attempts.
1919
defaultLockRetryInterval = 100 * time.Millisecond

0 commit comments

Comments
 (0)