Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tstellar committed Jan 6, 2025
1 parent 108ae07 commit d292008
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/rebuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def main():
"rebuild",
"get-regressions",
"get-snapshot-date",
"rebuild-in-progress"
"rebuild-in-progress",
],
)
parser.add_argument(
Expand Down Expand Up @@ -360,14 +360,16 @@ def main():
start_rebuild(project_owner, project_name, copr_client, pkgs, snapshot_project)
elif args.command == "get-regressions":
start_time = datetime.datetime.fromisoformat(args.start_date)
copr_pkgs = CoprPkg.get_packages_from_copr(project_owner, project_name, copr_client)
copr_pkgs = CoprPkg.get_packages_from_copr(
project_owner, project_name, copr_client
)
pkg_failures = get_monthly_rebuild_regressions(
project_owner, project_name, start_time, copr_pkgs
)
print(json.dumps(pkg_failures))
elif args.command == "get-snapshot-date":
project = copr_client.project_proxy.get(project_owner, project_name)
for repo in project['additional_repos']:
for repo in project["additional_repos"]:
match = re.match(
r"copr://@fedora-llvm-team/llvm-snapshots-big-merge-([0-9]+)$", repo
)
Expand Down

0 comments on commit d292008

Please sign in to comment.