src/Pure/Admin/isabelle_cronjob.scala
changeset 69693 06153e2e0cdb
parent 69432 d072f3287ffa
child 69694 2633e166136a
equal deleted inserted replaced
69692:3b777286c3ec 69693:06153e2e0cdb
   159     history: Int = 0,
   159     history: Int = 0,
   160     history_base: String = "build_history_base",
   160     history_base: String = "build_history_base",
   161     options: String = "",
   161     options: String = "",
   162     args: String = "",
   162     args: String = "",
   163     afp: Boolean = false,
   163     afp: Boolean = false,
   164     slow: Boolean = false,
   164     bulky: Boolean = false,
   165     more_hosts: List[String] = Nil,
   165     more_hosts: List[String] = Nil,
   166     detect: SQL.Source = "",
   166     detect: SQL.Source = "",
   167     active: Boolean = true)
   167     active: Boolean = true)
   168   {
   168   {
   169     def ssh_session(context: SSH.Context): SSH.Session =
   169     def ssh_session(context: SSH.Context): SSH.Session =
   175       Build_Log.Prop.build_engine + " = " + SQL.string(Build_History.engine) + " AND " +
   175       Build_Log.Prop.build_engine + " = " + SQL.string(Build_History.engine) + " AND " +
   176       SQL.member(Build_Log.Prop.build_host.ident, host :: more_hosts) +
   176       SQL.member(Build_Log.Prop.build_host.ident, host :: more_hosts) +
   177       (if (detect == "") "" else " AND " + SQL.enclose(detect))
   177       (if (detect == "") "" else " AND " + SQL.enclose(detect))
   178 
   178 
   179     def profile: Build_Status.Profile =
   179     def profile: Build_Status.Profile =
   180       Build_Status.Profile(description, history = history, afp = afp, slow = slow, sql = sql)
   180       Build_Status.Profile(description, history = history, afp = afp, bulky = bulky, sql = sql)
   181 
   181 
   182     def pick(
   182     def pick(
   183       options: Options,
   183       options: Options,
   184       rev: String = "",
   184       rev: String = "",
   185       filter: Item => Boolean = _ => true): Option[(String, Option[String])] =
   185       filter: Item => Boolean = _ => true): Option[(String, Option[String])] =
   214   }
   214   }
   215 
   215 
   216   val remote_builds_old: List[Remote_Build] =
   216   val remote_builds_old: List[Remote_Build] =
   217     List(
   217     List(
   218       Remote_Build("AFP", "lxbroy7",
   218       Remote_Build("AFP", "lxbroy7",
   219           args = "-N -X slow",
   219           args = "-N -X large -X slow",
   220           afp = true,
   220           afp = true,
   221           detect = Build_Log.Prop.build_tags + " = " + SQL.string("AFP")),
   221           detect = Build_Log.Prop.build_tags + " = " + SQL.string("AFP")),
   222       Remote_Build("Poly/ML 5.7 Linux", "lxbroy8",
   222       Remote_Build("Poly/ML 5.7 Linux", "lxbroy8",
   223         history_base = "37074e22e8be",
   223         history_base = "37074e22e8be",
   224         options = "-m32 -B -M1x2,2 -t polyml-5.7 -i 'init_component /home/isabelle/contrib/polyml-5.7'",
   224         options = "-m32 -B -M1x2,2 -t polyml-5.7 -i 'init_component /home/isabelle/contrib/polyml-5.7'",
   313           options = "-m32 -M1x2 -t AFP -P" + n +
   313           options = "-m32 -M1x2 -t AFP -P" + n +
   314             " -e ISABELLE_GHC=ghc" +
   314             " -e ISABELLE_GHC=ghc" +
   315             " -e ISABELLE_MLTON=mlton" +
   315             " -e ISABELLE_MLTON=mlton" +
   316             " -e ISABELLE_OCAML=ocaml -e ISABELLE_OCAMLC=ocamlc" +
   316             " -e ISABELLE_OCAML=ocaml -e ISABELLE_OCAMLC=ocamlc" +
   317             " -e ISABELLE_SMLNJ=/home/smlnj/bin/sml",
   317             " -e ISABELLE_SMLNJ=/home/smlnj/bin/sml",
   318           args = "-N -X slow",
   318           args = "-N -X large -X slow",
   319           afp = true,
   319           afp = true,
   320           detect = Build_Log.Prop.build_tags + " = " + SQL.string("AFP")))
   320           detect = Build_Log.Prop.build_tags + " = " + SQL.string("AFP")))
   321       }
   321       }
   322     }
   322     }
   323   }
   323   }
   327       List(
   327       List(
   328         Remote_Build("AFP slow", "lrzcloud1", self_update = true,
   328         Remote_Build("AFP slow", "lrzcloud1", self_update = true,
   329           proxy_host = "lxbroy10", proxy_user = "i21isatest",
   329           proxy_host = "lxbroy10", proxy_user = "i21isatest",
   330           ssh_host = "10.155.208.96", ssh_permissive = true,
   330           ssh_host = "10.155.208.96", ssh_permissive = true,
   331           options = "-m64 -M6 -U30000 -s10 -t AFP",
   331           options = "-m64 -M6 -U30000 -s10 -t AFP",
   332           args = "-g slow",
   332           args = "-g large -g slow",
   333           afp = true,
   333           afp = true,
   334           slow = true,
   334           bulky = true,
   335           detect = Build_Log.Prop.build_tags + " = " + SQL.string("AFP"))))
   335           detect = Build_Log.Prop.build_tags + " = " + SQL.string("AFP"))))
   336 
   336 
   337   def remote_build_history(rev: String, afp_rev: Option[String], i: Int, r: Remote_Build)
   337   def remote_build_history(rev: String, afp_rev: Option[String], i: Int, r: Remote_Build)
   338     : Logger_Task =
   338     : Logger_Task =
   339   {
   339   {