Skip to content

Fix problems with python execution #1995

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 5 commits into from
Mar 21, 2023

Conversation

tamarinvs19
Copy link
Collaborator

Description

  • no minimization when the tested module is also installed from pip (as Too many similar test in langchain project for get_color_mapping function #1945): order in sys.path have been changed
  • removed module coverage and replaced it with a builtins module trace
  • fixed problem with one execution timeout: previous one timeoutsocket.soTimeout had been used by some executions instead only one, current realization create a thread for execution and interrupt it after timeout
  • update utbot_executor, new version 1.3.1: more logs in DEBUG mode and fix problems with coverage

Fixes #1945

How to test

Manual tests

import time
def f(x: int):
    time.sleep(10)
    return x

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 lang-python Issue is related to python support ctg-bug-fix PR is fixing a bug labels Mar 20, 2023
@tamarinvs19 tamarinvs19 requested a review from tochilinak March 20, 2023 18:29
@tamarinvs19 tamarinvs19 self-assigned this Mar 20, 2023
@tamarinvs19 tamarinvs19 merged commit 8321fc2 into main Mar 21, 2023
@tamarinvs19 tamarinvs19 deleted the tamarinvs19/fix-execution-problems branch March 21, 2023 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ctg-bug-fix PR is fixing a bug lang-python Issue is related to python support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Too many similar test in langchain project for get_color_mapping function
2 participants