Add a dashboard for Leap

This commit is contained in:
Guillaume GARDET 2021-12-21 14:34:57 +01:00
parent 60b1558294
commit ac15e513de
3 changed files with 45 additions and 11 deletions

View File

@ -161,17 +161,27 @@ if __name__ == '__main__':
app = Flask(__name__) app = Flask(__name__)
fetcher.add('openSUSE:Factory', nick='Factory', download_url='https://download.opensuse.org/tumbleweed/iso/', openqa_group='openSUSE Tumbleweed', openqa_version='Tumbleweed', openqa_groupid=1) if ("Factory" in args.project):
fetcher.add('openSUSE:Factory:Live', nick='Live') fetcher.add('openSUSE:Factory', nick='Factory', download_url='https://download.opensuse.org/tumbleweed/iso/', openqa_group='openSUSE Tumbleweed', openqa_version='Tumbleweed', openqa_groupid=1)
fetcher.add('openSUSE:Factory:Rings:0-Bootstrap', nick='Ring 0') fetcher.add('openSUSE:Factory:Live', nick='Live')
fetcher.add('openSUSE:Factory:Rings:1-MinimalX', nick='Ring 1') fetcher.add('openSUSE:Factory:Rings:0-Bootstrap', nick='Ring 0')
fetcher.add('openSUSE:Factory:ARM', nick='ARM', download_url='http://download.opensuse.org/ports/aarch64/tumbleweed/iso/', openqa_group='openSUSE Tumbleweed AArch64', openqa_version='Tumbleweed', openqa_groupid=3) fetcher.add('openSUSE:Factory:Rings:1-MinimalX', nick='Ring 1')
fetcher.add('openSUSE:Factory:ARM:Live', nick='ARM Live') fetcher.add('openSUSE:Factory:ARM', nick='ARM', download_url='http://download.opensuse.org/ports/aarch64/tumbleweed/iso/', openqa_group='openSUSE Tumbleweed AArch64', openqa_version='Tumbleweed', openqa_groupid=3)
fetcher.add('openSUSE:Factory:ARM:Rings:0-Bootstrap', nick='ARM Ring 0') fetcher.add('openSUSE:Factory:ARM:Live', nick='ARM Live')
fetcher.add('openSUSE:Factory:ARM:Rings:1-MinimalX', nick='ARM Ring 1') fetcher.add('openSUSE:Factory:ARM:Rings:0-Bootstrap', nick='ARM Ring 0')
fetcher.add('openSUSE:Factory:PowerPC', nick='Power', download_url='http://download.opensuse.org/ports/ppc/tumbleweed/iso/', openqa_group='openSUSE Tumbleweed PowerPC', openqa_version='Tumbleweed', openqa_groupid=4) fetcher.add('openSUSE:Factory:ARM:Rings:1-MinimalX', nick='ARM Ring 1')
fetcher.add('openSUSE:Factory:zSystems', nick='System Z', download_url='http://download.opensuse.org/ports/zsystems/tumbleweed/iso/', openqa_group='openSUSE Tumbleweed s390x', openqa_version='Tumbleweed', openqa_groupid=34) fetcher.add('openSUSE:Factory:PowerPC', nick='Power', download_url='http://download.opensuse.org/ports/ppc/tumbleweed/iso/', openqa_group='openSUSE Tumbleweed PowerPC', openqa_version='Tumbleweed', openqa_groupid=4)
fetcher.add('openSUSE:Factory:RISCV', nick='Risc V', download_url='http://download.opensuse.org/ports/riscv/tumbleweed/iso/') fetcher.add('openSUSE:Factory:zSystems', nick='System Z', download_url='http://download.opensuse.org/ports/zsystems/tumbleweed/iso/', openqa_group='openSUSE Tumbleweed s390x', openqa_version='Tumbleweed', openqa_groupid=34)
fetcher.add('openSUSE:Factory:RISCV', nick='Risc V', download_url='http://download.opensuse.org/ports/riscv/tumbleweed/iso/')
else:
fetcher.add('openSUSE:Leap:15.4', nick='Leap:15.4', download_url='https://download.opensuse.org/distribution/leap/15.4/iso', openqa_group='openSUSE Leap 15', openqa_version='15.4', openqa_groupid=50)
fetcher.add('openSUSE:Backports:SLE-15-SP4', nick='Backports:SLE-15-SP4')
fetcher.add('openSUSE:Leap:15.4:Images', nick='Leap:15.4:Images', openqa_group='openSUSE Leap 15.4 Images', openqa_version='15.4', openqa_groupid=89)
fetcher.add('openSUSE:Leap:15.4:ARM', nick='Leap:15.4:ARM', download_url='https://download.opensuse.org/ports/armv7hl/distribution/leap/15.4/iso', openqa_group='openSUSE Leap 15.4 ARMv7', openqa_version='15.4', openqa_groupid=92)
fetcher.add('openSUSE:Leap:15.4:ARM:Images', nick='Leap:15.4:ARM:Images', openqa_group='openSUSE Leap 15.4 ARMv7 Images', openqa_version='15.4', openqa_groupid=91)
fetcher.add('openSUSE:Leap:15.3:Images', nick='Leap:15.3:Images', openqa_group='openSUSE Leap 15.3 Images', openqa_version='15.3', openqa_groupid=77)
fetcher.add('openSUSE:Leap:15.3:ARM', nick='Leap:15.3:ARM', download_url='https://download.opensuse.org/ports/armv7hl/distribution/leap/15.3/iso', openqa_group='openSUSE Leap 15 ARM', openqa_version='15.3', openqa_groupid=79)
fetcher.add('openSUSE:Leap:15.3:ARM:Images', nick='Leap:15.3:ARM:Images', openqa_group='openSUSE Leap 15.3 ARMv7 Images', openqa_version='15.3', openqa_groupid=83)
with app.app_context(): with app.app_context():
rendered = render_template('dashboard.html', rendered = render_template('dashboard.html',

View File

@ -1,3 +1,8 @@
{% if "Factory" in projects[0].name %}
{% set is_leap = False %}
{% else %}
{% set is_leap = True %}
{% endif%}
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
@ -22,8 +27,14 @@
<tr> <tr>
<th scope="col">Part</th> <th scope="col">Part</th>
<th scope="col">standard</th> <th scope="col">standard</th>
{% if is_leap %}
<th scope="col">ports</th>
<th scope="col">step</th>
{% endif %}
<th scope="col">images</th> <th scope="col">images</th>
{% if not is_leap %}
<th scope="col">containerfile</th> <th scope="col">containerfile</th>
{% endif %}
<th scope="col">source</th> <th scope="col">source</th>
<th scope="col">testing</th> <th scope="col">testing</th>
<th scope="col">published</th> <th scope="col">published</th>
@ -38,6 +49,18 @@
{% include "repository.html" %} {% include "repository.html" %}
{% endwith %} {% endwith %}
</td> </td>
{% if is_leap %}
<td>
{% with repository = 'ports' %}
{% include "repository.html" %}
{% endwith %}
</td>
<td>
{% with repository = 'step' %}
{% include "repository.html" %}
{% endwith %}
</td>
{% endif %}
<td> <td>
{% with repository = 'images' %} {% with repository = 'images' %}
{% include "repository.html" %} {% include "repository.html" %}

View File

@ -21,4 +21,5 @@ pipelines:
- script: |- - script: |-
set -e set -e
PYTHONPATH=$PWD python3 ./dashboard/generate.py -p openSUSE:Factory > dashboard/output/index.html PYTHONPATH=$PWD python3 ./dashboard/generate.py -p openSUSE:Factory > dashboard/output/index.html
PYTHONPATH=$PWD python3 ./dashboard/generate.py -p openSUSE:Leap > dashboard/output/leap.html
rsync -av dashboard/output/ rsync://coolo@195.135.221.140:11873/factory-dashboard.opensuse.org/ rsync -av dashboard/output/ rsync://coolo@195.135.221.140:11873/factory-dashboard.opensuse.org/