Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
merged 3 commits into from
Mar 21, 2025
Merged

Conversation

cklin
Copy link
Contributor

@cklin cklin commented Mar 19, 2025

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

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

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.
@cklin cklin marked this pull request as ready for review March 19, 2025 20:04
@Copilot Copilot AI review requested due to automatic review settings March 19, 2025 20:04
@cklin cklin requested a review from a team as a code owner March 19, 2025 20:04
Copy link
Contributor

@Copilot Copilot AI left a 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

@cklin cklin requested review from henrymercer and removed request for henrymercer March 19, 2025 21:54
Copy link
Member

@NlightNFotis NlightNFotis left a 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.

src/git-utils.ts Show resolved Hide resolved
@cklin
Copy link
Contributor Author

cklin commented Mar 21, 2025

@NlightNFotis I added comments and tests as you suggested. PTAL. Thanks!

@cklin cklin requested a review from NlightNFotis March 21, 2025 18:36
Copy link
Member

@NlightNFotis NlightNFotis left a 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.

@cklin cklin merged commit bd1d9ab into main Mar 21, 2025
270 checks passed
@cklin cklin deleted the cklin/overlay-file-list branch March 21, 2025 19:30
@github-actions github-actions bot mentioned this pull request Mar 24, 2025
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.