Skip to content

Commit

Permalink
add feedstock suffix to logger output
Browse files Browse the repository at this point in the history
  • Loading branch information
ytausch committed Dec 2, 2024
1 parent 069a3a4 commit 5255be0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions conda_forge_tick/auto_tick.py
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ def _run_migrator(
if feedstock:
if feedstock not in possible_nodes:
logger.info(
f"Feedstock {feedstock} is not a candidate for migration of {migrator_name}. "
f"Feedstock {feedstock}-feedstock is not a candidate for migration of {migrator_name}. "
f"If you want to investigate this, run the make-migrators command."
)
return 0
Expand Down Expand Up @@ -1168,7 +1168,7 @@ def _update_nodes_with_new_versions(gx: nx.DiGraph, feedstock: str | None = None
print("updating nodes with new versions", flush=True)

if feedstock and not does_key_exist_in_hashmap("versions", feedstock):
logger.warning(f"Feedstock {feedstock} not found in versions hashmap")
logger.warning(f"Feedstock {feedstock}-feedstock not found in versions hashmap")
return

version_nodes = (
Expand Down Expand Up @@ -1220,10 +1220,12 @@ def _remove_closed_pr_json(feedstock: str | None = None):
)

if not pr_info_nodes:
logger.warning(f"Feedstock {feedstock} not found in pr_info hashmap")
logger.warning(
f"Feedstock {feedstock}-feedstock not found in pr_info hashmap"
)
if not version_pr_info_nodes:
logger.warning(
f"Feedstock {feedstock} not found in version_pr_info hashmap"
f"Feedstock {feedstock}-feedstock not found in version_pr_info hashmap"
)
else:
pr_info_nodes = get_all_keys_for_hashmap("pr_info")
Expand Down
2 changes: 1 addition & 1 deletion conda_forge_tick/update_upstream_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def update_upstream_versions(
:param feedstock: The feedstock to update. If None, update all feedstocks. Does not contain the `-feedstock` suffix.
"""
if feedstock and feedstock not in gx.nodes:
logger.error(f"Feedstock {feedstock} not found in graph. Exiting.")
logger.error(f"Feedstock {feedstock}-feedstock not found in graph. Exiting.")
return

# In the future, we should have some sort of typed graph structure
Expand Down

0 comments on commit 5255be0

Please sign in to comment.