Skip to content

Conversation

@abdollahShahid
Copy link

Fixes #1874

.DS_Store files are macOS metadata files and should not be considered for
matching during the d2d pipeline. This change excludes .DS_Store resources
from the list of codebase files sent for PurlDB matching.

Copilot AI review requested due to automatic review settings December 28, 2025 14:50
Copy link

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 adds filtering to exclude macOS .DS_Store metadata files from PurlDB matching in the d2d pipeline, addressing issue #1874.

  • Adds exclusion of .DS_Store files from PurlDB resource matching

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

.to_codebase()
.no_status()
.has_value("sha1")
.exclude(path__endswith="/.DS_Store")
Copy link

Copilot AI Dec 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The filter path__endswith="/.DS_Store" will only match .DS_Store files that are in subdirectories (e.g., "foo/.DS_Store"), but will not match .DS_Store files at the root level (i.e., path is exactly ".DS_Store"). Consider using name=".DS_Store" instead to match all .DS_Store files regardless of their location, or use both conditions with an OR query. Alternatively, since other functions in this file already exclude files starting with "." using exclude(name__startswith="."), you might consider applying the same pattern here for consistency and to exclude all hidden files (including .DS_Store).

Suggested change
.exclude(path__endswith="/.DS_Store")
.exclude(name__startswith=".")

Copilot uses AI. Check for mistakes.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.exclude(path__endswith="/.DS_Store")
.exclude(path__endswith="/.DS_Store")

Signed-off-by: Muhammad Abdullah Shahid <108458621+abdollahShahid@users.noreply.github.com>
Signed-off-by: Muhammad Abdullah Shahid <108458621+abdollahShahid@users.noreply.github.com>
@abdollahShahid
Copy link
Author

DCO is fixed and all commits are signed off
Ready for review. Thanks!

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.

Do not match .DS_Store files

1 participant