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

Schemathesis stuck on large schemas #945

Closed
Stranger6667 opened this issue Dec 25, 2020 · 0 comments · Fixed by #946
Closed

Schemathesis stuck on large schemas #945

Stranger6667 opened this issue Dec 25, 2020 · 0 comments · Fixed by #946
Assignees
Labels
Difficulty: Hard Complex, needs deep understanding Priority: Medium Planned for regular releases Specification: OpenAPI Specific to OpenAPI

Comments

@Stranger6667
Copy link
Member

Stranger6667 commented Dec 25, 2020

If the input schema is complex enough, then Schemathesis might be stuck and eventually die with out-of-memory.

Example schema - https://gist.githubusercontent.com/piotr-iohk/66270947ddc8fd31540b0377153fa411/raw/5af278fcf02414da17f4f8c622dcf182638034c1/gistfile1.txt

Many schemas from https://github.com/APIs-guru/openapi-directory cause the same effect.

My current assumption is that it is caused by the hypothesis-jsonschema canonicalisation approach, but I need to check details deeper.

python-jsonschema/hypothesis-jsonschema#69 might help.

Update. I was wrong that the problem is with the data generation layer. It actually happens when Schemathesis tries to inline all references

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty: Hard Complex, needs deep understanding Priority: Medium Planned for regular releases Specification: OpenAPI Specific to OpenAPI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant