Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package openSUSE-release-tools for
openSUSE:Factory checked in at 2022-04-06 21:51:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/openSUSE-release-tools (Old)
and /work/SRC/openSUSE:Factory/.openSUSE-release-tools.new.1900 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "openSUSE-release-tools"
Wed Apr 6 21:51:39 2022 rev:421 rq:967133 version:20220405.3982570a
Changes:
--------
---
/work/SRC/openSUSE:Factory/openSUSE-release-tools/openSUSE-release-tools.changes
2022-04-05 19:56:00.305864550 +0200
+++
/work/SRC/openSUSE:Factory/.openSUSE-release-tools.new.1900/openSUSE-release-tools.changes
2022-04-06 21:52:04.219170788 +0200
@@ -1,0 +2,18 @@
+Tue Apr 05 18:11:31 UTC 2022 - [email protected]
+
+- Update to version 20220405.3982570a:
+ * Accept_command: create set_bugowner requests
+
+-------------------------------------------------------------------
+Tue Apr 05 15:49:02 UTC 2022 - [email protected]
+
+- Update to version 20220405.5d0676ce:
+ * check_bugowner: Decline new packages without bugowner entry
+
+-------------------------------------------------------------------
+Tue Apr 05 11:17:03 UTC 2022 - [email protected]
+
+- Update to version 20220405.b7d4dbdf:
+ * gocd: Simplify the groups and restrict them in the CI
+
+-------------------------------------------------------------------
Old:
----
openSUSE-release-tools-20220404.3e495a4f.obscpio
New:
----
openSUSE-release-tools-20220405.3982570a.obscpio
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ openSUSE-release-tools.spec ++++++
--- /var/tmp/diff_new_pack.mVpe7G/_old 2022-04-06 21:52:04.971162206 +0200
+++ /var/tmp/diff_new_pack.mVpe7G/_new 2022-04-06 21:52:04.979162115 +0200
@@ -20,7 +20,7 @@
%define source_dir openSUSE-release-tools
%define announcer_filename factory-package-news
Name: openSUSE-release-tools
-Version: 20220404.3e495a4f
+Version: 20220405.3982570a
Release: 0
Summary: Tools to aid in staging and release work for openSUSE/SUSE
License: GPL-2.0-or-later AND MIT
++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.mVpe7G/_old 2022-04-06 21:52:05.023161613 +0200
+++ /var/tmp/diff_new_pack.mVpe7G/_new 2022-04-06 21:52:05.027161567 +0200
@@ -1,7 +1,7 @@
<servicedata>
<service name="tar_scm">
<param
name="url">https://github.com/openSUSE/openSUSE-release-tools.git</param>
- <param
name="changesrevision">27c4ae0a061726b6e394a7f782b75d5c9c2dfcf4</param>
+ <param
name="changesrevision">66bd39eab5dc5d8429c47950cff4970459e1e8ef</param>
</service>
</servicedata>
++++++ openSUSE-release-tools-20220404.3e495a4f.obscpio ->
openSUSE-release-tools-20220405.3982570a.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20220404.3e495a4f/check_bugowner.py
new/openSUSE-release-tools-20220405.3982570a/check_bugowner.py
--- old/openSUSE-release-tools-20220404.3e495a4f/check_bugowner.py
2022-04-04 17:59:14.000000000 +0200
+++ new/openSUSE-release-tools-20220405.3982570a/check_bugowner.py
2022-04-05 20:10:25.000000000 +0200
@@ -19,6 +19,7 @@
def __init__(self, *args, **kwargs):
ReviewBot.ReviewBot.__init__(self, *args, **kwargs)
self.request_default_return = True
+ self.override_allow = False
def check_source_submission(self, src_project, src_package, src_rev,
target_project, target_package):
self.logger.info("%s/%s@%s -> %s/%s" % (src_project,
@@ -46,7 +47,7 @@
return False
return True
self.review_messages['declined'] += f"\n{target_package } appears to
be a new package and " + \
- "no matching 'bugowner:' line could be found in the request
description."
+ "no matching 'bugowner:' line could be found in the request
description. See https://confluence.suse.com/x/WgH2OQ"
return False
def existing_url(self, url):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20220404.3e495a4f/gocd/checkers.suse.gocd.yaml
new/openSUSE-release-tools-20220405.3982570a/gocd/checkers.suse.gocd.yaml
--- old/openSUSE-release-tools-20220404.3e495a4f/gocd/checkers.suse.gocd.yaml
2022-04-04 17:59:14.000000000 +0200
+++ new/openSUSE-release-tools-20220405.3982570a/gocd/checkers.suse.gocd.yaml
2022-04-05 20:10:25.000000000 +0200
@@ -39,7 +39,7 @@
resources:
- staging-bot
tasks:
- - script: ./check_bugowner.py -A https://api.suse.de --verbose
--user=bugowner-checker --review=accept-onpass review
+ - script: ./check_bugowner.py -A https://api.suse.de --verbose
--user=bugowner-checker review
SLE15SP4.Project:
group: SLE.Checkers
lock_behavior: unlockWhenFinished
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20220404.3e495a4f/gocd/checkers.suse.gocd.yaml.erb
new/openSUSE-release-tools-20220405.3982570a/gocd/checkers.suse.gocd.yaml.erb
---
old/openSUSE-release-tools-20220404.3e495a4f/gocd/checkers.suse.gocd.yaml.erb
2022-04-04 17:59:14.000000000 +0200
+++
new/openSUSE-release-tools-20220405.3982570a/gocd/checkers.suse.gocd.yaml.erb
2022-04-05 20:10:25.000000000 +0200
@@ -39,7 +39,7 @@
resources:
- staging-bot
tasks:
- - script: ./check_bugowner.py -A https://api.suse.de --verbose
--user=bugowner-checker --review=accept-onpass review
+ - script: ./check_bugowner.py -A https://api.suse.de --verbose
--user=bugowner-checker review
SLE15SP4.Project:
group: SLE.Checkers
lock_behavior: unlockWhenFinished
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20220404.3e495a4f/gocd/generate.sh
new/openSUSE-release-tools-20220405.3982570a/gocd/generate.sh
--- old/openSUSE-release-tools-20220404.3e495a4f/gocd/generate.sh
2022-04-04 17:59:14.000000000 +0200
+++ new/openSUSE-release-tools-20220405.3982570a/gocd/generate.sh
2022-04-05 20:10:25.000000000 +0200
@@ -11,6 +11,17 @@
erb -T - $file > $(basename $file .erb)
done
+grep group: *.yaml | cut -d: -f3 | sort -u | while read group; do
+ case $group in
+
BCI|Factory|Leap|Admin|LEO|MicroOS|Monitors|openSUSE.Checkers|SLE15.Stagings|SLE15.Target|SLE.Checkers)
+ ;;
+ *)
+ echo "Do not create new groups without being admin and
knowing the consequences - found $group"
+ exit 1
+ esac
+done
+
for file in *.gocd.yaml; do
java -jar yaml-config-plugin-0.9.0.jar syntax $file
done
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20220404.3e495a4f/gocd/leapmicro.target.gocd.yaml
new/openSUSE-release-tools-20220405.3982570a/gocd/leapmicro.target.gocd.yaml
---
old/openSUSE-release-tools-20220404.3e495a4f/gocd/leapmicro.target.gocd.yaml
2022-04-04 17:59:14.000000000 +0200
+++
new/openSUSE-release-tools-20220405.3982570a/gocd/leapmicro.target.gocd.yaml
2022-04-05 20:10:25.000000000 +0200
@@ -1,7 +1,7 @@
format_version: 3
pipelines:
LeapMicro.RelPkgs:
- group: LeapMicro.Target
+ group: Leap
lock_behavior: unlockWhenFinished
timer:
spec: 0 10 * ? * *
@@ -20,7 +20,7 @@
- script: ./pkglistgen.py -A https://api.opensuse.org
update_and_solve -p openSUSE:Leap:Micro:5.2 -s target --only-release-packages
LeapMicro.Package.Lists:
- group: LeapMicro.Target
+ group: Leap
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20220404.3e495a4f/gocd/microos-stagings.gocd.yaml
new/openSUSE-release-tools-20220405.3982570a/gocd/microos-stagings.gocd.yaml
---
old/openSUSE-release-tools-20220404.3e495a4f/gocd/microos-stagings.gocd.yaml
2022-04-04 17:59:14.000000000 +0200
+++
new/openSUSE-release-tools-20220405.3982570a/gocd/microos-stagings.gocd.yaml
2022-04-05 20:10:25.000000000 +0200
@@ -4,7 +4,7 @@
MicroOS.Stagings.RelPkgs:
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: MicroOS.Stagings
+ group: MicroOS
lock_behavior: unlockWhenFinished
timer:
spec: 0 0 * ? * *
@@ -36,7 +36,7 @@
STAGING_PROJECT: SUSE:SLE-15-SP3:Update:Products:MicroOS52:Staging:A
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: MicroOS.Stagings
+ group: MicroOS
lock_behavior: unlockWhenFinished
materials:
stagings:
@@ -99,7 +99,7 @@
STAGING_PROJECT: SUSE:SLE-15-SP3:Update:Products:MicroOS52:Staging:B
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: MicroOS.Stagings
+ group: MicroOS
lock_behavior: unlockWhenFinished
materials:
stagings:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20220404.3e495a4f/gocd/microos-stagings.gocd.yaml.erb
new/openSUSE-release-tools-20220405.3982570a/gocd/microos-stagings.gocd.yaml.erb
---
old/openSUSE-release-tools-20220404.3e495a4f/gocd/microos-stagings.gocd.yaml.erb
2022-04-04 17:59:14.000000000 +0200
+++
new/openSUSE-release-tools-20220405.3982570a/gocd/microos-stagings.gocd.yaml.erb
2022-04-05 20:10:25.000000000 +0200
@@ -5,7 +5,7 @@
MicroOS.Stagings.RelPkgs:
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: MicroOS.Stagings
+ group: MicroOS
lock_behavior: unlockWhenFinished
timer:
spec: 0 0 * ? * *
@@ -32,7 +32,7 @@
STAGING_PROJECT: SUSE:SLE-15-SP3:Update:Products:MicroOS52:Staging:<%=
letter %>
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: MicroOS.Stagings
+ group: MicroOS
lock_behavior: unlockWhenFinished
materials:
stagings:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20220404.3e495a4f/gocd/microos.target.gocd.yaml
new/openSUSE-release-tools-20220405.3982570a/gocd/microos.target.gocd.yaml
--- old/openSUSE-release-tools-20220404.3e495a4f/gocd/microos.target.gocd.yaml
2022-04-04 17:59:14.000000000 +0200
+++ new/openSUSE-release-tools-20220405.3982570a/gocd/microos.target.gocd.yaml
2022-04-05 20:10:25.000000000 +0200
@@ -1,7 +1,7 @@
format_version: 3
pipelines:
MicroOS.RelPkgs:
- group: MicroOS.Target
+ group: MicroOS
lock_behavior: unlockWhenFinished
timer:
spec: 0 10 * ? * *
@@ -20,7 +20,7 @@
- script: ./pkglistgen.py -A https://api.suse.de update_and_solve -p
SUSE:SLE-15-SP3:Update:Products:MicroOS52 -s target --only-release-packages
--force
MicroOS.Package.Lists:
- group: MicroOS.Target
+ group: MicroOS
lock_behavior: unlockWhenFinished
materials:
repos:
@@ -45,7 +45,7 @@
- script: ./scripts/pkglistgen.py -A https://api.suse.de --debug
update_and_solve -p SUSE:SLE-15-SP3:Update:Products:MicroOS52 -s target --force
MicroOS.Images:
- group: MicroOS.Target
+ group: MicroOS
lock_behavior: unlockWhenFinished
materials:
repos:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20220404.3e495a4f/gocd/pkglistgen.opensuse.gocd.yaml
new/openSUSE-release-tools-20220405.3982570a/gocd/pkglistgen.opensuse.gocd.yaml
---
old/openSUSE-release-tools-20220404.3e495a4f/gocd/pkglistgen.opensuse.gocd.yaml
2022-04-04 17:59:14.000000000 +0200
+++
new/openSUSE-release-tools-20220405.3982570a/gocd/pkglistgen.opensuse.gocd.yaml
2022-04-05 20:10:25.000000000 +0200
@@ -1,7 +1,7 @@
format_version: 3
pipelines:
Pkglistgen.openSUSE_Factory:
- group: Factory.pkglistgen
+ group: Factory
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
@@ -66,7 +66,7 @@
python3 -u ./pkglistgen.py -d -A https://api.opensuse.org
update_and_solve -p openSUSE:Factory:RISCV -s target --only-release-packages
--force
python3 -u ./pkglistgen.py -d -A https://api.opensuse.org
update_and_solve -p openSUSE:Factory:RISCV -s target
Update.Repos.Factory:
- group: Factory.pkglistgen
+ group: Factory
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
@@ -102,7 +102,7 @@
tasks:
- script: python3 -u ./pkglistgen.py --apiurl
https://api.opensuse.org handle_update_repos openSUSE:Factory:RISCV
Pkglistgen.openSUSE_Leap_15.4:
- group: Leap.pkglistgen
+ group: Leap
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
@@ -124,7 +124,7 @@
- script: python3 ./skippkg-finder.py -A https://api.opensuse.org
-o openSUSE:Leap:15.4 -s SUSE:SLE-15-SP4:GA
- script: python3 ./pkglistgen.py -d -A https://api.opensuse.org
update_and_solve -p openSUSE:Leap:15.4 -s target
Pkglistgen.openSUSE_Leap_15.3_Update_Respin:
- group: Leap.pkglistgen
+ group: Leap
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
@@ -147,7 +147,7 @@
- script: python3 ./pkglistgen.py -d -A https://api.opensuse.org
update_and_solve -p openSUSE:Leap:15.3:Update:Respin -s target
Update.Repos.Leap.openSUSE_Leap_15.4:
- group: Leap.pkglistgen
+ group: Leap
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
@@ -168,7 +168,7 @@
tasks:
- script: python3 ./pkglistgen.py --apiurl
https://api.opensuse.org handle_update_repos openSUSE:Leap:15.4
Update.Repos.Leap.openSUSE_Leap_15.3_Update_Respin:
- group: Leap.pkglistgen
+ group: Leap
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20220404.3e495a4f/gocd/pkglistgen.opensuse.gocd.yaml.erb
new/openSUSE-release-tools-20220405.3982570a/gocd/pkglistgen.opensuse.gocd.yaml.erb
---
old/openSUSE-release-tools-20220404.3e495a4f/gocd/pkglistgen.opensuse.gocd.yaml.erb
2022-04-04 17:59:14.000000000 +0200
+++
new/openSUSE-release-tools-20220405.3982570a/gocd/pkglistgen.opensuse.gocd.yaml.erb
2022-04-05 20:10:25.000000000 +0200
@@ -1,7 +1,7 @@
format_version: 3
pipelines:
Pkglistgen.openSUSE_Factory:
- group: Factory.pkglistgen
+ group: Factory
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
@@ -35,7 +35,7 @@
python3 -u ./pkglistgen.py -d -A https://api.opensuse.org
update_and_solve -p <%= project[0] %><%= options %>
<% end -%>
Update.Repos.Factory:
- group: Factory.pkglistgen
+ group: Factory
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
@@ -58,7 +58,7 @@
- script: python3 -u ./pkglistgen.py --apiurl
https://api.opensuse.org handle_update_repos <%= project %>
<% end -%>
Pkglistgen.openSUSE_Leap_15.4:
- group: Leap.pkglistgen
+ group: Leap
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
@@ -89,7 +89,7 @@
- script: python3 ./pkglistgen.py -d -A https://api.opensuse.org
update_and_solve -p <%= project[0] %><%= options %>
<% end -%>
Pkglistgen.openSUSE_Leap_15.3_Update_Respin:
- group: Leap.pkglistgen
+ group: Leap
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
@@ -122,7 +122,7 @@
<% %w(openSUSE:Leap:15.4 openSUSE:Leap:15.3:Update:Respin).each do |project|
-%>
Update.Repos.Leap.<%= project.gsub(':', '_') %>:
- group: Leap.pkglistgen
+ group: Leap
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20220404.3e495a4f/gocd/pkglistgen_staging.gocd.yaml
new/openSUSE-release-tools-20220405.3982570a/gocd/pkglistgen_staging.gocd.yaml
---
old/openSUSE-release-tools-20220404.3e495a4f/gocd/pkglistgen_staging.gocd.yaml
2022-04-04 17:59:14.000000000 +0200
+++
new/openSUSE-release-tools-20220405.3982570a/gocd/pkglistgen_staging.gocd.yaml
2022-04-05 20:10:25.000000000 +0200
@@ -3,7 +3,7 @@
Factory.Stagings.RelPkgs:
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: Factory.pkglistgen
+ group: Factory
lock_behavior: unlockWhenFinished
timer:
spec: 0 0 * ? * *
@@ -133,7 +133,7 @@
STAGING_PROJECT: openSUSE:Factory:Staging:A
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: Factory.pkglistgen
+ group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@@ -198,7 +198,7 @@
STAGING_PROJECT: openSUSE:Factory:Staging:B
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: Factory.pkglistgen
+ group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@@ -263,7 +263,7 @@
STAGING_PROJECT: openSUSE:Factory:Staging:C
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: Factory.pkglistgen
+ group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@@ -328,7 +328,7 @@
STAGING_PROJECT: openSUSE:Factory:Staging:D
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: Factory.pkglistgen
+ group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@@ -393,7 +393,7 @@
STAGING_PROJECT: openSUSE:Factory:Staging:E
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: Factory.pkglistgen
+ group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@@ -458,7 +458,7 @@
STAGING_PROJECT: openSUSE:Factory:Staging:F
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: Factory.pkglistgen
+ group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@@ -523,7 +523,7 @@
STAGING_PROJECT: openSUSE:Factory:Staging:G
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: Factory.pkglistgen
+ group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@@ -588,7 +588,7 @@
STAGING_PROJECT: openSUSE:Factory:Staging:H
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: Factory.pkglistgen
+ group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@@ -653,7 +653,7 @@
STAGING_PROJECT: openSUSE:Factory:Staging:I
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: Factory.pkglistgen
+ group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@@ -718,7 +718,7 @@
STAGING_PROJECT: openSUSE:Factory:Staging:J
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: Factory.pkglistgen
+ group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@@ -783,7 +783,7 @@
STAGING_PROJECT: openSUSE:Factory:Staging:K
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: Factory.pkglistgen
+ group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@@ -848,7 +848,7 @@
STAGING_PROJECT: openSUSE:Factory:Staging:L
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: Factory.pkglistgen
+ group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@@ -913,7 +913,7 @@
STAGING_PROJECT: openSUSE:Factory:Staging:M
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: Factory.pkglistgen
+ group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@@ -978,7 +978,7 @@
STAGING_PROJECT: openSUSE:Factory:Staging:N
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: Factory.pkglistgen
+ group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@@ -1043,7 +1043,7 @@
STAGING_PROJECT: openSUSE:Factory:Staging:O
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: Factory.pkglistgen
+ group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@@ -1108,7 +1108,7 @@
STAGING_PROJECT: openSUSE:Factory:Staging:Gcc7
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: Factory.pkglistgen
+ group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20220404.3e495a4f/gocd/pkglistgen_staging.gocd.yaml.erb
new/openSUSE-release-tools-20220405.3982570a/gocd/pkglistgen_staging.gocd.yaml.erb
---
old/openSUSE-release-tools-20220404.3e495a4f/gocd/pkglistgen_staging.gocd.yaml.erb
2022-04-04 17:59:14.000000000 +0200
+++
new/openSUSE-release-tools-20220405.3982570a/gocd/pkglistgen_staging.gocd.yaml.erb
2022-04-05 20:10:25.000000000 +0200
@@ -3,7 +3,7 @@
Factory.Stagings.RelPkgs:
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: Factory.pkglistgen
+ group: Factory
lock_behavior: unlockWhenFinished
timer:
spec: 0 0 * ? * *
@@ -31,7 +31,7 @@
STAGING_PROJECT: openSUSE:Factory:Staging:<%= letter %>
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: Factory.pkglistgen
+ group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20220404.3e495a4f/gocd/sle15sp4-stagings.gocd.yaml
new/openSUSE-release-tools-20220405.3982570a/gocd/sle15sp4-stagings.gocd.yaml
---
old/openSUSE-release-tools-20220404.3e495a4f/gocd/sle15sp4-stagings.gocd.yaml
2022-04-04 17:59:14.000000000 +0200
+++
new/openSUSE-release-tools-20220405.3982570a/gocd/sle15sp4-stagings.gocd.yaml
2022-04-05 20:10:25.000000000 +0200
@@ -4,7 +4,7 @@
SLE15.SP4.Stagings.RelPkgs:
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: SLE15.SP4.Stagings
+ group: SLE15.Stagings
lock_behavior: unlockWhenFinished
timer:
spec: 0 0 * ? * *
@@ -99,7 +99,7 @@
STAGING_PROJECT: SUSE:SLE-15-SP4:GA:Staging:A
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: SLE15.SP4.Stagings
+ group: SLE15.Stagings
lock_behavior: unlockWhenFinished
materials:
stagings:
@@ -167,7 +167,7 @@
STAGING_PROJECT: SUSE:SLE-15-SP4:GA:Staging:B
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: SLE15.SP4.Stagings
+ group: SLE15.Stagings
lock_behavior: unlockWhenFinished
materials:
stagings:
@@ -235,7 +235,7 @@
STAGING_PROJECT: SUSE:SLE-15-SP4:GA:Staging:C
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: SLE15.SP4.Stagings
+ group: SLE15.Stagings
lock_behavior: unlockWhenFinished
materials:
stagings:
@@ -303,7 +303,7 @@
STAGING_PROJECT: SUSE:SLE-15-SP4:GA:Staging:D
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: SLE15.SP4.Stagings
+ group: SLE15.Stagings
lock_behavior: unlockWhenFinished
materials:
stagings:
@@ -371,7 +371,7 @@
STAGING_PROJECT: SUSE:SLE-15-SP4:GA:Staging:E
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: SLE15.SP4.Stagings
+ group: SLE15.Stagings
lock_behavior: unlockWhenFinished
materials:
stagings:
@@ -439,7 +439,7 @@
STAGING_PROJECT: SUSE:SLE-15-SP4:GA:Staging:F
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: SLE15.SP4.Stagings
+ group: SLE15.Stagings
lock_behavior: unlockWhenFinished
materials:
stagings:
@@ -507,7 +507,7 @@
STAGING_PROJECT: SUSE:SLE-15-SP4:GA:Staging:G
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: SLE15.SP4.Stagings
+ group: SLE15.Stagings
lock_behavior: unlockWhenFinished
materials:
stagings:
@@ -575,7 +575,7 @@
STAGING_PROJECT: SUSE:SLE-15-SP4:GA:Staging:H
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: SLE15.SP4.Stagings
+ group: SLE15.Stagings
lock_behavior: unlockWhenFinished
materials:
stagings:
@@ -643,7 +643,7 @@
STAGING_PROJECT: SUSE:SLE-15-SP4:GA:Staging:S
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: SLE15.SP4.Stagings
+ group: SLE15.Stagings
lock_behavior: unlockWhenFinished
materials:
stagings:
@@ -711,7 +711,7 @@
STAGING_PROJECT: SUSE:SLE-15-SP4:GA:Staging:V
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: SLE15.SP4.Stagings
+ group: SLE15.Stagings
lock_behavior: unlockWhenFinished
materials:
stagings:
@@ -779,7 +779,7 @@
STAGING_PROJECT: SUSE:SLE-15-SP4:GA:Staging:Y
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: SLE15.SP4.Stagings
+ group: SLE15.Stagings
lock_behavior: unlockWhenFinished
materials:
stagings:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20220404.3e495a4f/gocd/sle15sp4-stagings.gocd.yaml.erb
new/openSUSE-release-tools-20220405.3982570a/gocd/sle15sp4-stagings.gocd.yaml.erb
---
old/openSUSE-release-tools-20220404.3e495a4f/gocd/sle15sp4-stagings.gocd.yaml.erb
2022-04-04 17:59:14.000000000 +0200
+++
new/openSUSE-release-tools-20220405.3982570a/gocd/sle15sp4-stagings.gocd.yaml.erb
2022-04-05 20:10:25.000000000 +0200
@@ -5,7 +5,7 @@
SLE15.SP4.Stagings.RelPkgs:
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: SLE15.SP4.Stagings
+ group: SLE15.Stagings
lock_behavior: unlockWhenFinished
timer:
spec: 0 0 * ? * *
@@ -32,7 +32,7 @@
STAGING_PROJECT: SUSE:SLE-15-SP4:GA:Staging:<%= letter %>
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
- group: SLE15.SP4.Stagings
+ group: SLE15.Stagings
lock_behavior: unlockWhenFinished
materials:
stagings:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20220404.3e495a4f/gocd/sp4.target.gocd.yaml
new/openSUSE-release-tools-20220405.3982570a/gocd/sp4.target.gocd.yaml
--- old/openSUSE-release-tools-20220404.3e495a4f/gocd/sp4.target.gocd.yaml
2022-04-04 17:59:14.000000000 +0200
+++ new/openSUSE-release-tools-20220405.3982570a/gocd/sp4.target.gocd.yaml
2022-04-05 20:10:25.000000000 +0200
@@ -1,7 +1,7 @@
format_version: 3
pipelines:
SLE15.SP4.RelPkgs:
- group: SLE15.SP4.Target
+ group: SLE15.Target
lock_behavior: unlockWhenFinished
timer:
spec: 0 10 * ? * *
@@ -20,7 +20,7 @@
- script: ./pkglistgen.py -A https://api.suse.de update_and_solve -p
SUSE:SLE-15-SP4:GA -s target --only-release-packages --force
SLE15.SP4.Package.Lists:
- group: SLE15.SP4.Target
+ group: SLE15.Target
lock_behavior: unlockWhenFinished
materials:
repos:
@@ -45,7 +45,7 @@
- script: ./scripts/pkglistgen.py -A https://api.suse.de --debug
update_and_solve -p SUSE:SLE-15-SP4:GA -s target --force
SLE15.SP4.Images:
- group: SLE15.SP4.Target
+ group: SLE15.Target
lock_behavior: unlockWhenFinished
materials:
repos:
@@ -112,7 +112,7 @@
osc -A https://api.suse.de/ api
"/build/SUSE:SLE-15-SP4:GA:PUBLISH/_result?view=summary&repository=images" |
grep "result project" | grep 'code="published" state="published">' && echo
PUBLISHED
SLE15.SP4.ImagesManual:
- group: SLE15.SP4.Target
+ group: SLE15.Target
lock_behavior: unlockWhenFinished
materials:
repos:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20220404.3e495a4f/gocd/staging.bot.gocd.yaml
new/openSUSE-release-tools-20220405.3982570a/gocd/staging.bot.gocd.yaml
--- old/openSUSE-release-tools-20220404.3e495a4f/gocd/staging.bot.gocd.yaml
2022-04-04 17:59:14.000000000 +0200
+++ new/openSUSE-release-tools-20220405.3982570a/gocd/staging.bot.gocd.yaml
2022-04-05 20:10:25.000000000 +0200
@@ -25,7 +25,7 @@
- script: |-
./scripts/staging-installcheck.py -A https://api.opensuse.org
-p openSUSE:Factory
SBot.Regular.Factory:
- group: Factory.pkglistgen
+ group: openSUSE.Checkers
lock_behavior: unlockWhenFinished
timer:
spec: 0 0 * ? * *
@@ -81,7 +81,7 @@
- script: |-
./scripts/staging-installcheck.py -A https://api.opensuse.org
-p openSUSE:Backports:SLE-15-SP4
SBot.Regular.Backports.SLE-15-SP4:
- group: Backports.SLE-15-SP4.pkglistgen
+ group: openSUSE.Checkers
lock_behavior: unlockWhenFinished
timer:
spec: 0 0 * ? * *
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20220404.3e495a4f/gocd/staging.bot.gocd.yaml.erb
new/openSUSE-release-tools-20220405.3982570a/gocd/staging.bot.gocd.yaml.erb
--- old/openSUSE-release-tools-20220404.3e495a4f/gocd/staging.bot.gocd.yaml.erb
2022-04-04 17:59:14.000000000 +0200
+++ new/openSUSE-release-tools-20220405.3982570a/gocd/staging.bot.gocd.yaml.erb
2022-04-05 20:10:25.000000000 +0200
@@ -27,7 +27,7 @@
- script: |-
./scripts/staging-installcheck.py -A https://api.opensuse.org
-p openSUSE:<%= project %>
SBot.Regular.<%= nickname %>:
- group: <%= nickname %>.pkglistgen
+ group: openSUSE.Checkers
lock_behavior: unlockWhenFinished
timer:
spec: 0 0 * ? * *
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20220404.3e495a4f/osclib/accept_command.py
new/openSUSE-release-tools-20220405.3982570a/osclib/accept_command.py
--- old/openSUSE-release-tools-20220404.3e495a4f/osclib/accept_command.py
2022-04-04 17:59:14.000000000 +0200
+++ new/openSUSE-release-tools-20220405.3982570a/osclib/accept_command.py
2022-04-05 20:10:25.000000000 +0200
@@ -1,5 +1,5 @@
import time
-
+import re
from urllib.error import HTTPError
from lxml import etree as ET
@@ -8,10 +8,9 @@
from osc.core import http_GET, http_POST
from osc.core import delete_package, meta_get_packagelist
from osc import conf
-from osclib.core import attribute_value_save
-from osclib.core import attribute_value_load
-from osclib.core import source_file_load
-from osclib.core import source_file_save
+from osclib.core import attribute_value_save, attribute_value_load
+from osclib.core import source_file_load, source_file_save
+from osclib.core import create_set_bugowner_request
from osclib.pkglistgen_comments import PkglistComments
from datetime import date
@@ -64,6 +63,22 @@
delete_package(self.api.apiurl, link['project'],
link['package'],
msg="remove link while accepting delete of
{}".format(package))
+ def check_request_for_bugowner(self, to_request, package, id):
+ url = self.api.makeurl(['request', str(id)])
+
+ f = http_GET(url)
+ root = ET.parse(f).getroot()
+ description = root.find('description').text
+ if not description:
+ return
+ for line in description.splitlines():
+ # this relies on the format relied upon in check_bugowner
+ m = re.search(r'^bugowner:\s*(\S*)', line)
+ if not m:
+ continue
+ to_request[package] = {'id': id, 'bugowner': m.group(1)}
+ return
+
def accept_all(self, projects, force=False, cleanup=True):
accept_all_green = len(projects) == 0
if accept_all_green:
@@ -78,6 +93,7 @@
if accept_all_green:
projects = self.api.get_staging_projects()
+ bugowners_to_request = dict()
for prj in projects:
project = self.api.prj_from_letter(prj)
@@ -94,12 +110,16 @@
type = request.get('type')
if type in self.requests:
self.requests[type].append(request.get('package'))
+ if type == 'submit':
+ self.check_request_for_bugowner(bugowners_to_request,
request.get('package'), request.get('id'))
staging_packages[project].append(request.get('package'))
other_new = self.find_new_requests(self.api.project)
for req in other_new:
if req['type'] in self.requests:
self.requests[req['type']].append(req['package'])
+ if req['type'] == 'submit':
+ self.check_request_for_bugowner(bugowners_to_request,
req['package'], req['id'])
print('delete links to packages pending deletion...')
self.delete_linked()
@@ -142,6 +162,12 @@
for package in self.requests['submit']:
self.fix_linking_packages(package)
+ if package in bugowners_to_request:
+ infos = bugowners_to_request[package]
+ id = infos['id']
+ message = f"Bugowner info derived from request {id}"
+ create_set_bugowner_request(self.api.apiurl, self.api.project,
infos['bugowner'],
+ target_package=package,
message=message)
if self.api.project.startswith('openSUSE:'):
self.update_factory_version()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20220404.3e495a4f/osclib/core.py
new/openSUSE-release-tools-20220405.3982570a/osclib/core.py
--- old/openSUSE-release-tools-20220404.3e495a4f/osclib/core.py 2022-04-04
17:59:14.000000000 +0200
+++ new/openSUSE-release-tools-20220405.3982570a/osclib/core.py 2022-04-05
20:10:25.000000000 +0200
@@ -1216,6 +1216,22 @@
return create_request(apiurl, action, message)
+def create_set_bugowner_request(apiurl, target_project, user,
target_package=None, message=None):
+ """Create an set_bugowner request
+
+ user -- user or group name. If it is a group, it has to start with
'group:'.
+ """
+
+ if user.startswith('group:'):
+ group = user.replace('group:', '')
+ kargs = dict(group_name=group)
+ else:
+ kargs = dict(person_name=user)
+
+ action = Action('set_bugowner', tgt_project=target_project,
tgt_package=target_package, **kargs)
+ return create_request(apiurl, action, message)
+
+
def create_request(apiurl, action, message=None):
"""Create a request for the given action
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20220404.3e495a4f/tests/accept_tests.py
new/openSUSE-release-tools-20220405.3982570a/tests/accept_tests.py
--- old/openSUSE-release-tools-20220404.3e495a4f/tests/accept_tests.py
2022-04-04 17:59:14.000000000 +0200
+++ new/openSUSE-release-tools-20220405.3982570a/tests/accept_tests.py
2022-04-05 20:10:25.000000000 +0200
@@ -4,6 +4,7 @@
from osclib.select_command import SelectCommand
from osclib.comments import CommentAPI
from osclib.core import package_list
+from osc.core import get_request
from mock import MagicMock
from . import OBSLocal
@@ -13,7 +14,7 @@
class TestAccept(unittest.TestCase):
- def setup_wf(self):
+ def setup_wf(self, description=''):
wf = OBSLocal.FactoryWorkflow()
wf.setup_rings()
@@ -22,7 +23,7 @@
staging_b = wf.create_staging('B', freeze=True)
self.prj = staging_b.name
- self.winerq = wf.create_submit_request('devel:wine', 'wine',
text='Hallo World')
+ self.winerq = wf.create_submit_request('devel:wine', 'wine',
text='Hallo World', description=description)
self.assertEqual(True, SelectCommand(wf.api,
self.prj).perform(['wine']))
self.comments = self.c_api.get_comments(project_name=self.prj)
wf.create_attribute_type('OSRT', 'ProductVersion', 1)
@@ -37,6 +38,18 @@
accepted_comments = self.c_api.get_comments(project_name=self.prj)
self.assertEqual(len(accepted_comments), 0)
+ def test_accept_bugowners(self):
+ wf = self.setup_wf(description="bugowner: group:factory-staging")
+
+ self.assertEqual(True, AcceptCommand(wf.api).accept_all(['B']))
+ # we expect that the requests increase by 1 - to avoid a full search
+ request = get_request(wf.apiurl, str(int(self.winerq.reqid) + 1))
+ # it's in review because this is a staging workflow
+ self.assertEqual(request.state.name, 'review')
+ exp = '<action type="set_bugowner">\n <target
project="openSUSE:Factory" ' + \
+ 'package="wine" />\n <group name="factory-staging" />\n</action>'
+ self.assertEqual(request.actions[0].to_str(), exp)
+
def test_accept_final_comment(self):
wf = self.setup_wf()
++++++ openSUSE-release-tools.obsinfo ++++++
--- /var/tmp/diff_new_pack.mVpe7G/_old 2022-04-06 21:52:05.763153168 +0200
+++ /var/tmp/diff_new_pack.mVpe7G/_new 2022-04-06 21:52:05.767153123 +0200
@@ -1,5 +1,5 @@
name: openSUSE-release-tools
-version: 20220404.3e495a4f
-mtime: 1649087954
-commit: 3e495a4f1e409f9ec25390af8987b07463587b85
+version: 20220405.3982570a
+mtime: 1649182225
+commit: 3982570ae8eb43fd1cc5591c32d7cf6cb9402ca1