Skip to content

Conversation

@albanD
Copy link
Collaborator

@albanD albanD commented Jan 8, 2020

Stack from ghstack:

Differential Revision: D19314763

@kostmo
Copy link
Member

kostmo commented Jan 8, 2020

💊 CircleCI build failures summary and remediations

As of commit dcd22a9:

Commit dcd22a9 was recently pushed. Waiting for builds...


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 on the GitHub issue tracker.

This comment has been revised 1 time.

Copy link
Member

@houseroad houseroad left a comment

Choose a reason for hiding this comment

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

The test is still broken

TypeError: append() takes exactly one argument (2 given)

So create a tuple? :-)

albanD added a commit that referenced this pull request Jan 8, 2020
@albanD
Copy link
Collaborator Author

albanD commented Jan 8, 2020

Yes I was doing something else, fixed now.

]

jit_test_functions = [
'_TorchScriptTesting_StackString::pop',
Copy link
Member

Choose a reason for hiding this comment

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

Nit: Also, just use _TorchScriptTesting_ should be enough, and you can directly add this to the whitelist, and add a comment at the end.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I wanted to be as restrictive as possible to discourage people from adding more until we get a proper solution for the problem. But I dont have a very strong opinion. You think the more generic check is better?

Copy link
Member

Choose a reason for hiding this comment

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

If so, we should add comments around jit_test_functions to warning the developers in future, and tell them don't add new testing functions. They will see this note when they try to add new items to white list in future.

Copy link
Member

@houseroad houseroad left a comment

Choose a reason for hiding this comment

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

Unblock, please merge after the BC CI is green :-)

@facebook-github-bot
Copy link
Contributor

@albanD merged this pull request in c299cb0.

@bhosmer
Copy link

bhosmer commented Jan 9, 2020

@albanD @houseroad sorry for the late comment, but - since these are exactly the signatures that are deliberately omitted when loading the new schemas from file (here), I'm curious why we wouldn't just explicitly factor the if "__torch__.torch.classes" in filter out into a helper and call it from both places?

No idea the history here, so apologies if the question is nonsense :)

@albanD
Copy link
Collaborator Author

albanD commented Jan 9, 2020

@bhosmer I am not sure. The nice thing with the whitelist is that we can give a timeout to make sure the issue get solved.

@bhosmer
Copy link

bhosmer commented Jan 9, 2020

@albanD yeah that's nice. I just hope the connection with the TODO logic in the new-schema file loader doesn't get lost. @houseroad that was a recent addition, right? Does that TODO have a definite future or do we risk having to rediscover the connection when the whitelist times these additions out?

@houseroad
Copy link
Member

#31982 will remove if "__torch__.torch.classes" in, which was only for a temporary fix. The whitelist works after we load all the new functions. However, sometimes, we get problem to load schemas, if "__torch__.torch.classes" in is to bypass the problem.

@bhosmer
Copy link

bhosmer commented Jan 9, 2020

@houseroad ah got it, thanks for the info!

@facebook-github-bot facebook-github-bot deleted the gh/albanD/25/head branch January 12, 2020 15:17
wuhuikx pushed a commit to wuhuikx/pytorch that referenced this pull request Jan 30, 2020
Summary: Pull Request resolved: pytorch#31949

Test Plan: Imported from OSS

Differential Revision: D19314763

Pulled By: albanD

fbshipit-source-id: b5eff0ed53a371d260596ca85d914c8bddb0a8aa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants