improvement(audits): eliminate repeated parsing and scans - #7361
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Collaborator
Author
Contributor
Greptile SummaryThe PR improves audit performance by avoiding unnecessary parsing and caching repeated filesystem, schema, validation, executable-resolution, and OpenAPI generation work.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains; the previously reported Drizzle subpath audit gap is fixed by the shared module predicate and corresponding regression test.
|
| Filename | Overview |
|---|---|
| scripts/check-sql-date-binding.ts | The candidate scanner now uses the same exact-or-subpath Drizzle module predicate as downstream binding analysis, resolving the previously reported gap. |
| scripts/check-db-audit-candidates.test.ts | Adds regression coverage for aliased, escaped, and subpath Drizzle imports as well as pending-table candidates. |
| scripts/check-tool-request-boundary.ts | Reuses parsed syntax trees and skips parsing files that cannot contain direct tool-request access. |
| scripts/generate-docs.ts | Caches repeated reads, globs, and block parsing while consolidating visible and documentation icon-map generation. |
| scripts/openapi/generator.ts | Reuses generated OpenAPI documents to eliminate duplicate generation work. |
Reviews (3): Last reviewed commit: "fix(audits): include drizzle subpath imp..." | Re-trigger Greptile
waleedlatif1
force-pushed
the
codex/optimize-repo-audits
branch
from
September 1, 2026 18:46
1faeb19 to
2a3cea0
Compare
Collaborator
Author
Collaborator
Author
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.
Summary
Type of Change
Testing
bun run lintbun run apps/sim/scripts/check-block-registry.ts origin/stagingbun run check:auditsnode_modules/.bin/vitest run scripts/check-db-audit-candidates.test.ts scripts/check-egress-boundary.test.ts scripts/check-tool-request-boundary.test.ts scripts/check-icon-path-precision.test.tsChecklist
origin/staging