-
Notifications
You must be signed in to change notification settings - Fork 366
Overlay databases: use --overlay-changes #2816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This commit changes overlay database creation to use the --overlay-changes flag. It also implements Git-based file change detection to generate the list of files to extract for the overlay database.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the overlay database creation to use the new --overlay-changes flag and implements Git-based file change detection. The key changes include:
- Renaming parameters in the Git command functions for improved clarity.
- Adding new functions to retrieve Git file OIDs and compute file changes for overlay databases.
- Modifying the CodeQL command functions to use the overlay changes file and base database OIDs file.
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
lib/git-utils.js | Parameter renaming and addition of getFileOidsUnderPath. |
src/git-utils.ts | Parameter renaming and addition of getFileOidsUnderPath. |
src/overlay-database-utils.ts | New functions for writing and reading Git OIDs and overlay changes. |
lib/overlay-database-utils.js | ES module implementation of overlay database utilities. |
src/codeql.ts | Updates to use --overlay-changes flag and base OIDs file. |
lib/codeql.js | Similar updates as in src/codeql.ts. |
Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused. Learn more
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From a cursory look, this looks alright, but I would feel much more confident approving this if it came accompanied with some tests.
@NlightNFotis I added comments and tests as you suggested. PTAL. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, what I've seen makes sense to me. Thank you for the work here.
This PR changes overlay database creation to use the
--overlay-changes
flag. It also implements Git-based file change detection to generate the list of files to extract for the overlay database.Merge / deployment checklist