File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -377,7 +377,11 @@ func (lc *LocalCache) withFlock(fn func() error) error {
377377 if err := flock (lockFile ); err != nil {
378378 return fmt .Errorf ("acquiring file lock: %w" , err )
379379 }
380- defer funlock (lockFile )
380+ defer func () {
381+ if err := funlock (lockFile ); err != nil {
382+ slog .Warn ("failed to release cache file lock" , "error" , err )
383+ }
384+ }()
381385
382386 return fn ()
383387}
Original file line number Diff line number Diff line change 77 "io"
88 "log/slog"
99 "strconv"
10- "sync"
1110 "sync/atomic"
1211 "time"
1312
@@ -47,7 +46,6 @@ type S3CacheConfig struct {
4746// additional mutex for internal state like hit/miss counters.
4847type S3Cache struct {
4948 cfg S3CacheConfig
50- mu sync.Mutex // guards nothing mutable beyond atomic counters; reserved for future use
5149
5250 hitCount atomic.Int64
5351 missCount atomic.Int64
Original file line number Diff line number Diff line change @@ -209,13 +209,6 @@ func splitPath(rawURL string) []string {
209209// isAuthError returns true if the error represents a 401 or 403 response
210210// from the GitHub API.
211211func isAuthError (err error ) bool {
212- type statusCoder interface {
213- Error () string
214- }
215- // Check for *github.APIError by inspecting the error chain.
216- type apiErr interface {
217- Error () string
218- }
219212 // Walk the error chain looking for an APIError with an auth status code.
220213 current := err
221214 for current != nil {
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ import (
2323// One Manager runs per process.
2424type Manager struct {
2525 cfg * config.Config
26- cfgMu sync.RWMutex // Protects cfg during hot reload.
2726 pools []* Pool
2827 metrics * metrics.Metrics
2928 logger * slog.Logger
Original file line number Diff line number Diff line change @@ -7,21 +7,28 @@ repo_url: https://github.com/nficano/github-runner
77
88theme :
99 name : material
10+ font :
11+ text : IBM Plex Sans
12+ code : JetBrains Mono
1013 palette :
11- - scheme : default
12- primary : deep purple
13- accent : purple
14+ - media : " (prefers-color-scheme: light)"
15+ scheme : default
16+ primary : teal
17+ accent : amber
1418 toggle :
15- icon : material/brightness-7
19+ icon : material/weather-night
1620 name : Switch to dark mode
17- - scheme : slate
18- primary : deep purple
19- accent : purple
21+ - media : " (prefers-color-scheme: dark)"
22+ scheme : slate
23+ primary : cyan
24+ accent : lime
2025 toggle :
21- icon : material/brightness-4
26+ icon : material/weather-sunny
2227 name : Switch to light mode
2328 features :
2429 - content.code.copy
30+ - navigation.tabs
31+ - navigation.instant
2532 - navigation.sections
2633 - navigation.expand
2734 - navigation.top
You can’t perform that action at this time.
0 commit comments