Skip to content

filter gif from lint rules #5995

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

Closed
wants to merge 1 commit into from
Closed

Conversation

cccclai
Copy link
Contributor

@cccclai cccclai commented Oct 8, 2024

Summary:
when running lintrunner -a, it shows

(executorch) chenlai@chenlai-mbp executorch % lintrunner -a
Warning: Could not find a lintrunner config at: '.lintrunner.private.toml'. Continuing without using configuration file.
  UFMT success!
  CLANGFORMAT success!
  FLAKE8 success!
  NEWLINE failure
  CMAKE success!
  ETCAPITAL success!


>>> Lint for examples/models/llama2/Android3_2_1B_bf16.gif:

  Error (NEWLINE) Decoding failure
    utf-8 decoding failed due to UnicodeDecodeError:
    'utf-8' codec can't decode byte 0xf7 in position 10: invalid start byte


>>> Lint for examples/models/llama2/Android3_2_3B_SpinQuant.gif:

  Error (NEWLINE) Decoding failure
    utf-8 decoding failed due to UnicodeDecodeError:
    'utf-8' codec can't decode byte 0xf7 in position 10: invalid start byte


>>> Lint for examples/models/llama2/llama_via_xnnpack.gif:

  Error (NEWLINE) Decoding failure
    utf-8 decoding failed due to UnicodeDecodeError:
    'utf-8' codec can't decode byte 0xf7 in position 10: invalid start byte


>>> Lint for examples/models/llava/llava_via_xnnpack.gif:

  Error (NEWLINE) Decoding failure
    utf-8 decoding failed due to UnicodeDecodeError:
    'utf-8' codec can't decode byte 0xd0 in position 6: invalid continuation
    byte
Successfully applied all patches.

Thanks kirklandsign for identifying the root cause!

Differential Revision: D64059251

Summary:
when running `lintrunner -a`, it shows
```
(executorch) chenlai@chenlai-mbp executorch % lintrunner -a
Warning: Could not find a lintrunner config at: '.lintrunner.private.toml'. Continuing without using configuration file.
  UFMT success!
  CLANGFORMAT success!
  FLAKE8 success!
  NEWLINE failure
  CMAKE success!
  ETCAPITAL success!


>>> Lint for examples/models/llama2/Android3_2_1B_bf16.gif:

  Error (NEWLINE) Decoding failure
    utf-8 decoding failed due to UnicodeDecodeError:
    'utf-8' codec can't decode byte 0xf7 in position 10: invalid start byte


>>> Lint for examples/models/llama2/Android3_2_3B_SpinQuant.gif:

  Error (NEWLINE) Decoding failure
    utf-8 decoding failed due to UnicodeDecodeError:
    'utf-8' codec can't decode byte 0xf7 in position 10: invalid start byte


>>> Lint for examples/models/llama2/llama_via_xnnpack.gif:

  Error (NEWLINE) Decoding failure
    utf-8 decoding failed due to UnicodeDecodeError:
    'utf-8' codec can't decode byte 0xf7 in position 10: invalid start byte


>>> Lint for examples/models/llava/llava_via_xnnpack.gif:

  Error (NEWLINE) Decoding failure
    utf-8 decoding failed due to UnicodeDecodeError:
    'utf-8' codec can't decode byte 0xd0 in position 6: invalid continuation
    byte
Successfully applied all patches.
```
Thanks kirklandsign for identifying the root cause!

Differential Revision: D64059251
Copy link

pytorch-bot bot commented Oct 8, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/5995

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 5e72cf9 with merge base f0112a2 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 8, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64059251

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in fe083e5.

@cccclai
Copy link
Contributor Author

cccclai commented Oct 8, 2024

@pytorchbot cherry-pick --onto release/0.4 -c regression

pytorchbot pushed a commit that referenced this pull request Oct 8, 2024
Summary:
Pull Request resolved: #5995

