You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7ed0655
Browse filesBrowse the repository at this point in the historyBrowse files
fix(files): keep file search and compiled-doc reads off write locks (#9023)
* fix(files): keep file search and compiled-doc reads off write locks
- Copilot search delivery no longer takes the Project mutex, the org-wide
permission-group lock, or FOR UPDATE on permission rows; the transaction
only reads, and admission runs after commit.
- A matched file that changed between search and delivery gets unknown
provenance (preview withheld) instead of failing the whole search; a file
moved out of the folder scope is dropped; owned-input checks run only for
current sources.
- Serving a compiled doc skips the locked search requeue when the current
revision is already built from the artifact, bounds the locked path with a
1s lock_timeout, and never fails a read whose bytes were fetched.
- Index coverage derives pending files as the remainder so the dependency
check runs once per ready file.
- Document reference scanning skips sources with no reference marker and
loads the TypeScript compiler on first parse; unparseable doc source is
indexed as source text again.
* fix(files): validate search delivery against one snapshot and count returned hits
Run the Copilot delivery validation at repeatable read so the folder scope and the file rows
come from one snapshot, and report count as the hits actually returned after out-of-scope
hits are dropped.
* refactor(files): move rendered-artifact search requeue into artifact-ready
Route the bounded requeue through configureFileSearchTransaction so it carries the same statement and transaction guards as every other file search transaction, keep the lock-free pre-check private, drop the redundant require cache, and use line comments inside function bodies.
0 commit comments