Skip to content

Conversation

@bhearsum
Copy link
Contributor

Since #664 we started returning paths relative to the repository root from _find_matching_files. This meant that when we join base_path with path in hash_paths, we end up with base_path in there twice.

Fixing this without breaking mozpath.match means we need to join together the repository root and matched files after mozpatch.match. This, in turn, requires that some tests are able to call get_repository, which requires faking a repository being present.

As far as I can tell, this hasn't worked since #664, and possibly before that. We have very little usage of this function though, and I couldn't find any that used directories.

Since taskcluster#664 we started returning paths relative to the repository root from `_find_matching_files`. This meant that when we join `base_path` with `path` in `hash_paths`, we end up with `base_path` in there twice.

Fixing this without breaking `mozpath.match` means we need to join together the repository root and matched files after `mozpatch.match`. This, in turn, requires that some tests are able to call `get_repository`, which requires faking a repository being present.
@bhearsum bhearsum force-pushed the push-zusolxwrqukk branch from 5b946b7 to c3717c9 Compare July 22, 2025 13:54
@bhearsum bhearsum marked this pull request as ready for review July 22, 2025 14:12
@bhearsum bhearsum requested a review from a team as a code owner July 22, 2025 14:12
@bhearsum bhearsum requested a review from jcristau July 22, 2025 14:12
Copy link
Collaborator

@ahal ahal left a comment

Choose a reason for hiding this comment

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

Thanks, lgtm

@bhearsum bhearsum merged commit c529536 into taskcluster:main Jul 23, 2025
17 checks passed
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.

2 participants