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

Handle some git exceptions when initializing GitDagBundle #46253

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ephraimbuddy
Copy link
Contributor

Permission error raises GitCommandError, and if the cloned path is manually removed, it will result in a path not found error when cloning from the bare repo path

airflow/dag_processing/bundles/git.py Outdated Show resolved Hide resolved
Comment on lines +178 to +181
# log the error to appear in dag-processor stdout and raise exception to appear
# in the dag-processor logs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fyi, these will be combined here soon - since it's no longer a standalone component, it'll all end up in stdout/stderr. Let's leave the log part out in prep.

airflow/dag_processing/bundles/git.py Outdated Show resolved Hide resolved
ephraimbuddy and others added 3 commits January 30, 2025 09:32
Permission error raises GitCommandError, and if the cloned path is manually removed,
it will result in a path not found error when cloning from the bare repo path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants