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

ci: Raise Documentation Generation Errors #7559

Merged
merged 3 commits into from
Aug 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions docs/generate_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ def run_command(command):
stderr=subprocess.PIPE,
)
except subprocess.CalledProcessError as e:
log_message(f"Error executing command: {e.cmd}")
log_message(e.output)
log_message(e.stderr)
raise (e)


def clone_from_github(repo, tag, org):
yinggeh marked this conversation as resolved.
Show resolved Hide resolved
Expand All @@ -137,7 +135,6 @@ def clone_from_github(repo, tag, org):
"""
# Construct the full GitHub repository URL
repo_url = f"https://github.com/{org}/{repo}.git"
print(repo_url)
# Construct the git clone command
if tag:
clone_command = [
Expand All @@ -155,7 +152,7 @@ def clone_from_github(repo, tag, org):
subprocess.run(clone_command, check=True)
log_message(f"Successfully cloned {repo}")
except subprocess.CalledProcessError as e:
log_message(f"Failed to clone {repo}. Error: {e}")
raise (e)
yinggeh marked this conversation as resolved.
Show resolved Hide resolved


def parse_repo_tag(repo_tags):
Expand Down Expand Up @@ -189,8 +186,8 @@ def get_git_repo_name(file_path):
.decode()
.strip()
)
except subprocess.CalledProcessError:
return None
except subprocess.CalledProcessError as e:
raise (e)

# Extract repository name from the remote URL.
if remote_url.endswith(".git"):
Expand Down
Loading