Fix regression in list-changes

Recent merging of the liaison-loading code in list-changes makes
most list-changes job fail due to error in YAML loading code.

Beyond that YAML loading issue, the code assumes getting a dictionary
with team names as keys and an array of liaisons dictionary as values.
Fix the release_liaisons.yaml and schema to match.

Change-Id: I94fa41862d37aaf0535d64afd00b2bd55bb4649a
This commit is contained in:
Thierry Carrez 2019-06-20 15:56:23 +02:00
parent a9e488f400
commit 08cf70cbc6
3 changed files with 51 additions and 50 deletions

View File

@ -1,181 +1,181 @@
- barbican: barbican:
- name: 'Dave McCowan' - name: 'Dave McCowan'
irc: dave-mccowan irc: dave-mccowan
email: dmccowan@cisco.com email: dmccowan@cisco.com
- ceilometer: ceilometer:
- name: 'gordon chung' - name: 'gordon chung'
irc: gordc irc: gordc
email: gord@live.ca email: gord@live.ca
- cinder: cinder:
- name: 'Sean McGinnis' - name: 'Sean McGinnis'
irc: smcginnis irc: smcginnis
email: sean.mcginnis@gmail.com email: sean.mcginnis@gmail.com
- congress: congress:
- name: 'Eric Kao' - name: 'Eric Kao'
irc: ekcs irc: ekcs
email: ekcs.openstack@gmail.com email: ekcs.openstack@gmail.com
- cyborg: cyborg:
- name: 'Howard Huang' - name: 'Howard Huang'
irc: zhipeng irc: zhipeng
email: huangzhipeng@huawei.com email: huangzhipeng@huawei.com
- designate: designate:
- name: 'Graham Hayes' - name: 'Graham Hayes'
irc: mugsie irc: mugsie
email: graham+designateci@hayes.ie email: graham+designateci@hayes.ie
- documentation: documentation:
- name: 'Stephen Finucane' - name: 'Stephen Finucane'
irc: stephenfin irc: stephenfin
email: stephenfin@redhat.com email: stephenfin@redhat.com
- freezer: freezer:
- name: 'Saad Zaher' - name: 'Saad Zaher'
irc: szaher irc: szaher
email: eng.szaher@gmail.com email: eng.szaher@gmail.com
- glance: glance:
- name: 'Brian Rosmaita' - name: 'Brian Rosmaita'
irc: rosmaita irc: rosmaita
email: rosmaita.fossdev@gmail.com email: rosmaita.fossdev@gmail.com
- heat: heat:
- name: 'Thomas Herve' - name: 'Thomas Herve'
irc: therve irc: therve
email: therve@redhat.com email: therve@redhat.com
- horizon: horizon:
- name: 'Akihiro Motoki' - name: 'Akihiro Motoki'
irc: amotoki irc: amotoki
email: amotoki@gmail.com email: amotoki@gmail.com
- i18n: i18n:
- name: 'Frank Kloeker' - name: 'Frank Kloeker'
irc: eumel8 irc: eumel8
email: f.kloeker@telekom.de email: f.kloeker@telekom.de
- ironic: ironic:
- name: 'Dmitry Tantsur' - name: 'Dmitry Tantsur'
irc: dtantsur irc: dtantsur
email: dtantsur@protonmail.com email: dtantsur@protonmail.com
- keystone: keystone:
- name: 'Kristi Nikolla' - name: 'Kristi Nikolla'
irc: knikolla irc: knikolla
email: kristi@nikolla.me email: kristi@nikolla.me
- kolla: kolla:
- name: 'Mark Goddard' - name: 'Mark Goddard'
irc: mgoddard irc: mgoddard
email: mark@stackhpc.com email: mark@stackhpc.com
- magnum: magnum:
- name: 'Spyros Trigazis' - name: 'Spyros Trigazis'
irc: strigazi irc: strigazi
email: strigazi@gmail.com email: strigazi@gmail.com
- manila: manila:
- name: 'Tom Barron' - name: 'Tom Barron'
irc: tbarron irc: tbarron
email: tpb@dyncloud.net email: tpb@dyncloud.net
- mistral: mistral:
- name: 'Renat Akhmerov' - name: 'Renat Akhmerov'
irc: rakhmerov irc: rakhmerov
email: renat.akhmerov@gmail.com email: renat.akhmerov@gmail.com
- murano: murano:
- name: 'Felipe Monteiro' - name: 'Felipe Monteiro'
irc: felipemonteiro irc: felipemonteiro
email: felipe.monteiro@att.com email: felipe.monteiro@att.com
- neutron: neutron:
- name: 'Akihiro Motoki' - name: 'Akihiro Motoki'
irc: amotoki irc: amotoki
email: amotoki@gmail.com email: amotoki@gmail.com
- nova: nova:
- name: 'Sylvain Bauza' - name: 'Sylvain Bauza'
irc: bauzas irc: bauzas
email: sbauza@redhat.com email: sbauza@redhat.com
- name: 'Matt Riedemann' - name: 'Matt Riedemann'
irc: mriedem irc: mriedem
email: mriedem.os@gmail.com email: mriedem.os@gmail.com
- octavia: octavia:
- name: 'Michael Johnson' - name: 'Michael Johnson'
irc: johnsom irc: johnsom
email: johnsmor@gmail.com email: johnsmor@gmail.com
- name: 'Carlos Goncalves' - name: 'Carlos Goncalves'
irc: cgoncalves irc: cgoncalves
email: cgoncalves@redhat.com email: cgoncalves@redhat.com
- openstackansible: openstackansible:
- name: 'Jean-Philippe Evrard' - name: 'Jean-Philippe Evrard'
irc: evrardjp irc: evrardjp
email: jean-philippe@evrard.me email: jean-philippe@evrard.me
- openstackclient: openstackclient:
- name: 'Doug Hellmann' - name: 'Doug Hellmann'
irc: dhellmann irc: dhellmann
email: doug@doughellmann.com email: doug@doughellmann.com
- oslo: oslo:
- name: 'Doug Hellmann' - name: 'Doug Hellmann'
irc: dhellmann irc: dhellmann
email: doug@doughellmann.com email: doug@doughellmann.com
- name: 'Herve Beraud' - name: 'Herve Beraud'
irc: hberaud irc: hberaud
email: hberaud@redhat.com email: hberaud@redhat.com
- packaging_rpm: packaging_rpm:
- name: 'Dirk Mueller' - name: 'Dirk Mueller'
irc: dirk irc: dirk
email: dirk@dmllr.de email: dirk@dmllr.de
- placement: placement:
- name: 'Chris Dent' - name: 'Chris Dent'
irc: cdent irc: cdent
email: cdent@anticdent.org email: cdent@anticdent.org
- puppet openstack: puppet openstack:
- name: 'Alex Schultz' - name: 'Alex Schultz'
irc: mwhahaha irc: mwhahaha
email: aschultz@redhat.com email: aschultz@redhat.com
- qinling: qinling:
- name: 'Lingxian Kong' - name: 'Lingxian Kong'
irc: lxkong irc: lxkong
email: anlin.kong@gmail.com email: anlin.kong@gmail.com
- rally: rally:
- name: 'Andrey Kurilin' - name: 'Andrey Kurilin'
irc: andreykurilin irc: andreykurilin
email: andr.kurilin@gmail.com email: andr.kurilin@gmail.com
- sahara: sahara:
- name: 'Telles Nobrega' - name: 'Telles Nobrega'
irc: tenobreg/tellesnobrega irc: tenobreg/tellesnobrega
email: email:
- searchlight: searchlight:
- name: 'Trinh Nguyen' - name: 'Trinh Nguyen'
irc: dangtrinhnt irc: dangtrinhnt
email: dangtrinhnt@gmail.com email: dangtrinhnt@gmail.com
- senlin: senlin:
- name: 'Qiming Teng' - name: 'Qiming Teng'
irc: Qiming irc: Qiming
email: tengqim@cn.ibm.com email: tengqim@cn.ibm.com
- solum: solum:
- name: 'Devdatta Kulkarni' - name: 'Devdatta Kulkarni'
irc: devkulkarni irc: devkulkarni
email: kulkarni.devdatta@gmail.com email: kulkarni.devdatta@gmail.com
- storlets: storlets:
- name: 'Kota Tsuyuzaki' - name: 'Kota Tsuyuzaki'
irc: kota_ irc: kota_
email: tsuyuzaki.kota@lab.ntt.co.jp email: tsuyuzaki.kota@lab.ntt.co.jp
- swift: swift:
- name: 'John Dickinson' - name: 'John Dickinson'
irc: notmyname irc: notmyname
email: me@not.mn email: me@not.mn
- tricircle: tricircle:
- name: 'Zhiyuan Cai' - name: 'Zhiyuan Cai'
irc: zhiyuan irc: zhiyuan
email: luckyvega.g@gmail.com email: luckyvega.g@gmail.com
- tripleo: tripleo:
- name: 'Emilien Macchi' - name: 'Emilien Macchi'
irc: EmilienM irc: EmilienM
email: emilien@redhat.com email: emilien@redhat.com
- trove: trove:
- name: 'Lingxian Kong' - name: 'Lingxian Kong'
irc: lxkong irc: lxkong
email: anlin.kong@gmail.com email: anlin.kong@gmail.com
- watcher: watcher:
- name: 'Canwei Li' - name: 'Canwei Li'
irc: licanwei irc: licanwei
email: li.canwei2@zte.com.cn email: li.canwei2@zte.com.cn
- winstackers: winstackers:
- name: 'Claudiu Belu' - name: 'Claudiu Belu'
irc: claudiub irc: claudiub
email: cbelu@cloudbasesolutions.com email: cbelu@cloudbasesolutions.com
- zaqar: zaqar:
- name: 'Fei Long Wang' - name: 'Fei Long Wang'
irc: flwang irc: flwang
email: flwang@catalyst.net.nz email: flwang@catalyst.net.nz
- zun: zun:
- name: 'Hongbin Lu' - name: 'Hongbin Lu'
irc: hongbin irc: hongbin
email: hongbin.lu@huawei.com email: hongbin.lu@huawei.com

