Skip to content

Add cached executions filtration #1932

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

Merged
merged 4 commits into from
Mar 13, 2023
Merged

Conversation

tamarinvs19
Copy link
Collaborator

@tamarinvs19 tamarinvs19 commented Mar 13, 2023

Description

Added new CachedFeedback which we can filter and do not collect to executions but save to limitManager.

Now when we get OutOfMemoryError we will stop process and render generated tests.

Also added a new counter in limitManager for fuzzed objects with FakeNode-s

Fixes #1928

How to test

Manual tests

For methods without arguments (exclude self) in empty class we can fuzz only one execution. Now we should to save only one execution and use memory only for one execution.

Try to generate tests with a large timeout:

class Dummy:
    def propagate(self):
        return [self, self]

Expected: one successfully generated test without memory error

Self-check list

Check off the item if the statement is true. Hint: [x] is a marked item.

Please do not delete the list or its items.

  • I've set the proper labels for my PR (at least, for category and component).
  • PR title and description are clear and intelligible.
  • I've added enough comments to my code, particularly in hard-to-understand areas.
  • The functionality I've repaired, changed or added is covered with automated tests.
  • Manual tests have been provided optionally.
  • The documentation for the functionality I've been working on is up-to-date.

@tamarinvs19 tamarinvs19 added ctg-enhancement New feature, improvement or change request comp-fuzzing Issue is related to the fuzzing lang-python Issue is related to python support labels Mar 13, 2023
@tamarinvs19 tamarinvs19 requested a review from tochilinak March 13, 2023 09:31
@tamarinvs19 tamarinvs19 self-assigned this Mar 13, 2023
@tamarinvs19 tamarinvs19 enabled auto-merge (squash) March 13, 2023 10:13
@tamarinvs19 tamarinvs19 merged commit 2f51bc6 into main Mar 13, 2023
@tamarinvs19 tamarinvs19 deleted the tamarinvs19/fix-execution-counter branch March 13, 2023 10:22
denis-fokin pushed a commit that referenced this pull request Mar 13, 2023
CaelmBleidd pushed a commit that referenced this pull request Mar 14, 2023
tamarinvs19 added a commit that referenced this pull request Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-fuzzing Issue is related to the fuzzing ctg-enhancement New feature, improvement or change request lang-python Issue is related to python support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor python execution counter
2 participants