fix: fix update_zuul_project_config script #57
Closed
gtema
wants to merge 1 commits from
fix-update-zuul
into main
pull from: fix-update-zuul
merge into: infra:main
infra:main
infra:tischrei-patch-8
infra:tischrei-patch-7
infra:fix-3rd-party
infra:add_3rd_party
infra:tischrei-patch-6
infra:pdf-rollout
infra:asm-api-public
infra:apiu-public
infra:fix-swiss-script
infra:rfs-api-internal
infra:rfs
infra:tischrei-patch-5
infra:sgode-patch-3
infra:fix_python
infra:add_pdf_copy_to_html
infra:sgode-patch-2
infra:add_pdf_tox
infra:enable_pdf_for_css
infra:ccn-add
infra:disable_pdf
infra:enable_pdf_2
infra:enable_pdf_1
infra:fix-dev-guide
infra:enable_pdf_4
infra:enable_pdf_3
infra:fix-pdf
infra:zuul-pdf
infra:enable_pdf_gemini
infra:pc-apiref
infra:rms-remove
infra:dbss_api
infra:archive-ed-internal
infra:upd_conf
infra:update-startpage-pdf-confpy
infra:tischrei-patch-4
infra:orch-split
infra:fix-git-tooling
infra:remove_blueprints
infra:remove_gaussdb_nosql
infra:remove_ac
infra:tischrei-patch-3
infra:tischrei-patch-2
infra:pdf-preparation
infra:enable_cci
infra:enable_asm
infra:fix-issue
infra:confpy-gitcommit
infra:rfs-fix
infra:add-latex-templates
infra:smg-fix
infra:iam-fix
infra:ma-fix
infra:enable-geminidb
infra:gemini-public
infra:mkp-fix
infra:tischrei-patch-1
infra:sbv-update
infra:404
infra:confix-fix
infra:disable_import
infra:add-config-service
infra:apm-public
infra:apig-devguide
infra:environment-filter
infra:sgode-patch-1
infra:apigw-dev
infra:aom2_add
infra:release_fg
infra:fg_change
infra:chg_blueprints
infra:fix_public_only_services
infra:fix_cc
infra:mod_aom_umn2
infra:add_aom_umn2
infra:function_graph_squad
infra:enable_css_bestpr
infra:add-business-db
infra:fix1
infra:hidden_rae_gloss_sec
infra:sec_gloss
infra:add_rae
infra:sd_visible_public
infra:sd_visible
infra:add_internal_docs
infra:add-docs-on-docs
infra:fix_caf
infra:increase-otcdocstheme
infra:ac-fix
infra:pdf
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking 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