diff options
author | jonmv <venstad@gmail.com> | 2023-01-02 11:33:32 +0100 |
---|---|---|
committer | jonmv <venstad@gmail.com> | 2023-01-02 11:33:32 +0100 |
commit | ff96cefe5a0cc8f940b235e4e90e899207919479 (patch) | |
tree | f3c75ae01f6ede7a6acd82f1bc42779050680270 /controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/JobList.java | |
parent | 511829756d97ff029e39e3d3ceedb6517ff5d5d9 (diff) |
Test jobs have no permanent runtime versions
Diffstat (limited to 'controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/JobList.java')
-rw-r--r-- | controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/JobList.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/JobList.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/JobList.java index 3074c9ac3ba..f3019631ee7 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/JobList.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/JobList.java @@ -111,6 +111,11 @@ public class JobList extends AbstractFilteringList<JobStatus, JobList> { return matching(job -> job.id().type().isProduction()); } + /** Returns the subset of jobs which are test jobs. */ + public JobList test() { + return matching(job -> job.id().type().isTest()); + } + /** Returns the jobs with any runs failing with non-out-of-test-capacity on the given versions — targets only for system test, everything present otherwise. */ public JobList failingHardOn(Versions versions) { return matching(job -> ! RunList.from(job) |