Bug 1388738

Summary: Strategy needed to find new/missed advisories in case of down time
Product: [Community] rpm-test-trigger Reporter: Roman Joost <rjoost>
Component: generalAssignee: beaker-dev-list
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unreleasedCC: jhutar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1358534    
Bug Blocks:    

Description Roman Joost 2016-10-26 04:45:19 UTC
In case the rpm-test-trigger service is down (e.g. after crash) for a certain period of time (e.g. 60s to hours), we'll need a strategy to find advisories which changed state during the down time to scheduled tests.

Comment 1 Roman Joost 2016-10-27 01:06:36 UTC
We need structured results implemented by the Errata team to implement this. See Bug 1342878

Comment 2 Roman Joost 2016-11-22 23:54:12 UTC
We had a discussion about this to use durable queues. But we came to the conclusion that this might not be a reliable solution, since message queues might fail in times of down time as well.

Perhaps it can be as simple as: query ET for new items without a test result recorded.

Comment 5 Jan Hutaƙ 2017-08-07 09:10:49 UTC
Anyway, no matter if https://git.beaker-project.org/cgit/rpm-test-trigger/ is going to consume errata or builds, it still needs to have some stored value which would say what errata/builds were already processed or what was the last time it got any command right? (I'm just trying to figure out what is the objective here, sorry for dull questions)

In case of Koji/Brew, we might save taskID?

$ koji list-tasks --channel default
ID       Pri  Owner                State    Arch       Name
21083515 20   ellert               OPEN     noarch     build (rawhide, root-6.10.04-1.fc27.src.rpm)
21083520 19   ellert               OPEN     aarch64     +buildArch (root-6.10.04-1.fc27.src.rpm, aarch64)
21083522 19   ellert               OPEN     armhfp      +buildArch (root-6.10.04-1.fc27.src.rpm, armv7hl)
21083524 19   ellert               OPEN     i386        +buildArch (root-6.10.04-1.fc27.src.rpm, i686)
21085114 20   rjones               OPEN     noarch     build (f27-ocaml2, /rpms/ocaml:59545eed91afae7ab19d8010e3ea964372653614)
21085164 19   rjones               OPEN     aarch64     +buildArch (ocaml-4.05.0-2.fc27.src.rpm, aarch64)
[...]