Skip to content

chore(ci): replace licensei with offline go-licenses checks - #2058

Merged
paralta merged 1 commit into
mainfrom
chore/license-check
Aug 25, 2026
Merged

paralta merged 1 commit into
mainfrom
chore/license-check

Conversation

@paralta

@paralta paralta commented Aug 21, 2026 •

Copy link
Copy Markdown
Member

The License gate was the slowest and least predictable job in CI. Across the last nine runs on main it ranged from 56 seconds to 40 minutes, and in that worst run 2382 of the 2412 seconds went to licensei's resolve step: it looks up every dependency over the network, serially, once per module with no dedup, and its cache key changes on every dependency bump, so evictions produce fully cold, rate-limited runs. This swaps in go-licenses, which classifies offline from the LICENSE files already in the Go module cache. The job was also the only Go job in the repo without setup-go, so it had no module cache at all; it now uses one and no longer needs GITHUB_TOKEN.

The job now takes 99 seconds end to end, of which 58s is setup-go populating the module cache and 29s is the license step — the classification pass itself is about 5 seconds. That 5s only holds with the modules on disk, so the job still pays for the cache: roughly 60s of go mod download when it is completely cold. The win is predictability as much as raw speed, since what remains is the same cached download every other Go job already pays, with no per-dependency network fan-out and no rate limits.

@paralta paralta changed the title perf(ci): replace licensei with offline go-licenses checks chore(ci): replace licensei with offline go-licenses checks Aug 21, 2026
@github-actions github-actions Bot added the size/S Denotes a PR that changes 50-199 lines label Aug 21, 2026
@paralta
paralta force-pushed the chore/license-check branch from da4b908 to 8cbae51 Compare August 21, 2026 15:44
@paralta
paralta force-pushed the chore/license-check branch from 8cbae51 to 3523875 Compare August 21, 2026 15:47
@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@paralta
paralta marked this pull request as ready for review August 24, 2026 09:13
@paralta
paralta requested a review from a team as a code owner August 24, 2026 09:13
@paralta
paralta merged commit 2e374bd into main Aug 25, 2026
35 checks passed
@paralta
paralta deleted the chore/license-check branch August 25, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Denotes a PR that changes 50-199 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants