@madewithremy/admin 0.1.66 → 0.1.67
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/CHANGELOG.md +6 -0
- package/dist/prod.js +3 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ What changed in `@madewithremy/admin`, newest first, each version under its own
|
|
|
4
4
|
|
|
5
5
|
Versions before 0.1.44 aren't recorded here.
|
|
6
6
|
|
|
7
|
+
## 0.1.67
|
|
8
|
+
|
|
9
|
+
### Changed behavior
|
|
10
|
+
|
|
11
|
+
- `jewels train --wait` waits until the run ends, however long that takes: the platform ends every run, by the trainer's report or by failing one that has gone quiet. It used to give up after 45 minutes with "Timed out waiting for run", though a run may take two hours. Check: a script that relied on the 45-minute exit should poll `jewels run <runId>` itself and stop when it chooses.
|
|
12
|
+
|
|
7
13
|
## 0.1.65
|
|
8
14
|
|
|
9
15
|
### New
|
package/dist/prod.js
CHANGED
|
@@ -1345,7 +1345,8 @@ async function releasesWait(ctx, a) {
|
|
|
1345
1345
|
);
|
|
1346
1346
|
}
|
|
1347
1347
|
const commit = expandCommitSha(rawCommit);
|
|
1348
|
-
const
|
|
1348
|
+
const timeoutSeconds = a.num("timeout");
|
|
1349
|
+
const timeoutMs = timeoutSeconds === void 0 ? void 0 : timeoutSeconds * 1e3;
|
|
1349
1350
|
const result = await waitForCommit(ctx, {
|
|
1350
1351
|
commitSha: commit,
|
|
1351
1352
|
timeoutMs,
|
|
@@ -8473,7 +8474,6 @@ async function jewelsDryrun(ctx, a) {
|
|
|
8473
8474
|
);
|
|
8474
8475
|
}
|
|
8475
8476
|
var TRAIN_POLL_MS = 15e3;
|
|
8476
|
-
var TRAIN_WAIT_LIMIT_MS = 45 * 6e4;
|
|
8477
8477
|
async function jewelsTrain(ctx, a) {
|
|
8478
8478
|
const started = await train(ctx, { methodId: a.required("methodId") });
|
|
8479
8479
|
if (!a.bool("wait")) {
|
|
@@ -8482,9 +8482,8 @@ async function jewelsTrain(ctx, a) {
|
|
|
8482
8482
|
}
|
|
8483
8483
|
printJson({ runId: started.run?.id, summary: started.summary });
|
|
8484
8484
|
const runId = started.run?.id;
|
|
8485
|
-
const deadline = Date.now() + TRAIN_WAIT_LIMIT_MS;
|
|
8486
8485
|
let lastLogLen = 0;
|
|
8487
|
-
while (
|
|
8486
|
+
while (true) {
|
|
8488
8487
|
await sleep(TRAIN_POLL_MS);
|
|
8489
8488
|
const { run: run3 } = await getRun2(ctx, runId);
|
|
8490
8489
|
const log = Array.isArray(run3.log) ? run3.log : [];
|
|
@@ -8513,9 +8512,6 @@ async function jewelsTrain(ctx, a) {
|
|
|
8513
8512
|
return;
|
|
8514
8513
|
}
|
|
8515
8514
|
}
|
|
8516
|
-
fatal(
|
|
8517
|
-
`Timed out waiting for run ${runId} (still in flight; check 'jewels run ${runId}').`
|
|
8518
|
-
);
|
|
8519
8515
|
}
|
|
8520
8516
|
function compactRunLog(run3) {
|
|
8521
8517
|
let out = { ...run3 };
|