mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2026-01-03 13:54:21 +01:00
feat: skip dependency issue checking for certain errors
This commit is contained in:
@@ -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. '
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user