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

Exclude deleted file from wpt lint #48178

Merged
merged 1 commit into from
Sep 14, 2024
Merged

Exclude deleted file from wpt lint #48178

merged 1 commit into from
Sep 14, 2024

Conversation

dev-ansung
Copy link
Contributor

@dev-ansung dev-ansung commented Sep 14, 2024

The current linter incorrectly flags capitalization changes in file names as case-insensitive duplicates. This change fixes the issue by filtering out deleted files from the git diff.

Copy link
Contributor

@jonathan-j-lee jonathan-j-lee left a comment

Choose a reason for hiding this comment

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

Two nits:

  1. Can you add some more background in the PR description (and the squashed commit message) about the FedCM.idl -> fedcm.idl false positive?
  2. Can you confirm that this fixes the presubmit on the imported CL? The wpt lint invocation is here.
@dev-ansung
Copy link
Contributor Author

Here is how the git diff looks like for recent CL with and without the diff-filter:

hi on] ansung@ans:~/chromium/src$ git diff --no-renames --name-only --diff-filter=d 86648f41ded63382f10c34f370e14fd8c38e2a42
third_party/blink/web_tests/external/WPT_BASE_MANIFEST_8.json
third_party/blink/web_tests/external/wpt/css/css-flexbox/aspect-ratio-intrinsic-size-008.html
third_party/blink/web_tests/external/wpt/css/css-flexbox/aspect-ratio-intrinsic-size-009.html
third_party/blink/web_tests/external/wpt/interfaces/css-fonts.idl
third_party/blink/web_tests/external/wpt/interfaces/digital-credentials.idl
third_party/blink/web_tests/external/wpt/interfaces/fedcm.idl
third_party/blink/web_tests/external/wpt/interfaces/ink-enhancement.idl
third_party/blink/web_tests/external/wpt/interfaces/observable.idl
third_party/blink/web_tests/external/wpt/interfaces/private-aggregation-api.idl
third_party/blink/web_tests/external/wpt/interfaces/shared-storage.idl
third_party/blink/web_tests/external/wpt/interfaces/uievents.idl
third_party/blink/web_tests/external/wpt/interfaces/webgpu.idl
[hi on] ansung@ans:~/chromium/src$ git diff --no-renames --name-only --diff-filter=d ^C
[hi on] ansung@ans:~/chromium/src$ git diff --no-renames --name-only 86648f41ded63382f10c34f370e14fd8c38e2a42
third_party/blink/web_tests/external/WPT_BASE_MANIFEST_8.json
third_party/blink/web_tests/external/wpt/css/css-flexbox/aspect-ratio-intrinsic-size-008.html
third_party/blink/web_tests/external/wpt/css/css-flexbox/aspect-ratio-intrinsic-size-009.html
third_party/blink/web_tests/external/wpt/interfaces/FedCM.idl
third_party/blink/web_tests/external/wpt/interfaces/css-fonts.idl
third_party/blink/web_tests/external/wpt/interfaces/digital-credentials.idl
third_party/blink/web_tests/external/wpt/interfaces/digital-identities.idl
third_party/blink/web_tests/external/wpt/interfaces/fedcm.idl
third_party/blink/web_tests/external/wpt/interfaces/ink-enhancement.idl
third_party/blink/web_tests/external/wpt/interfaces/observable.idl
third_party/blink/web_tests/external/wpt/interfaces/private-aggregation-api.idl
third_party/blink/web_tests/external/wpt/interfaces/shared-storage.idl
third_party/blink/web_tests/external/wpt/interfaces/uievents.idl
third_party/blink/web_tests/external/wpt/interfaces/webgpu.idl
The current linter incorrectly flags
capitalization changes in file names as
case-insensitive duplicates. This change fixes the
issue by filtering out deleted files from the git
diff.
@wpt-pr-bot
Copy link
Collaborator

There are no reviewers for this pull request. Please reach out on the chat room to get help with this. Thank you!

@dev-ansung dev-ansung merged commit 4c3d068 into master Sep 14, 2024
33 checks passed
@dev-ansung dev-ansung deleted the ansung branch September 14, 2024 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment