The Fedora Media Writer table on the Installation page uses fancy
wiki magic for the column titles. This kinda breaks our parser
(because the pipe in the wiki magic isn't doing what we expect
pipes in result column titles to do). Even if we fixed the parser
so we emitted these column titles in 'raw' form they'd be very
awkward to work with. So instead let's special case them and
output something easier for clients to work with. The relevant
column titles get turned into:
Fedora CurrentFedoraVersion - 1
Fedora CurrentFedoraVersion
Fedora CurrentFedoraVersion + 1
this should be easy to work with.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
The current fuzzy check causes a problem for
QA:Testcase_partitioning_custom_btrfs , because we also have a
row for QA:Testcase_partitioning_custom_btrfs_preserve_home . So
we always get two rows when searching for
"QA:Testcase_partitioning_custom_btrfs". To solve this, let's try
an equality check, and if that returns any rows, go with that;
only do the 'in' check if the equality check gives no rows.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
While reviewing a relval PR, I noticed the testcase-stats output
for Cloud is wrong - it includes x86_64 and aarch64 sections as
it should, but also a 'Test Matrix' section. This turns out to be
because of a problem in `get_resultrows`. What we try to do here
is find all the text from the start of a given section to the
start of the *next* section, then find any result rows in that
text, and associate them with that section. We use the byteoffset
value of the next section to decide where it starts. However, it
turns out sections that come in from a transcluded template - as
is the case for the section after "Test Results" on the Cloud
page - have a byteoffset of `None`. So we wind up using a slice
of [128:None] as 'all the text in the Test Results section',
which is all the text from 128 to the end. So we count *all*
the results in the page as part of the Test Results section,
then count them again as part of the sections they're really in.
To hack around this, instead of always taking the byteoffset of
the next section, let's keep going through sections until we
hit one with a byteoffset that isn't `None`, and use that (if
there is one; if not, it means we're in the last non-template
section on the page). This is very definitely a hack but should
work OK so long as there's never a result row in a section
transcluded from a template. This whole thing is a hack anyhow.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
Now it looks like candidate compose messages are being published
under yet two more different topics, so we have to query those
too. Let's be smart and figure out only the relevant topic to
query based on the event's milestone.
Also, update the tests to use current data (otherwise the data
we're testing against is a lie compared to the topic we query on)
and check the URLs we query.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
The image uploader tweaked the topics it published on. We can't
easily tell if we're branched or rawhide here, so just query
both, the filter on compose ID later will ensure we only consider
relevant messages.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
I think we used pytz originally for Python 2 compatibility, there
is no datetime.timezone in Python 2. But our baseline now is
Python 3.6, so this is fine and avoids an external dependency.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
In mwclient 0.11.0 we tweaked the API for the various listing
functions to prefer clearly-named `max_items` and `api_chunk_size`
args rather than the old `limit` arg (which read like it meant
the former, but actually meant the latter). `limit` is still
accepted, but triggers a deprecation warning, so we should change
it here. Let's use max_items as we really just want one item (in
practice either would have the same effect, but this is clearer).
Signed-off-by: Adam Williamson <awilliam@redhat.com>
We replaced fedimg with fedora-image-uploader. It publishes very
different messages. This adapts the AMI page seedtext to the new
message topics and format. It's designed to work whether or not
https://pagure.io/cloud-image-uploader/pull-request/28 is merged.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
"ELN" is showing up soon, but let's just make this general - we
assume if the version isn't Rawhide or a digit, it's not something
we have validation events for. We can always update this later if
it becomes not true.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
This type denotes 'experimental' osbuild-built live images; if
and when we make osbuild the "official" builder of lives, they
will have the normal 'live' type, not 'live-osbuild'. We should
bury these images down the download table, not put them right
at the top as we do currently.
Signed-off-by: Adam Williamson <awilliam@redhat.com>