feat: skip dependency issue checking for certain errors

This commit is contained in:
Joschka Braun
2023-04-14 12:59:38 +02:00
parent 5bf3f52234
commit 3ea75553e1
2 changed files with 5 additions and 1 deletions

View File

@@ -254,6 +254,10 @@ Please provide the complete file with the exact same syntax to wrap the code.
pass
def is_dependency_issue(self, error, docker_file: str):
# a few heuristics to quickly jump ahead
if any([error_message in error for error_message in ['AttributeError', 'NameError', 'AssertionError']]):
return False
conversation = self.gpt_session.get_conversation([])
answer = conversation.query(
f'Your task is to assist in identifying the root cause of a Docker build error for a python application. '

View File

@@ -86,7 +86,7 @@ def docker_file_task():
"The base image of the Dockerfile is FROM jinaai/jina:3.14.1-py39-standard. "
'The entrypoint is ENTRYPOINT ["jina", "executor", "--uses", "config.yml"]. '
'Make sure the all files are in the /workdir. '
"The Dockerfile runs the test during the build process. " + not_allowed(),
"The Dockerfile runs the test during the build process. ",
DOCKER_FILE_TAG,
DOCKER_FILE_NAME
)