Skip to content

Conversation

@EZoni
Copy link
Member

@EZoni EZoni commented Sep 9, 2025

Fix a minor bug that I found while testing the same tool in AMReX-Codes/pyamrex#474.

@EZoni EZoni added bug Something isn't working bug: affects latest release Bug also exists in latest release version automation Changes related to automation of tasks, tools, etc. labels Sep 9, 2025
@EZoni EZoni force-pushed the update_dependencies_bugfix branch from d2ad7b3 to 49713d3 Compare September 10, 2025 22:13
@EZoni EZoni force-pushed the update_dependencies_bugfix branch from 49713d3 to dedeca6 Compare September 10, 2025 22:48
@EZoni EZoni changed the title Tools: fix minor bug in scrip to update dependencies Fix minor bugs in script to update dependencies Sep 10, 2025
@EZoni EZoni requested a review from ax3l September 10, 2025 22:51
tags_response = requests.get(repo_subdict["tags"])
tags_list = tags_response.json()
# filter out old-format tags for specific repositories
tags_list_filtered = copy.deepcopy(tags_list)
Copy link
Member Author

Choose a reason for hiding this comment

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

Without this fix tags_list_filtered could be used uninitialized.

print(f"- old commit: {dependencies_data[commit_key]}")
print(f"- new commit: {new_commit_sha}")
if dependencies_data[commit_key] == repo_commit_sha:
if dependencies_data[commit_key] == new_commit_sha:
Copy link
Member Author

Choose a reason for hiding this comment

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

new_commit_sha is the variable that contains the correct information (commit sha or version tag).

@ax3l ax3l merged commit 13dc6a9 into BLAST-WarpX:development Sep 16, 2025
50 checks passed
@EZoni EZoni deleted the update_dependencies_bugfix branch September 17, 2025 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation Changes related to automation of tasks, tools, etc. bug: affects latest release Bug also exists in latest release version bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants