feat: validate package availability before queuing builds#1630
Open
aparcar wants to merge 1 commit intoopenwrt:mainfrom
Open
feat: validate package availability before queuing builds#1630aparcar wants to merge 1 commit intoopenwrt:mainfrom
aparcar wants to merge 1 commit intoopenwrt:mainfrom
Conversation
Adds an opt-in `validate_packages` setting that rejects build requests naming packages not present in the upstream index or in any user-supplied repository, avoiding the cost of a full ImageBuilder run for typos and dropped packages. Sets are cached in Redis (24h for releases, 15m for snapshots and user repos). Apk repos pointing at packages.adb resolve to the sibling index.json. Off by default; intended for the main server. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Signed-off-by: Paul Spooren <mail@aparcar.org>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1630 +/- ##
===========================================
+ Coverage 80.75% 91.47% +10.71%
===========================================
Files 15 20 +5
Lines 977 2204 +1227
===========================================
+ Hits 789 2016 +1227
Misses 188 188 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Adds an opt-in
validate_packagessetting that rejects build requests naming packages not present in the upstream index or in any user-supplied repository, avoiding the cost of a full ImageBuilder run for typos and dropped packages. Sets are cached in Redis (24h for releases, 15m for snapshots and user repos). Apk repos pointing at packages.adb resolve to the sibling index.json. Off by default; intended for the main server.