made a unique bar for the processing of the pr

This commit is contained in:
Karma Riuk
2025-03-31 15:30:14 +02:00
parent abc642d969
commit f785364fb8

View File

@ -254,7 +254,7 @@ def process_pull(
("Checkout out merge commit...", lambda: checkout(repo_path, pr)),
]
with tqdm(total=len(setup_steps), desc="Setting up PR", leave=False) as pbar:
pbar = tqdm(total=len(setup_steps) + 6, desc="Processing PR", leave=False)
for message, action in setup_steps:
pbar.set_postfix(
{
@ -272,7 +272,14 @@ def process_pull(
pbar.update(1)
try:
pbar.set_postfix(
{
"doing": "Setting up build handler...",
"started at": datetime.now().strftime("%d/%m, %H:%M:%S"),
}
)
build_handler = get_build_handler(repos_dir, repo.full_name)
pbar.update(1)
entry.metadata.build_system = build_handler.get_type()
build_handler.set_client(docker_client)
except SetupException as e:
@ -293,7 +300,7 @@ def process_pull(
("Checking coverage...", _check_coverages),
]
with build_handler, tqdm(total=len(steps), desc="Processing PR", leave=False) as pbar:
with build_handler:
try:
for message, action in steps:
pbar.set_postfix(