fix: fix update_zuul_project_config script #57
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix-update-zuul"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Some of the previous changes broken update_zuul_project_config part of the script responsible for verifying required zuul template is present. It is verifying that, but mistankengly not raising a flag that update is required.
Add also a bit more logging to better understand what is happening
Build failed. https://zuul.otc-service.com/t/gl/buildset/80995dcf2f24404f804b000703ef240c
Beside of the pep8 issue which needs to be fixed - I’ would prefer that the branch ‘zuul’ is not being created when no change is necessary. But the branch will always be created. This might be a minor improvement.
@ -150,3 +150,3 @@
)
for doc in data.docs_by_service_type(service["service_type"]):
logging.debug(f"Analyzing document {doc}")
logging.info("Analyzing document %s" % doc)
Is there a reason to use the string literal instead of f-strings? In my opinion f-strings are better to read in code.
https://blog.pilosus.org/posts/2020/01/24/python-f-strings-in-logging/ - it is recommended (and if I remember correctly some of the python validators complain on those) to use regular % formatting instead of fstrings explicitly in logging
Pull request closed