Skip to content

ci: modernize lint runner and remove duplicate Go cache - #113

Merged
arran4 merged 2 commits into
mainfrom
fix/ci-lint-download-cache-42467176310
Nov 9, 2026
Merged

arran4 merged 2 commits into
mainfrom
fix/ci-lint-download-cache-42467176310

Conversation

@arran4

@arran4 arran4 commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Upgrade actions/checkout and actions/setup-go to Node.js 24-compatible v7, and golangci/golangci-lint-action to v9.
  • Pin golangci-lint to v2.15.0, replacing the legacy v1 installation selected by v6.
  • Remove duplicate actions/cache Go module/build caches from the lint and OS test jobs. Use actions/setup-go caching instead; the old cache restore produced tar "File exists" warnings.
  • Fix three genuine findings from golangci-lint v2 in cmd/jsonata-import/main.go: report deferred HTTP and gzip Close errors, and simplify the file-extension dispatch to a switch.

Incident

Scheduled CI run #302, on commit 2732f149, failed before lint could run due to repeated HTTP 504 responses downloading v1.64.8. The manual cache restore also suffered tar extraction collisions. The previous six scheduled runs succeeded on the same commit. Re-running the failed jobs succeeded (attempt 2), confirming that original failure was transient.

Verification

  • GitHub Actions PR checks: lint, go vet, OS test matrix, and GoReleaser check. The initial PR build correctly exposed three new v2 lint findings; those have now been fixed in a follow-up commit.
  • Application behavior is unchanged except logging uncommon Close errors in the JSONata importer.
  • CI lint is not disabled or suppressed; all findings must pass to make the PR ready.

Fixes the CI infrastructure failure in run 42467176310.

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Benchmark results (Linux):

goos: linux
goarch: amd64
pkg: github.com/arran4/lookup
cpu: AMD EPYC 7763 64-Core Processor                
BenchmarkFindNestedStruct-4              	 2529724	       472.3 ns/op	     176 B/op	       7 allocs/op
BenchmarkFindNestedMap-4                 	 1426227	       822.6 ns/op	     360 B/op	      22 allocs/op
BenchmarkFindIndex-4                     	 2926316	       410.6 ns/op	     272 B/op	       9 allocs/op
BenchmarkFilterChildren-4                	  285014	      3977 ns/op	    2728 B/op	      67 allocs/op
BenchmarkMapIndex-4                      	  382220	      3205 ns/op	    1768 B/op	      47 allocs/op
BenchmarkAnyContains-4                   	  319906	      3451 ns/op	    2304 B/op	      63 allocs/op
BenchmarkInterfaceorNested-4             	 8074626	       148.2 ns/op	      83 B/op	       5 allocs/op
BenchmarkElementOfSliceInt-4             	  380544	      3158 ns/op	       0 B/op	       0 allocs/op
BenchmarkElementOfSliceString-4          	   29894	     40205 ns/op	       0 B/op	       0 allocs/op
BenchmarkElementOfSliceStruct-4          	   15933	     75196 ns/op	   24000 B/op	    1000 allocs/op
BenchmarkUnionLarge-4                    	    5200	    216891 ns/op	  233956 B/op	    2041 allocs/op
BenchmarkUnionStructs-4                  	    2126	    549938 ns/op	   29112 B/op	     227 allocs/op
BenchmarkIntersectionHighCardinality-4   	    4741	    234715 ns/op	  247036 B/op	    2051 allocs/op
PASS
ok  	github.com/arran4/lookup	18.588s
?   	github.com/arran4/lookup/cmd/internal/cli	[no test files]
PASS
ok  	github.com/arran4/lookup/cmd/json-simpe-path	0.003s
PASS
ok  	github.com/arran4/lookup/cmd/json-simple-path	0.003s
PASS
ok  	github.com/arran4/lookup/cmd/jsonata-import	0.004s
PASS
ok  	github.com/arran4/lookup/cmd/yaml-simpe-path	0.003s
PASS
ok  	github.com/arran4/lookup/cmd/yaml-simple-path	0.003s
PASS
ok  	github.com/arran4/lookup/examples	0.004s
PASS
ok  	github.com/arran4/lookup/examples/advanced	0.004s
PASS
ok  	github.com/arran4/lookup/examples/collections	0.004s
PASS
ok  	github.com/arran4/lookup/examples/frontend_proof	0.003s
PASS
ok  	github.com/arran4/lookup/examples/interfacor1	0.004s
PASS
ok  	github.com/arran4/lookup/jsonata	0.004s

@arran4
arran4 marked this pull request as ready for review November 9, 2026 05:01
@arran4
arran4 merged commit d19edfb into main Nov 9, 2026
36 checks passed
@arran4
arran4 deleted the fix/ci-lint-download-cache-42467176310 branch November 9, 2026 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant