Commit graph

10 commits

Author SHA1 Message Date
Florian Klink
2a4d5516e4 submitqueue.runner: fix typo in comment 2019-12-04 11:43:32 +01:00
Florian Klink
60a81b808c submitqueue.runner.Trigger: return instead of break
We're inside two loops, but when havint to sleep, we want to exit the whole trigger function.
2019-12-03 23:55:08 +01:00
Florian Klink
77fe8a8e1f runner: use submittable field
This simplifies logic, and makes it generally more usable with other
project submit rules.
2019-12-03 10:20:02 +01:00
Florian Klink
8129de3b9a runner: check gerrit.Refresh() for errors 2019-12-02 14:37:38 +01:00
Florian Klink
04a24a0c60 Use Runner
This revamps code quite a bit. Series handling has been moved into the
gerrit client, it also handles caching.

The Runner logic itself has been greatly simplified.

The runner logic has been moved into the runner.go, submitqueue.go is
gone.

The "per-run result object" concept has been dropped - we instead just
use annotated logs.

Also, we switched to apex/log
2019-12-02 10:00:32 +01:00
Florian Klink
7bafef7a84 runner: document NewRunner 2019-11-27 19:49:39 +01:00
Florian Klink
b65f56c6e2 frontend: return state atomically, remove GetSubmitQueue 2019-11-25 18:12:38 +01:00
Florian Klink
266c27d1d0 foo 2019-11-25 17:42:48 +01:00
Florian Klink
40b2f11543 frontend: only pass runner to MakeFrontend, add Runner.GetSubmitQueue() 2019-11-25 17:35:11 +01:00
Florian Klink
057294830e frontend: show submittable status and URL, add runner, revamp logging 2019-11-21 16:13:50 +01:00