Skip to contentSkip to conversation

docs: Document OSSTEST_RESOURCE_PRIORITY values in README.planner

PATCH Superseded Ian Jackson 1 participant 4 messages Sep 17, 2015

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/33 docs: Document OSSTEST_RESOURCE_PRIORITY values in README.planner

---
 README.planner |    7 +++++++
 1 file changed, 7 insertions(+)
README.planner +7 -0
index 21b3415..dfa623e 100644
@@ -84,6 +84,13 @@ no resources actually get allocated), so that there is a report for
 the administrator showing an idea of what the system thinks may happen
 in the more distant future.
 
+Values for OSSTEST_RESOURCE_PRIORITY:
+  mg-allocate                                    -1000000
+  mg-blockage                                    -2000000
+  default Executive.pm with controlling terminal      -10
+  mg-execute-flight                                    -8
+  default                                               0
+
 
 ms-ownerdaemon and `ownd' tasks
 -------------------------------
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 2/33 Executive: cs-job-create: Check that OSSTEST_FLIGHT is not set

If OSSTEST_FLIGHT is set on entry to JobDB::Executive::flight_create, fail. This obviously represents some kind of mistake.

One effect is that standalone-generate-dump-flight-runvars won't fill an Executive database with test flights.

---
 Osstest/JobDB/Executive.pm |    2 ++
 1 file changed, 2 insertions(+)
Osstest/JobDB/Executive.pm +2 -0
index cc52f57..6ba3d37 100644
@@ -89,6 +89,8 @@ END
 
 sub flight_create ($$$) { #method
     my ($jd,$intended,$branch) = @_;
+    die "OSSTEST_FLIGHT set on entry to JobDB::Executive::flight_create\n"
+	if $ENV{'OSSTEST_FLIGHT'};
     $dbh_tests->do(<<END, {}, $branch, $intended);
              INSERT INTO flights
                          (flight,  started, blessing,       branch, intended)
Signature · 1 line
1.7.10.4
#2 lore raw

PATCH 3/33 mg-list-all-branches: Suppress `maintjobs'

In reply to Ian Jackson

This is not a real branch; it's a cron working directory, only.

---
 mg-list-all-branches |    2 ++
 1 file changed, 2 insertions(+)
mg-list-all-branches +2 -0
index 1549f81..87703c7 100755
@@ -16,4 +16,6 @@ foreach my $f (qw(cr-for-branches crontab)) {
     close C or die $!;
 }
 
+delete $branches{maintjobs};
+
 print $_,"\n" or die $! foreach sort { versioncmp($a, $b) } keys %branches;
Signature · 1 line
1.7.10.4