@plexus-ms/cli-ci 0.115.0 → 0.116.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/plx-ci.js +21 -20
- package/package.json +2 -2
package/dist/plx-ci.js
CHANGED
|
@@ -7462,6 +7462,22 @@ function body(step) {
|
|
|
7462
7462
|
}
|
|
7463
7463
|
}
|
|
7464
7464
|
|
|
7465
|
+
// ../lib/dist/train.js
|
|
7466
|
+
var PRIMITIVES = "primitives";
|
|
7467
|
+
var TRAIN_REPOS = [
|
|
7468
|
+
PRIMITIVES,
|
|
7469
|
+
"preset-repo-turbo",
|
|
7470
|
+
"preset-app-nextjs",
|
|
7471
|
+
"preset-repo-operations",
|
|
7472
|
+
"compendium"
|
|
7473
|
+
];
|
|
7474
|
+
var PHASES = [[PRIMITIVES], TRAIN_REPOS.filter((r) => r !== PRIMITIVES)];
|
|
7475
|
+
var UsageError = class extends Error {
|
|
7476
|
+
};
|
|
7477
|
+
|
|
7478
|
+
// ../lib/dist/consumers.js
|
|
7479
|
+
var PRESETS = TRAIN_REPOS.filter((r) => r.startsWith("preset-"));
|
|
7480
|
+
|
|
7465
7481
|
// ../lib/dist/context.js
|
|
7466
7482
|
var Context = class {
|
|
7467
7483
|
dryRun;
|
|
@@ -7600,21 +7616,6 @@ var import_yaml3 = __toESM(require_dist(), 1);
|
|
|
7600
7616
|
// ../lib/dist/deployTargets.js
|
|
7601
7617
|
var import_yaml4 = __toESM(require_dist(), 1);
|
|
7602
7618
|
import { join } from "node:path";
|
|
7603
|
-
|
|
7604
|
-
// ../lib/dist/train.js
|
|
7605
|
-
var PRIMITIVES = "primitives";
|
|
7606
|
-
var TRAIN_REPOS = [
|
|
7607
|
-
PRIMITIVES,
|
|
7608
|
-
"preset-repo-turbo",
|
|
7609
|
-
"preset-app-nextjs",
|
|
7610
|
-
"preset-repo-operations",
|
|
7611
|
-
"compendium"
|
|
7612
|
-
];
|
|
7613
|
-
var PHASES = [[PRIMITIVES], TRAIN_REPOS.filter((r) => r !== PRIMITIVES)];
|
|
7614
|
-
var UsageError = class extends Error {
|
|
7615
|
-
};
|
|
7616
|
-
|
|
7617
|
-
// ../lib/dist/deployTargets.js
|
|
7618
7619
|
var VARS_DIRS = ["group_vars", "host_vars"];
|
|
7619
7620
|
var DEFAULT_ENVIRONMENT = "production";
|
|
7620
7621
|
function parseInventoryFile(path2, text) {
|
|
@@ -7680,12 +7681,12 @@ async function readDeployTargets(ctx, inventory) {
|
|
|
7680
7681
|
return selectDeployTargets(files);
|
|
7681
7682
|
}
|
|
7682
7683
|
|
|
7684
|
+
// ../lib/dist/need.js
|
|
7685
|
+
var DAY = 24 * 60 * 60 * 1e3;
|
|
7686
|
+
|
|
7683
7687
|
// ../lib/dist/ship.js
|
|
7684
7688
|
var DEFAULT_WAIT = { interval: 15e3, timeout: 20 * 6e4 };
|
|
7685
7689
|
|
|
7686
|
-
// ../lib/dist/update.js
|
|
7687
|
-
var PRESETS = TRAIN_REPOS.filter((r) => r.startsWith("preset-"));
|
|
7688
|
-
|
|
7689
7690
|
// src/program.ts
|
|
7690
7691
|
import { createRequire } from "node:module";
|
|
7691
7692
|
|
|
@@ -12444,11 +12445,11 @@ async function createInstances(ctx, exo, github, legs, shared) {
|
|
|
12444
12445
|
// src/core/sweepInstances.ts
|
|
12445
12446
|
var REMIND_AFTER_DAYS = 7;
|
|
12446
12447
|
var DELETE_KEPT_AFTER_DAYS = 14;
|
|
12447
|
-
var
|
|
12448
|
+
var DAY2 = 864e5;
|
|
12448
12449
|
function verdictOn(instance, now) {
|
|
12449
12450
|
const kept = instance.labels[KEPT_LABEL];
|
|
12450
12451
|
if (kept !== void 0) {
|
|
12451
|
-
const days = (now.getTime() - Date.parse(kept)) /
|
|
12452
|
+
const days = (now.getTime() - Date.parse(kept)) / DAY2;
|
|
12452
12453
|
if (days >= DELETE_KEPT_AFTER_DAYS)
|
|
12453
12454
|
return { action: "remove", reason: `kept since ${kept}, ${DELETE_KEPT_AFTER_DAYS} days` };
|
|
12454
12455
|
if (days >= REMIND_AFTER_DAYS && days < REMIND_AFTER_DAYS + 1) return { action: "remind" };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plexus-ms/cli-ci",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.116.0",
|
|
4
4
|
"description": "plx-ci, the CI verbs of Plexus: throwaway runners on a cloud, a registry on object storage, reproducible image builds, and their teardown",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
6
6
|
"type": "module",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"node": ">=24.22.1"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@plexus-ms/lib": "0.
|
|
26
|
+
"@plexus-ms/lib": "0.116.0",
|
|
27
27
|
"commander": "^15.0.0",
|
|
28
28
|
"yaml": "^2.9.1"
|
|
29
29
|
},
|