when running `lintrunner -a`, it shows
```
(executorch) chenlai@chenlai-mbp executorch % lintrunner -a
Warning: Could not find a lintrunner config at: '.lintrunner.private.toml'. Continuing without using configuration file.
  UFMT success!
  CLANGFORMAT success!
  FLAKE8 success!
  NEWLINE failure
  CMAKE success!
  ETCAPITAL success!

>>> Lint for examples/models/llama2/Android3_2_1B_bf16.gif:

  Error (NEWLINE) Decoding failure
    utf-8 decoding failed due to UnicodeDecodeError:
    'utf-8' codec can't decode byte 0xf7 in position 10: invalid start byte

>>> Lint for examples/models/llama2/Android3_2_3B_SpinQuant.gif:

  Error (NEWLINE) Decoding failure
    utf-8 decoding failed due to UnicodeDecodeError:
    'utf-8' codec can't decode byte 0xf7 in position 10: invalid start byte

>>> Lint for examples/models/llama2/llama_via_xnnpack.gif:

  Error (NEWLINE) Decoding failure
    utf-8 decoding failed due to UnicodeDecodeError:
    'utf-8' codec can't decode byte 0xf7 in position 10: invalid start byte

>>> Lint for examples/models/llava/llava_via_xnnpack.gif:

  Error (NEWLINE) Decoding failure
    utf-8 decoding failed due to UnicodeDecodeError:
    'utf-8' codec can't decode byte 0xd0 in position 6: invalid continuation
    byte
Successfully applied all patches.
```
Thanks kirklandsign for identifying the root cause!

Reviewed By: kirklandsign

Differential Revision: D64059251

fbshipit-source-id: 6960ea7eb8108c622cf33870258bbe3da741e27e
(cherry picked from commit fe083e5)
@pytorchbot
Copy link
Collaborator

Cherry picking #5995

The cherry pick PR is at #6002 and it is recommended to link a regression cherry pick PR with an issue. The following tracker issues are updated:

Details for Dev Infra team Raised by workflow job

jackzhxng pushed a commit that referenced this pull request Oct 9, 2024
filter gif from lint rules (#5995)

Summary:
Pull Request resolved: #5995

when running `lintrunner -a`, it shows
```
(executorch) chenlai@chenlai-mbp executorch % lintrunner -a
Warning: Could not find a lintrunner config at: '.lintrunner.private.toml'. Continuing without using configuration file.
  UFMT success!
  CLANGFORMAT success!
  FLAKE8 success!
  NEWLINE failure
  CMAKE success!
  ETCAPITAL success!

>>> Lint for examples/models/llama2/Android3_2_1B_bf16.gif:

  Error (NEWLINE) Decoding failure
    utf-8 decoding failed due to UnicodeDecodeError:
    'utf-8' codec can't decode byte 0xf7 in position 10: invalid start byte

>>> Lint for examples/models/llama2/Android3_2_3B_SpinQuant.gif:

  Error (NEWLINE) Decoding failure
    utf-8 decoding failed due to UnicodeDecodeError:
    'utf-8' codec can't decode byte 0xf7 in position 10: invalid start byte

>>> Lint for examples/models/llama2/llama_via_xnnpack.gif:

  Error (NEWLINE) Decoding failure
    utf-8 decoding failed due to UnicodeDecodeError:
    'utf-8' codec can't decode byte 0xf7 in position 10: invalid start byte

>>> Lint for examples/models/llava/llava_via_xnnpack.gif:

  Error (NEWLINE) Decoding failure
    utf-8 decoding failed due to UnicodeDecodeError:
    'utf-8' codec can't decode byte 0xd0 in position 6: invalid continuation
    byte
Successfully applied all patches.
```
Thanks kirklandsign for identifying the root cause!

Reviewed By: kirklandsign

Differential Revision: D64059251

fbshipit-source-id: 6960ea7eb8108c622cf33870258bbe3da741e27e
(cherry picked from commit fe083e5)

Co-authored-by: Chen Lai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants