Commit Graph

10 Commits

Author SHA1 Message Date
3ef2dfc1ba [export] Implement cpp deserializer. (#136398)
Differential Revision: D63206258

This diff introduces a mechanism to generate a json-compatible deserializer in cpp using nlohmann json (already being used by AOTI).

Why we need this? Because there will be a lot of cases where people don't want to use Python to load the graph (e.g. cpp runtime), and instead they can use this header to deserialize the JSON graph.

Every time we call update_schema.py to update the schema, the header will be auto generated and included into the source files.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/136398
Approved by: https://github.com/angelayi
2024-11-14 16:34:59 +00:00
95a090fb56 [CI] Update bazel deps (#124076)
- Update `WORKSPACE` to actually use Python-3.10 as job name claims it is
- Get rid of unneeded `future` and `six` dependencies (Removed long time ago)
- Update `requests`, `typing-extensions` and `setuptools` to the latest releases
- Mark `tools/build/bazel/requirements.txt` as a generated file

This also updates idna to 3.7 that contains a fix for [CVE-2024-3651](https://github.com/advisories/GHSA-jjg7-2v4v-x38h), though as we are no shipping a binary with it, it does not expose CI system to any actual risks

TODOs:
 - Add periodic job that runs `pip compile` to update those to the latest version
 - Unify varios requirements .txt (i.e. bazel requirements and requirements-ci should be one and the same)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/124076
Approved by: https://github.com/seemethere, https://github.com/DanilBaibak
2024-04-15 20:39:50 +00:00
a9a17ce626 third_party: Fix build_bundled script
This script was hanging up on a couple of licenses not being parsed
correctly / not accounted for in the original pass through

Should resolve issues with tests not running 100% correctly

Signed-off-by: Eli Uriegas <eliuriegasfb.com>

Pull Request resolved: https://github.com/pytorch/pytorch/pull/76336

Signed-off-by: Eli Uriegas <eliuriegas@fb.com>

Approved by: https://github.com/ezyang
2022-04-25 21:06:03 +00:00
aed71885cd [GHF][BE] Add match_rules test
Also, mark gql_mocks as autogenerated and save them in pretty format

Pull Request resolved: https://github.com/pytorch/pytorch/pull/73975

Approved by: https://github.com/suo, https://github.com/seemethere
2022-03-09 19:43:29 +00:00
d2eda7f2f3 Add ciflow_ruleset.json generator along with gha ci (#63097)
Summary:
- Add `.github/generated-ciflow-ruleset.json` for ciflow-bot (so that we can generate better comments)
- The lint job also checks git dirty to make sure that the file is always in sync with ciflow configs

Pull Request resolved: https://github.com/pytorch/pytorch/pull/63097

Reviewed By: saketh-are

Differential Revision: D30263278

Pulled By: zhouzhuojie

fbshipit-source-id: bad68105a228e892ba071b29ecfdf433e1038054
2021-08-11 17:14:40 -07:00
c9d5325c52 [BE] shorten the name part 1 (#62402)
Summary:
This should address part of https://github.com/pytorch/pytorch/issues/62357.

1. rename all files 'generated-*' to make it clear, filename will not be in CI workflow name
2. remove all 'pytorch-' in names
3. make sure the build test shell scripts are adopted to new name

Next change should reduce more device related naming

Pull Request resolved: https://github.com/pytorch/pytorch/pull/62402

Reviewed By: malfet

Differential Revision: D30021959

Pulled By: walterddr

fbshipit-source-id: 64b21a2020e25a507101c09c010cb593d8ac4146
2021-08-02 07:56:55 -07:00
9d6cdf34a4 Annotate generated files in .gitattributes (#61995)
Summary:
Mark CI yaml files generated from templates as linguist-generated
Fixes https://github.com/pytorch/pytorch/issues/61994

Pull Request resolved: https://github.com/pytorch/pytorch/pull/61995

Reviewed By: seemethere

Differential Revision: D29832199

Pulled By: malfet

fbshipit-source-id: 86ad3a16b4d3e4f94c35b8f766a8556a07632419
2021-07-21 16:49:07 -07:00
799c947cf3 add .gitattributes for EOL conversion. (#9813)
Summary:
`.bat` file's EOL is LF, so a build is failed on some Windows machines.
To fix this, add `.gitattributes` and set batch file's EOL to CRLF.

Discussion is in #9677.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/9813

Differential Revision: D9026486

Pulled By: soumith

fbshipit-source-id: 341eaa677c35f8476a7eda1bac9827385072eb29
2018-07-31 18:38:43 -07:00
9ec0a2aef4 fbshipit-source-id: ba600fcd2b5cefc7621357bdeb05e24cea02e5af 2018-06-27 04:50:56 -07:00
fa8bdafa6c Prevent git autocrlf for bash scripts (#7949) 2018-05-30 18:09:10 -04:00