Skip to content
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

Normalize Path Separator in util.hash.py #365

Merged
merged 2 commits into from
Nov 27, 2023
Merged

Normalize Path Separator in util.hash.py #365

merged 2 commits into from
Nov 27, 2023

Conversation

strseb
Copy link
Contributor

@strseb strseb commented Nov 27, 2023

Hey! :)

I just did setup taskgraph locally on a windows machine, and wanted to run the full moz-vpn taskgraph. That it was trying to match taskcluster/scripts/toolchain/compile_openssl.ps1 vs the windows path taskcluster\scripts\toolchain\compile_openssl.ps1 therefore failed :c

@strseb strseb marked this pull request as ready for review November 27, 2023 13:11
@jcristau
Copy link
Contributor

Thanks for the patch @strseb.

Side note: a good followup would be to add test coverage, https://app.codecov.io/github/taskcluster/taskgraph/blob/main/src%2Ftaskgraph%2Futil%2Fhash.py shows _get_all_files currently doesn't have any :(

@jcristau jcristau requested review from a team and jcristau November 27, 2023 14:31
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.

Lgtm!

Yeah unfortunately Taskgraph doesn't get run from a Windows environment too often (as Decision tasks are typically Linux). So thanks for catching!

strseb and others added 2 commits November 27, 2023 11:49
On windows str(Purepath()) is used for matching the pattern
which will match nothing, given `\\` is in the string.
@ahal ahal merged commit 931ab6f into taskcluster:main Nov 27, 2023
6 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.

3 participants