View File

@ -260,7 +260,8 @@ def main():
False, False,
) )
liaison_data = yaml.load("../../data/release_liaisons.yaml", "r") with open("./data/release_liaisons.yaml", "r") as f:
liaison_data = yaml.safe_load(f)
# Remove any inherited PAGER environment variable to avoid # Remove any inherited PAGER environment variable to avoid
# blocking the output waiting for input. # blocking the output waiting for input.
@ -291,7 +292,7 @@ def main():
print('found team %s' % team_name) print('found team %s' % team_name)
print(' PTL : %(name)s (%(irc)s)' % team.ptl) print(' PTL : %(name)s (%(irc)s)' % team.ptl)
for liaison in liaison_data.get(team.name.lower(), []): for liaison in liaison_data.get(team.name.lower(), []):
print('Liaison: %(name)s (%(irc)s)' % liaison) print(' Liaison: %(name)s (%(irc)s)' % liaison)
team_deliv = team.deliverables.get(deliv.name) team_deliv = team.deliverables.get(deliv.name)
if team_deliv: if team_deliv:
print('found deliverable %s' % deliv.name) print('found deliverable %s' % deliv.name)

View File

@ -5,10 +5,10 @@ $id: "https://opendev.org/openstack/releases/src/branch/master/README.rst"
# Do not allow any properties not defined here. This lets us catch # Do not allow any properties not defined here. This lets us catch
# typos. # typos.
type: "array" type: "object"
items: additional_properties:
type: "object" type: "array"
name: items:
type: "object" type: "object"
additionalProperties: false additionalProperties: false
required: required:
@ -20,4 +20,4 @@ items:
irc: irc:
type: "string" type: "string"
email: email:
type: "string" type: "string"