author | Fabian Huch <huch@in.tum.de> |
Fri, 07 Jun 2024 15:47:19 +0200 | |
changeset 80281 | 17d2f775907a |
parent 80261 | e3f472221f8f |
child 80411 | a9fce67fb8b2 |
permissions | -rw-r--r-- |
77570 | 1 |
/* Title: Pure/Admin/ci_build.scala |
75628
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
2 |
Author: Lars Hupel and Fabian Huch, TU Munich |
63288
e0513d6e4916
start moving actual Jenkins build scripts into the repository
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
3 |
|
e0513d6e4916
start moving actual Jenkins build scripts into the repository
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
4 |
Build profile for continuous integration services. |
e0513d6e4916
start moving actual Jenkins build scripts into the repository
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
5 |
*/ |
e0513d6e4916
start moving actual Jenkins build scripts into the repository
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
6 |
|
e0513d6e4916
start moving actual Jenkins build scripts into the repository
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
7 |
package isabelle |
e0513d6e4916
start moving actual Jenkins build scripts into the repository
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
8 |
|
e0513d6e4916
start moving actual Jenkins build scripts into the repository
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
9 |
|
80281
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
10 |
import scala.collection.mutable |
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
11 |
|
76222
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
12 |
import java.time.ZoneId |
63472 | 13 |
import java.time.format.DateTimeFormatter |
68013 | 14 |
import java.util.{Properties => JProperties, Map => JMap} |
75631
809c37bfd823
clarified IO, following Java 11 and Isabelle/Scala;
wenzelm
parents:
75630
diff
changeset
|
15 |
import java.nio.file.Files |
63328
7a8515c58271
read Java system properties from ISABELLE_CI_PROPERTIES
Lars Hupel <lars.hupel@mytum.de>
parents:
63294
diff
changeset
|
16 |
|
7a8515c58271
read Java system properties from ISABELLE_CI_PROPERTIES
Lars Hupel <lars.hupel@mytum.de>
parents:
63294
diff
changeset
|
17 |
|
76222
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
18 |
object CI_Build { |
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
19 |
/* build result */ |
75628
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
20 |
|
73934
39e0c7fac69e
jenkins: pre/post-hook results
Fabian Huch <huch@in.tum.de>
parents:
73359
diff
changeset
|
21 |
case class Result(rc: Int) |
75393 | 22 |
case object Result { |
74306 | 23 |
def ok: Result = Result(Process_Result.RC.ok) |
24 |
def error: Result = Result(Process_Result.RC.error) |
|
73934
39e0c7fac69e
jenkins: pre/post-hook results
Fabian Huch <huch@in.tum.de>
parents:
73359
diff
changeset
|
25 |
} |
39e0c7fac69e
jenkins: pre/post-hook results
Fabian Huch <huch@in.tum.de>
parents:
73359
diff
changeset
|
26 |
|
75628
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
27 |
|
76222
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
28 |
/* build config */ |
75628
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
29 |
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
30 |
case class Build_Config( |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
31 |
documents: Boolean = true, |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
32 |
clean: Boolean = true, |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
33 |
include: List[Path] = Nil, |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
34 |
select: List[Path] = Nil, |
78821
4c5aadf1cb48
prefer Isabelle options for CI mail settings over ci.properties;
Fabian Huch <huch@in.tum.de>
parents:
77570
diff
changeset
|
35 |
pre_hook: Options => Result = _ => Result.ok, |
4c5aadf1cb48
prefer Isabelle options for CI mail settings over ci.properties;
Fabian Huch <huch@in.tum.de>
parents:
77570
diff
changeset
|
36 |
post_hook: (Build.Results, Options, Time) => Result = (_, _, _) => Result.ok, |
4c5aadf1cb48
prefer Isabelle options for CI mail settings over ci.properties;
Fabian Huch <huch@in.tum.de>
parents:
77570
diff
changeset
|
37 |
selection: Sessions.Selection = Sessions.Selection.empty) |
75628
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
38 |
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
39 |
|
78830
348a5606baf3
use mail module in CI build;
Fabian Huch <huch@in.tum.de>
parents:
78821
diff
changeset
|
40 |
def mail_server(options: Options): Mail.Server = { |
348a5606baf3
use mail module in CI build;
Fabian Huch <huch@in.tum.de>
parents:
78821
diff
changeset
|
41 |
val sender = |
348a5606baf3
use mail module in CI build;
Fabian Huch <huch@in.tum.de>
parents:
78821
diff
changeset
|
42 |
proper_string(options.string("ci_mail_sender")).map(Mail.address) getOrElse |
348a5606baf3
use mail module in CI build;
Fabian Huch <huch@in.tum.de>
parents:
78821
diff
changeset
|
43 |
Mail.default_address |
348a5606baf3
use mail module in CI build;
Fabian Huch <huch@in.tum.de>
parents:
78821
diff
changeset
|
44 |
|
348a5606baf3
use mail module in CI build;
Fabian Huch <huch@in.tum.de>
parents:
78821
diff
changeset
|
45 |
new Mail.Server(sender, |
348a5606baf3
use mail module in CI build;
Fabian Huch <huch@in.tum.de>
parents:
78821
diff
changeset
|
46 |
smtp_host = options.string("ci_mail_smtp_host"), |
348a5606baf3
use mail module in CI build;
Fabian Huch <huch@in.tum.de>
parents:
78821
diff
changeset
|
47 |
smtp_port = options.int("ci_mail_smtp_port"), |
348a5606baf3
use mail module in CI build;
Fabian Huch <huch@in.tum.de>
parents:
78821
diff
changeset
|
48 |
user = options.string("ci_mail_user"), |
348a5606baf3
use mail module in CI build;
Fabian Huch <huch@in.tum.de>
parents:
78821
diff
changeset
|
49 |
password = options.string("ci_mail_password")) |
348a5606baf3
use mail module in CI build;
Fabian Huch <huch@in.tum.de>
parents:
78821
diff
changeset
|
50 |
} |
348a5606baf3
use mail module in CI build;
Fabian Huch <huch@in.tum.de>
parents:
78821
diff
changeset
|
51 |
|
80281
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
52 |
|
76222
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
53 |
/* ci build jobs */ |
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
54 |
|
80281
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
55 |
sealed trait Hosts { |
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
56 |
def hosts_spec: String |
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
57 |
def max_jobs: Option[Int] |
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
58 |
def prefs: List[Options.Spec] |
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
59 |
def numa_shuffling: Boolean |
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
60 |
def build_cluster: Boolean |
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
61 |
} |
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
62 |
|
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
63 |
case class Local(host_spec: String, jobs: Int, threads: Int, numa_shuffling: Boolean = true) |
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
64 |
extends Hosts { |
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
65 |
def hosts_spec: String = host_spec |
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
66 |
def max_jobs: Option[Int] = Some(jobs) |
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
67 |
def prefs: List[Options.Spec] = List(Options.Spec.eq("threads", threads.toString)) |
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
68 |
def build_cluster: Boolean = false |
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
69 |
} |
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
70 |
|
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
71 |
case class Cluster(hosts_spec: String, numa_shuffling: Boolean = true) extends Hosts { |
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
72 |
def max_jobs: Option[Int] = None |
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
73 |
def prefs: List[Options.Spec] = Nil |
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
74 |
def build_cluster: Boolean = true |
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
75 |
} |
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
76 |
|
80261
e3f472221f8f
add triggers to ci jobs: on commit vs timed;
Fabian Huch <huch@in.tum.de>
parents:
80260
diff
changeset
|
77 |
sealed trait Trigger |
e3f472221f8f
add triggers to ci jobs: on commit vs timed;
Fabian Huch <huch@in.tum.de>
parents:
80260
diff
changeset
|
78 |
case object On_Commit extends Trigger |
e3f472221f8f
add triggers to ci jobs: on commit vs timed;
Fabian Huch <huch@in.tum.de>
parents:
80260
diff
changeset
|
79 |
|
e3f472221f8f
add triggers to ci jobs: on commit vs timed;
Fabian Huch <huch@in.tum.de>
parents:
80260
diff
changeset
|
80 |
object Timed { |
e3f472221f8f
add triggers to ci jobs: on commit vs timed;
Fabian Huch <huch@in.tum.de>
parents:
80260
diff
changeset
|
81 |
def nightly(start_time: Time = Time.zero): Timed = |
e3f472221f8f
add triggers to ci jobs: on commit vs timed;
Fabian Huch <huch@in.tum.de>
parents:
80260
diff
changeset
|
82 |
Timed { (before, now) => |
e3f472221f8f
add triggers to ci jobs: on commit vs timed;
Fabian Huch <huch@in.tum.de>
parents:
80260
diff
changeset
|
83 |
val start0 = before.midnight + start_time |
e3f472221f8f
add triggers to ci jobs: on commit vs timed;
Fabian Huch <huch@in.tum.de>
parents:
80260
diff
changeset
|
84 |
val start1 = now.midnight + start_time |
e3f472221f8f
add triggers to ci jobs: on commit vs timed;
Fabian Huch <huch@in.tum.de>
parents:
80260
diff
changeset
|
85 |
(before.time < start0.time && start0.time <= now.time) || |
e3f472221f8f
add triggers to ci jobs: on commit vs timed;
Fabian Huch <huch@in.tum.de>
parents:
80260
diff
changeset
|
86 |
(before.time < start1.time && start1.time <= now.time) |
e3f472221f8f
add triggers to ci jobs: on commit vs timed;
Fabian Huch <huch@in.tum.de>
parents:
80260
diff
changeset
|
87 |
} |
e3f472221f8f
add triggers to ci jobs: on commit vs timed;
Fabian Huch <huch@in.tum.de>
parents:
80260
diff
changeset
|
88 |
} |
80281
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
89 |
|
80261
e3f472221f8f
add triggers to ci jobs: on commit vs timed;
Fabian Huch <huch@in.tum.de>
parents:
80260
diff
changeset
|
90 |
case class Timed(in_interval: (Date, Date) => Boolean) extends Trigger |
e3f472221f8f
add triggers to ci jobs: on commit vs timed;
Fabian Huch <huch@in.tum.de>
parents:
80260
diff
changeset
|
91 |
|
80260
ed9b1598d293
manage components of ci builds;
Fabian Huch <huch@in.tum.de>
parents:
80245
diff
changeset
|
92 |
sealed case class Job( |
ed9b1598d293
manage components of ci builds;
Fabian Huch <huch@in.tum.de>
parents:
80245
diff
changeset
|
93 |
name: String, |
ed9b1598d293
manage components of ci builds;
Fabian Huch <huch@in.tum.de>
parents:
80245
diff
changeset
|
94 |
description: String, |
80281
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
95 |
hosts: Hosts, |
80260
ed9b1598d293
manage components of ci builds;
Fabian Huch <huch@in.tum.de>
parents:
80245
diff
changeset
|
96 |
config: Build_Config, |
80261
e3f472221f8f
add triggers to ci jobs: on commit vs timed;
Fabian Huch <huch@in.tum.de>
parents:
80260
diff
changeset
|
97 |
components: List[String] = Nil, |
e3f472221f8f
add triggers to ci jobs: on commit vs timed;
Fabian Huch <huch@in.tum.de>
parents:
80260
diff
changeset
|
98 |
trigger: Trigger = On_Commit |
80260
ed9b1598d293
manage components of ci builds;
Fabian Huch <huch@in.tum.de>
parents:
80245
diff
changeset
|
99 |
) { |
76222
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
100 |
override def toString: String = name |
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
101 |
} |
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
102 |
|
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
103 |
private lazy val known_jobs: List[Job] = |
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
104 |
Isabelle_System.make_services(classOf[Isabelle_CI_Builds]).flatMap(_.jobs) |
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
105 |
|
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
106 |
def show_jobs: String = |
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
107 |
cat_lines(known_jobs.sortBy(_.name).map(job => job.name + " - " + job.description)) |
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
108 |
|
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
109 |
def the_job(name: String): Job = known_jobs.find(job => job.name == name) getOrElse |
76225 | 110 |
error("Unknown job " + quote(name)) |
76222
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
111 |
|
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
112 |
val timing = |
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
113 |
Job( |
76225 | 114 |
"benchmark", "runs benchmark and timing sessions", |
80281
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
115 |
Local("benchmark", jobs = 1, threads = 6, numa_shuffling = false), |
76222
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
116 |
Build_Config( |
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
117 |
documents = false, |
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
118 |
select = List( |
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
119 |
Path.explode("$ISABELLE_HOME/src/Benchmarks")), |
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
120 |
selection = Sessions.Selection(session_groups = List("timing")))) |
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
121 |
|
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
122 |
|
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
123 |
/* session status */ |
75628
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
124 |
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
125 |
sealed abstract class Status(val str: String) { |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
126 |
def merge(that: Status): Status = (this, that) match { |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
127 |
case (Ok, s) => s |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
128 |
case (Failed, _) => Failed |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
129 |
case (Skipped, Failed) => Failed |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
130 |
case (Skipped, _) => Skipped |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
131 |
} |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
132 |
} |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
133 |
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
134 |
object Status { |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
135 |
def merge(statuses: List[Status]): Status = |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
136 |
statuses.foldLeft(Ok: Status)(_ merge _) |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
137 |
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
138 |
def from_results(results: Build.Results, session: String): Status = |
75629 | 139 |
if (results.cancelled(session)) Skipped |
140 |
else if (results(session).ok) Ok |
|
141 |
else Failed |
|
75628
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
142 |
} |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
143 |
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
144 |
case object Ok extends Status("ok") |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
145 |
case object Skipped extends Status("skipped") |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
146 |
case object Failed extends Status("failed") |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
147 |
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
148 |
|
76222
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
149 |
/* ci build */ |
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
150 |
|
75393 | 151 |
private def compute_timing(results: Build.Results, group: Option[String]): Timing = { |
75629 | 152 |
val timings = |
153 |
results.sessions.collect { |
|
154 |
case session if group.forall(results.info(session).groups.contains(_)) => |
|
155 |
results(session).timing |
|
156 |
} |
|
73359 | 157 |
timings.foldLeft(Timing.zero)(_ + _) |
63385 | 158 |
} |
159 |
||
75628
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
160 |
private def with_documents(options: Options, config: Build_Config): Options = { |
75629 | 161 |
if (config.documents) { |
79660 | 162 |
options + "browser_info" + "document=pdf" + "document_variants=document:outline=/proof,/ML" |
75629 | 163 |
} |
164 |
else options |
|
63894
7534eec7cfad
benchmark doesn't need to build documents
Lars Hupel <lars.hupel@mytum.de>
parents:
63685
diff
changeset
|
165 |
} |
7534eec7cfad
benchmark doesn't need to build documents
Lars Hupel <lars.hupel@mytum.de>
parents:
63685
diff
changeset
|
166 |
|
75628
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
167 |
def hg_id(path: Path): String = |
80245
b6551e0c70c4
support ci job via hg_sync (cf. 7883f221d6d3);
Fabian Huch <huch@in.tum.de>
parents:
80094
diff
changeset
|
168 |
if (Mercurial.Hg_Sync.ok(path)) File.read(path + Mercurial.Hg_Sync.PATH_ID) |
b6551e0c70c4
support ci job via hg_sync (cf. 7883f221d6d3);
Fabian Huch <huch@in.tum.de>
parents:
80094
diff
changeset
|
169 |
else Mercurial.repository(path).id() |
63385 | 170 |
|
75628
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
171 |
def print_section(title: String): Unit = |
80094 | 172 |
println("\n=== " + title + " ===\n") |
63349 | 173 |
|
80281
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
174 |
def ci_build(options: Options, build_hosts: List[Build_Cluster.Host], job: Job): Unit = { |
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
175 |
val hosts = job.hosts |
76222
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
176 |
val config = job.config |
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
177 |
|
75628
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
178 |
val isabelle_home = Path.explode(Isabelle_System.getenv_strict("ISABELLE_HOME")) |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
179 |
val isabelle_id = hg_id(isabelle_home) |
63288
e0513d6e4916
start moving actual Jenkins build scripts into the repository
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
180 |
|
76222
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
181 |
val start_time = Time.now() |
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
182 |
val formatted_time = start_time.instant.atZone(ZoneId.systemDefault).format( |
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
183 |
DateTimeFormatter.RFC_1123_DATE_TIME) |
63385 | 184 |
|
63349 | 185 |
print_section("CONFIGURATION") |
64081 | 186 |
println(Build_Log.Settings.show()) |
63328
7a8515c58271
read Java system properties from ISABELLE_CI_PROPERTIES
Lars Hupel <lars.hupel@mytum.de>
parents:
63294
diff
changeset
|
187 |
|
80281
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
188 |
val build_options = with_documents(options, config) + "parallel_proofs=1" + "system_heaps" |
63288
e0513d6e4916
start moving actual Jenkins build scripts into the repository
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
189 |
|
80281
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
190 |
println(hosts) |
69120
9d3b41732fe0
Jenkins: detect machine; adjust job parameters accordingly
Lars Hupel <lars.hupel@mytum.de>
parents:
68498
diff
changeset
|
191 |
|
63349 | 192 |
print_section("BUILD") |
80094 | 193 |
println("Build started at " + formatted_time) |
194 |
println("Isabelle id " + isabelle_id) |
|
78821
4c5aadf1cb48
prefer Isabelle options for CI mail settings over ci.properties;
Fabian Huch <huch@in.tum.de>
parents:
77570
diff
changeset
|
195 |
val pre_result = config.pre_hook(options) |
63288
e0513d6e4916
start moving actual Jenkins build scripts into the repository
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
196 |
|
63472 | 197 |
print_section("LOG") |
75628
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
198 |
val (results, elapsed_time) = { |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
199 |
val progress = new Console_Progress(verbose = true) |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
200 |
val start_time = Time.now() |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
201 |
val results = progress.interrupt_handler { |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
202 |
Build.build( |
80281
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
203 |
build_options ++ hosts.prefs, |
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
204 |
build_hosts = build_hosts, |
75628
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
205 |
selection = config.selection, |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
206 |
progress = progress, |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
207 |
clean_build = config.clean, |
80281
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
208 |
numa_shuffling = hosts.numa_shuffling, |
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
209 |
max_jobs = hosts.max_jobs, |
75628
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
210 |
dirs = config.include, |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
211 |
select_dirs = config.select) |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
212 |
} |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
213 |
val end_time = Time.now() |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
214 |
(results, end_time - start_time) |
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
75393
diff
changeset
|
215 |
} |
63349 | 216 |
|
217 |
print_section("TIMING") |
|
63385 | 218 |
|
219 |
val groups = results.sessions.map(results.info).flatMap(_.groups) |
|
220 |
for (group <- groups) |
|
80094 | 221 |
println("Group " + group + ": " + compute_timing(results, Some(group)).message_resources) |
63387
3395fe5e3893
more accurate total timing
Lars Hupel <lars.hupel@mytum.de>
parents:
63385
diff
changeset
|
222 |
|
3395fe5e3893
more accurate total timing
Lars Hupel <lars.hupel@mytum.de>
parents:
63385
diff
changeset
|
223 |
val total_timing = compute_timing(results, None).copy(elapsed = elapsed_time) |
3395fe5e3893
more accurate total timing
Lars Hupel <lars.hupel@mytum.de>
parents:
63385
diff
changeset
|
224 |
println("Overall: " + total_timing.message_resources) |
63288
e0513d6e4916
start moving actual Jenkins build scripts into the repository
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
225 |
|
e0513d6e4916
start moving actual Jenkins build scripts into the repository
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
226 |
if (!results.ok) { |
63349 | 227 |
print_section("FAILED SESSIONS") |
63288
e0513d6e4916
start moving actual Jenkins build scripts into the repository
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
228 |
|
e0513d6e4916
start moving actual Jenkins build scripts into the repository
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
229 |
for (name <- results.sessions) { |
80094 | 230 |
if (results.cancelled(name)) println("Session " + name + ": CANCELLED") |
63288
e0513d6e4916
start moving actual Jenkins build scripts into the repository
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
231 |
else { |
e0513d6e4916
start moving actual Jenkins build scripts into the repository
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
232 |
val result = results(name) |
80094 | 233 |
if (!result.ok) println("Session " + name + ": FAILED " + result.rc) |
63288
e0513d6e4916
start moving actual Jenkins build scripts into the repository
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
234 |
} |
e0513d6e4916
start moving actual Jenkins build scripts into the repository
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
235 |
} |
e0513d6e4916
start moving actual Jenkins build scripts into the repository
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
236 |
} |
e0513d6e4916
start moving actual Jenkins build scripts into the repository
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
237 |
|
78821
4c5aadf1cb48
prefer Isabelle options for CI mail settings over ci.properties;
Fabian Huch <huch@in.tum.de>
parents:
77570
diff
changeset
|
238 |
val post_result = config.post_hook(results, options, start_time) |
63288
e0513d6e4916
start moving actual Jenkins build scripts into the repository
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
239 |
|
75630 | 240 |
sys.exit(List(pre_result.rc, results.rc, post_result.rc).max) |
63288
e0513d6e4916
start moving actual Jenkins build scripts into the repository
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
241 |
} |
76222
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
242 |
|
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
243 |
|
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
244 |
/* Isabelle tool wrapper */ |
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
245 |
|
78821
4c5aadf1cb48
prefer Isabelle options for CI mail settings over ci.properties;
Fabian Huch <huch@in.tum.de>
parents:
77570
diff
changeset
|
246 |
val isabelle_tool = Isabelle_Tool("ci_build", "builds Isabelle jobs in ci environments", |
4c5aadf1cb48
prefer Isabelle options for CI mail settings over ci.properties;
Fabian Huch <huch@in.tum.de>
parents:
77570
diff
changeset
|
247 |
Scala_Project.here, |
4c5aadf1cb48
prefer Isabelle options for CI mail settings over ci.properties;
Fabian Huch <huch@in.tum.de>
parents:
77570
diff
changeset
|
248 |
{ args => |
4c5aadf1cb48
prefer Isabelle options for CI mail settings over ci.properties;
Fabian Huch <huch@in.tum.de>
parents:
77570
diff
changeset
|
249 |
/* arguments */ |
4c5aadf1cb48
prefer Isabelle options for CI mail settings over ci.properties;
Fabian Huch <huch@in.tum.de>
parents:
77570
diff
changeset
|
250 |
|
4c5aadf1cb48
prefer Isabelle options for CI mail settings over ci.properties;
Fabian Huch <huch@in.tum.de>
parents:
77570
diff
changeset
|
251 |
var options = Options.init() |
80281
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
252 |
val build_hosts = new mutable.ListBuffer[Build_Cluster.Host] |
78821
4c5aadf1cb48
prefer Isabelle options for CI mail settings over ci.properties;
Fabian Huch <huch@in.tum.de>
parents:
77570
diff
changeset
|
253 |
|
4c5aadf1cb48
prefer Isabelle options for CI mail settings over ci.properties;
Fabian Huch <huch@in.tum.de>
parents:
77570
diff
changeset
|
254 |
val getopts = Getopts(""" |
4c5aadf1cb48
prefer Isabelle options for CI mail settings over ci.properties;
Fabian Huch <huch@in.tum.de>
parents:
77570
diff
changeset
|
255 |
Usage: isabelle ci_build [OPTIONS] JOB |
4c5aadf1cb48
prefer Isabelle options for CI mail settings over ci.properties;
Fabian Huch <huch@in.tum.de>
parents:
77570
diff
changeset
|
256 |
|
4c5aadf1cb48
prefer Isabelle options for CI mail settings over ci.properties;
Fabian Huch <huch@in.tum.de>
parents:
77570
diff
changeset
|
257 |
Options are: |
80281
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
258 |
-H HOSTS host specifications of the form NAMES:PARAMETERS (separated by commas) |
78821
4c5aadf1cb48
prefer Isabelle options for CI mail settings over ci.properties;
Fabian Huch <huch@in.tum.de>
parents:
77570
diff
changeset
|
259 |
-o OPTION override Isabelle system OPTION (via NAME=VAL or NAME) |
76222
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
260 |
|
80281
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
261 |
Runs Isabelle builds in ci environment. For cluster builds, build hosts must |
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
262 |
be passed explicitly (no registry). |
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
263 |
|
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
264 |
The following build jobs are available: |
76222
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
265 |
|
78821
4c5aadf1cb48
prefer Isabelle options for CI mail settings over ci.properties;
Fabian Huch <huch@in.tum.de>
parents:
77570
diff
changeset
|
266 |
""" + Library.indent_lines(4, show_jobs) + "\n", |
80281
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
267 |
"o:" -> (arg => options = options + arg), |
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
268 |
"H:" -> (arg => build_hosts ++= Build_Cluster.Host.parse(Registry.load(Nil), arg))) |
76222
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
269 |
|
78821
4c5aadf1cb48
prefer Isabelle options for CI mail settings over ci.properties;
Fabian Huch <huch@in.tum.de>
parents:
77570
diff
changeset
|
270 |
val more_args = getopts(args) |
76222
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
271 |
|
78821
4c5aadf1cb48
prefer Isabelle options for CI mail settings over ci.properties;
Fabian Huch <huch@in.tum.de>
parents:
77570
diff
changeset
|
272 |
val job = more_args match { |
4c5aadf1cb48
prefer Isabelle options for CI mail settings over ci.properties;
Fabian Huch <huch@in.tum.de>
parents:
77570
diff
changeset
|
273 |
case job :: Nil => the_job(job) |
4c5aadf1cb48
prefer Isabelle options for CI mail settings over ci.properties;
Fabian Huch <huch@in.tum.de>
parents:
77570
diff
changeset
|
274 |
case _ => getopts.usage() |
4c5aadf1cb48
prefer Isabelle options for CI mail settings over ci.properties;
Fabian Huch <huch@in.tum.de>
parents:
77570
diff
changeset
|
275 |
} |
76222
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
276 |
|
80281
17d2f775907a
add cluster/hosts configurations to build manager: allows running jobs in parallel on distinct hardware;
Fabian Huch <huch@in.tum.de>
parents:
80261
diff
changeset
|
277 |
ci_build(options, build_hosts.toList, job) |
78821
4c5aadf1cb48
prefer Isabelle options for CI mail settings over ci.properties;
Fabian Huch <huch@in.tum.de>
parents:
77570
diff
changeset
|
278 |
}) |
76222
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
279 |
} |
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
280 |
|
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
281 |
class Isabelle_CI_Builds(val jobs: CI_Build.Job*) extends Isabelle_System.Service |
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
282 |
|
3c4e373922ca
restructured ci profile into modular ci build system;
Fabian Huch <huch@in.tum.de>
parents:
75633
diff
changeset
|
283 |
class CI_Builds extends Isabelle_CI_Builds(CI_Build.timing) |