osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ci/+/42087?usp=email )
Change subject: Osmocom_OBS_sync: fix failing on new scmsync tag ...................................................................... Osmocom_OBS_sync: fix failing on new scmsync tag The openSUSE OBS instance has added an scmsync tag to their debian 13 meta config: <scmsync>https://src.opensuse.org/obs/debian#13</scmsync> This feature is not supported by the stable OBS version yet (they run current master), and so the sync fails with: project validation error: 6:0: ERROR: Element project has extra content: scmsync Remove the tag to fix this. Related: https://build.opensuse.org/projects/Debian:13/meta Change-Id: Ia2d2ce3a2eeda9a0ed7ce7c7de54293081b44f4e --- M scripts/obs/sync_obs_projects.py 1 file changed, 6 insertions(+), 0 deletions(-) Approvals: Jenkins Builder: Verified pespin: Looks good to me, but someone else must approve fixeria: Looks good to me, but someone else must approve osmith: Looks good to me, approved diff --git a/scripts/obs/sync_obs_projects.py b/scripts/obs/sync_obs_projects.py index a82a47c..1067a98 100755 --- a/scripts/obs/sync_obs_projects.py +++ b/scripts/obs/sync_obs_projects.py @@ -170,6 +170,12 @@ assert root.get("name") == project root.set("name", project_new) + # Remove <scmsync> tag: build.opensuse.org runs current master of OBS, the + # stable version doesn't have this feature yet and errors with: + # "ERROR: Element project has extra content: scmsync" + for scmsync in root.findall(".scmsync"): + root.remove(scmsync) + for description in root.findall("description"): href = f"{lib.args.weburl}/project/show/{project}" description.text = ( -- To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/42087?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Change-Id: Ia2d2ce3a2eeda9a0ed7ce7c7de54293081b44f4e Gerrit-Change-Number: 42087 Gerrit-PatchSet: 2 Gerrit-Owner: osmith <[email protected]> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <[email protected]> Gerrit-Reviewer: osmith <[email protected]> Gerrit-Reviewer: pespin <[email protected]>
