Skip to content

Conversation

@malfet
Copy link
Contributor

@malfet malfet commented Mar 16, 2021

Also disable test_run_mypy from test_type_hints.py as it is running as part of GHA

@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Mar 16, 2021

💊 CI failures summary and remediations

As of commit c02e219 (more details on the Dr. CI page):



❄️ 1 failure tentatively classified as flaky

but reruns have not yet been triggered to confirm:

See CircleCI build pytorch_cpp_doc_build (1/1)

Step: "Doc Build and Push" (full log | diagnosis details | 🔁 rerun) ❄️

Mar 16 20:39:34 E: Unable to correct problems, you have held broken packages.
Mar 16 20:39:34 Building dependency tree...
Mar 16 20:39:34 Reading state information...
Mar 16 20:39:34 Some packages could not be installed. This may mean that you have
Mar 16 20:39:34 requested an impossible situation or if you are using the unstable
Mar 16 20:39:34 distribution that some required packages have not yet been created
Mar 16 20:39:34 or been moved out of Incoming.
Mar 16 20:39:34 The following information may help to resolve the situation:
Mar 16 20:39:34 
Mar 16 20:39:34 The following packages have unmet dependencies:
Mar 16 20:39:34  doxygen : Depends: libclang1-3.8 (>= 3.2) but it is not going to be installed
Mar 16 20:39:34 E: Unable to correct problems, you have held broken packages.


Exited with code exit status 100


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@malfet malfet force-pushed the malfet/add-mypy-lint-step branch from 05b609b to c02e219 Compare March 16, 2021 19:59
@malfet malfet requested review from a team and ezyang March 16, 2021 20:00
@malfet malfet added the module: typing Related to mypy type annotations label Mar 16, 2021
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

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

TBH, it's probably safe to just delete the test entirely

self.fail(f"mypy failed:\n{stdout}")

@unittest.skipIf(not HAVE_MYPY, "need mypy")
@unittest.skipIf(os.getenv("IN_CI") is not None, "Already running in CI during lint")
Copy link
Contributor

Choose a reason for hiding this comment

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

reran this locally on base commit shown 1282 file touched instead of 1281. wondering if we missed something.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for pointing it out. Will do the comparison in the followup PR.

set -eux
time python -mtools.generate_torch_version --is_debug=false
time python -mtools.codegen.gen -s aten/src/ATen -d build/aten/src/ATen
time python -mtools.pyi.gen_pyi --native-functions-path aten/src/ATen/native/native_functions.yaml --deprecated-functions-path "tools/autograd/deprecated.yaml"
Copy link
Contributor

Choose a reason for hiding this comment

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

For future work; I'd love it if we can consolidate this into a single command to run

@malfet
Copy link
Contributor Author

malfet commented Mar 18, 2021

@ezyang I think it's good to keep the test in place, so that people can validate it locally if they choose to.

@ezyang
Copy link
Contributor

ezyang commented Mar 18, 2021

@ezyang I think it's good to keep the test in place, so that people can validate it locally if they choose to.

Sure, local validation is a good idea. I guess I'm just kind of hoping that in the glorious future you can just do something like python setup.py codegen; mypy and that's literally all you need to do to validate.

@facebook-github-bot
Copy link
Contributor

@malfet merged this pull request in a52e295.

@malfet malfet deleted the malfet/add-mypy-lint-step branch March 18, 2021 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed Merged module: typing Related to mypy type annotations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants