1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-22 10:23:09 +00:00
os-autoinst-distri-fedora/lib
Adam Williamson 119229cce7 Add a needle cleanup script, enhance the needle check script
This adds a new script - cleanup-needles.py - to use for cleaning
up old needles. It has to be used in conjunction with a database
query; the comment at the top explains how to do that query and
export the needed information. It produces a git commit with
needles that haven't matched since a certain date (specified in
the sql query) removed, subject to a 'keeplist' of needles we
keep even if they seem to be old.

I also enhanced check-needles.py to check for cases where tests
seem to be trying to match a tag we have no needles for. This
was necessary to find cases where the cleanup script was too
aggressive (i.e. the things that wound up in the 'keeplist'),
but it also turned out to find quite a lot of cases where the
code really *was* looking for a needle that had gone in a
previous cleanup or that never existed; the commits before this
one clean up a lot of those cases.

The code to decide which string literals are needle tags is
pretty dumb and hacky and needs some manual cueing sometimes -
that's what the `# testtag` changes in this commit are for.
Making it smarter would probably require this script to get a
lot more complicated and either incorporate or become a
tokenizer, which I don't really want to do.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-05-04 09:57:15 -07:00
..
anaconda.pm Drop a no-op workaround (needle hasn't existed since 2021) 2023-05-04 09:57:14 -07:00
anacondatest.pm Add a perltidy check and apply it to the entire codebase 2022-07-28 14:38:38 -07:00
bugzilla.pm Add a perltidy check and apply it to the entire codebase 2022-07-28 14:38:38 -07:00
cockpit.pm Clean up minimal browser environment setup 2023-03-02 13:51:08 -08:00
fedoradistribution.pm Update serial console handling for upstream changes 2023-05-02 12:24:26 -07:00
freeipa.pm Add a needle cleanup script, enhance the needle check script 2023-05-04 09:57:15 -07:00
installedtest.pm _post_fail_hook: only do advisory package checks when appropriate 2022-12-14 08:47:46 -08:00
modularity.pm Add a perltidy check and apply it to the entire codebase 2022-07-28 14:38:38 -07:00
packagetest.pm Use pandoc-common instead of python3-kickstart for package tests 2023-03-18 09:44:02 -07:00
tapnet.pm tapnet: don't double-declare @forwards 2022-05-26 14:49:57 -07:00
utils.pm Drop click_unwanted_notifications (and associated needle) 2023-05-04 09:57:15 -07:00