Repository navigation
chore(ci): replace licensei with offline go-licenses checks - #2058
Merged
Merged
Conversation
paralta
force-pushed
the
chore/license-check
branch
from
August 21, 2026 15:44
da4b908 to
8cbae51
Compare
Signed-off-by: Catarina Paralta <[email protected]>
paralta
force-pushed
the
chore/license-check
branch
from
August 21, 2026 15:47
8cbae51 to
3523875
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
paralta
marked this pull request as ready for review
August 24, 2026 09:13
csirmazbendeguz
approved these changes
Aug 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The License gate was the slowest and least predictable job in CI. Across the last nine runs on
mainit 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 ingo-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 withoutsetup-go, so it had no module cache at all; it now uses one and no longer needsGITHUB_TOKEN.The job now takes 99 seconds end to end, of which 58s is
setup-gopopulating 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 ofgo mod downloadwhen 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.