Show added/updated needles in editor
As a tester adding/updating needles in failing tests I want to see all potentially matching needles not to re-add needles when someone else already added them before the test was rerun
- adding (saving) a needle in the needle editor updates the web interface to show the added needle, too
- either update the test results with the needle candidate to also show the new needle(s) or additionally to the needle candidates of the failed test also show new ones
#3 Updated by okurz over 4 years ago
- Subject changed from As a tester adding/updating needles in failing tests I want to see all potentially matching needles not to re-add needles when someone else already added them before the test was rerun to Show added/updated needles in editor
- Description updated (diff)
#5 Updated by mkittler over 3 years ago
- Status changed from New to Feedback
As far as I see it, OpenQA currently just commits the new/updated needles to a Git repository. This repo is then read by os-autoinst (when restarting the job) which notifies OpenQA about the new/updated needles. That means that some of the code which does this task is part of os-autoinst.
I'm not sure how to proceed, but see the following options:
- Add a way to let os-autoinst just read new needles (without restarting). This would be triggered by OpenQA after adding/updating a needle.
- Implement adding/updating needles also in OpenQA.
#6 Updated by coolo over 3 years ago
you can't really do that - no matter how you do it, the needles don't make sense out of the context that main.pm sets.
But what you can do is doing analysis based on the tags used. Show the needles created since the failure as information - and filter it by the tags used in the details.
#11 Updated by coolo over 2 years ago
- Subject changed from [tools][dashboard]Show added/updated needles in editor to Show added/updated needles in editor
- Status changed from Feedback to New
- Target version set to Ready
So let's get concrete: what we need:
- the webui stores needle names and the tags used in them whenever it saves a needle
- the webui checks on needle failure the timestamp of the job start and the mismatched tags against given table and warns the user that the needle match is outdated
That's as good as it gets IMO.
#14 Updated by mkittler about 2 years ago
@coolo Not sure whether I understand your 'get concrete' points exactly. My ideas so far I understand:
When the webui commits a needle, it should also store the needle's tags and the date of the last update internally.
This could be done by extending the database table for needles. It would be two new columns:
- Tags: A comma-separated list is likely good enough for this (instead of having an extra table for the tags).
- Last update: eg. via the usual
When opening the needle editor, the webui can then check whether a new needle with the same tags has already been created since the job has been started. In this case it shows a warning pointing to the already created needle.
#16 Updated by okurz about 2 years ago
I reviewed this ticket now after talking to you today: I think all needles that are relevant need to show up as candidates in the needle editor and be available to look at as well. Just mentioning them by name will not help much because a user of the needle editor will need to see the needle images at least.
#17 Updated by mkittler about 2 years ago
Ok - the mentioned WIP PR already covers showing the needles in the 'Needle based on' selection. I've just tested it and it works.
So far it will list any needle which has been created since the job was started and contains at least one relevant tag.
I'm wondering whether the check for failure is actually necessary. Why not showing new needles always, also when opening the needle editor from a match? It would be more consistent.
#22 Updated by mkittler about 2 years ago
- Status changed from In Progress to Resolved
Seems to work on osd (including fix for 'take image from' selection): https://openqa.suse.de/tests/1563503/modules/grub_test/steps/1/edit