Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upIssue #15723: Skip git ignored files in update-manifest. #19550
Conversation
highfive
commented
Dec 12, 2017
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @emilio (or someone else) soon. |
|
r? @emilio |
|
r? @jgraham |
|
That change will get upstreamed automatically, right? |
|
Yes. |
|
So I think this is the wrong fix. |
|
OK, I think I found the bug but I'm not sure, can I ask a few questions? servo/tests/wpt/web-platform-tests/tools/manifest/update.py Lines 18 to 26 in 687e637 git tree or filesystem tree, PathFilter finds no .gitignore in that directory and here servo/tests/wpt/web-platform-tests/tools/gitignore/gitignore.py Lines 90 to 112 in 687e637 ignore_path variable is not None. My question is, which of these solutions do you think would be the best? I'm not sure what's the expected behaviour in this situation.
I think I'll go with 1 and 3, please let me know what do you think about that. |
|
Let's add a .gitignore to tests/wpt/mozilla. |
|
@kregoslup This PR now contains a single commit that only adds a .gitignore file. Where did the rest of the work go? |
|
@jdm I figured out that the bug was only missing gitignore, so I amended previous commit and added only .gitignore file to path where it was missing. Do you mean that I should add tests? |
|
@bors-servo r+ |
|
|
Issue #15723: Skip git ignored files in update-manifest. <!-- Please describe your changes on the following line: --> This patch makes "./mach update-manifest" aware of .gitignore. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #15725 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because I don't know how to test it, I have tried mocking opening file and checking whether it exists but it's difficult to handle both in py2.7 and py3 and I think it would say too much about `PathFilter` internals. I have also tried mocking `PathFilter` but then I would be duplicating logic in tests. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19550) <!-- Reviewable:end -->
|
|
|
@bors-servo: retry |
|
|
|
|
kregoslup commentedDec 12, 2017
•
edited
This patch makes "./mach update-manifest" aware of .gitignore.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsPathFilterinternals. I have also tried mockingPathFilterbut then I would be duplicating logic in tests.This change is