Batch GitOps YAML parsing and release the cache lock before validation #291
Loading…
Reference in a new issue
No description provided.
Delete branch "perf/gitops-validator-cache"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Compile the policy selector in Go and parse source YAML in one bounded batch. Fetch only immutable required revisions into a retained Git object cache. Keep cache initialization, fetch and clone preparation under a repository lock; run checkout and validation independently. Preserve exact policy rejection and changed-path coverage.
Validation: real malformed and multi-document YAML, strict policy fixtures, pull-only commits, warm fetch reuse, concurrent isolated checkouts and pruning retention. Twenty matched local YAML pairs reduced median46-file parsing from756.53ms to21.36ms; cluster pipeline savings remain to be measured. Validatorv10 must be published and pinned before consumers enable shared cache mounts.