aboutsummaryrefslogtreecommitdiff
path: root/test/ufuzz/actions.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ufuzz/actions.js')
-rw-r--r--test/ufuzz/actions.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/ufuzz/actions.js b/test/ufuzz/actions.js
index c4438d8d..53754a75 100644
--- a/test/ufuzz/actions.js
+++ b/test/ufuzz/actions.js
@@ -22,28 +22,28 @@ function read(url, callback) {
});
}
-var in_progress = 0, queued = 0;
+var queued = 0, total = 0;
+var earliest, latest;
process.on("beforeExit", function() {
if (queued > 3) {
process.stdout.write("0");
+ } else if (total < 2) {
+ process.stdout.write("3600000");
} else {
- process.stdout.write(Math.min(1000 * 20 / in_progress, 1500).toFixed(0));
+ process.stdout.write(Math.min(20 * (latest - earliest) / (total - 1), 5400000).toFixed(0));
}
});
-read(base + "/actions/workflows/ufuzz.yml/runs", function(reply) {
+read(base + "/actions/workflows/ufuzz.yml/runs?event=schedule", function(reply) {
reply.workflow_runs.filter(function(workflow) {
return /^(in_progress|queued|)$/.test(workflow.status);
}).forEach(function(workflow) {
read(workflow.jobs_url, function(reply) {
reply.jobs.forEach(function(job) {
- switch (job.status) {
- case "in_progress":
- in_progress++;
- break;
- case "queued":
- queued++;
- break;
- }
+ if (job.status == "queued") queued++;
+ total++;
+ var start = new Date(job.started_at);
+ if (!(earliest < start)) earliest = start;
+ if (!(latest > start)) latest = start;
});
});
});
(directives): Remove outdated comment. * gnu/build/vm.scm (root-partition-initializer): Update comment. * gnu/packages/package-management.scm (guix-register): Remove. * guix/config.scm.in (%sbindir, %guix-register-program): Remove. * guix/scripts/system.scm (install): Adjust docstring. * guix/self.scm (make-config.scm): Remove #:guix. Do not generate %sbindir and %guix-register-program. (specification->package): Remove "guix". * nix/guix-register/guix-register.cc: Remove. * nix/libstore/store-api.cc (decodeValidPathInfo): Remove. * nix/libstore/store-api.hh (decodeValidPathInfo): Remove declaration. * nix/local.mk (sbin_PROGRAMS, guix_register_SOURCES) (guix_register_CPPFLAGS, guix_register_LDFLAGS): Remove. * tests/guix-register.sh: Remove. Ludovic Courtès 2017-10-10build: Set 'NIX_BUILD_HOOK' only if offloading is configured....This prevents libstore/build.cc from executing nix/scripts/offload, which is always created by config.status, when offload support is not enabled. * build-aux/pre-inst-env.in: Export 'NIX_BUILD_HOOK' only when configured; unset it otherwise. Eric Bavier 2017-03-08build: Unset 'NIX_BUILD_HOOK' when offloading support is missing....* build-aux/pre-inst-env.in: Export 'NIX_BUILD_HOOK' only when nix/scripts/offload is executable; unset it otherwise. Ludovic Courtès