@plune-ai/cli 0.30.0 → 0.30.1
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/cli.cjs +9 -2
- package/dist/reporter-core.cjs +9 -2
- package/dist/reporter-core.js +9 -2
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -3230,7 +3230,7 @@ async function startRun(passed, declared2) {
|
|
|
3230
3230
|
...cfg.environment !== void 0 ? { environment: cfg.environment } : {},
|
|
3231
3231
|
...cfg.labels !== void 0 ? { labels: cfg.labels } : {}
|
|
3232
3232
|
};
|
|
3233
|
-
const
|
|
3233
|
+
const request = {
|
|
3234
3234
|
schemaVersion: 2,
|
|
3235
3235
|
kind: cfg.kind ?? "automated",
|
|
3236
3236
|
...externalKey !== null ? { externalKey } : {},
|
|
@@ -3241,7 +3241,14 @@ async function startRun(passed, declared2) {
|
|
|
3241
3241
|
// a person will miss, and a deployment older than the field must not be nagged on every run.
|
|
3242
3242
|
title: defaultRunTitle(),
|
|
3243
3243
|
...described
|
|
3244
|
-
}
|
|
3244
|
+
};
|
|
3245
|
+
let start = await client.post("/v1/runs", request);
|
|
3246
|
+
if (!start.ok && start.status === 413 && configuration !== void 0) {
|
|
3247
|
+
log(
|
|
3248
|
+
`plune: the platform refused the run's list of expected tests as too large (${start.detail || start.kind}) \u2014 starting without it: the results still land, but this run counts no tests that did not run, and claims no full run.`
|
|
3249
|
+
);
|
|
3250
|
+
start = await client.post("/v1/runs", { ...request, configuration: void 0 });
|
|
3251
|
+
}
|
|
3245
3252
|
if (start.ok && typeof start.body?.run?.id === "string") {
|
|
3246
3253
|
runId = start.body.run.id;
|
|
3247
3254
|
joined = start.status === 200;
|
package/dist/reporter-core.cjs
CHANGED
|
@@ -875,7 +875,7 @@ async function startRun(passed, declared) {
|
|
|
875
875
|
...cfg.environment !== void 0 ? { environment: cfg.environment } : {},
|
|
876
876
|
...cfg.labels !== void 0 ? { labels: cfg.labels } : {}
|
|
877
877
|
};
|
|
878
|
-
const
|
|
878
|
+
const request = {
|
|
879
879
|
schemaVersion: 2,
|
|
880
880
|
kind: cfg.kind ?? "automated",
|
|
881
881
|
...externalKey !== null ? { externalKey } : {},
|
|
@@ -886,7 +886,14 @@ async function startRun(passed, declared) {
|
|
|
886
886
|
// a person will miss, and a deployment older than the field must not be nagged on every run.
|
|
887
887
|
title: defaultRunTitle(),
|
|
888
888
|
...described
|
|
889
|
-
}
|
|
889
|
+
};
|
|
890
|
+
let start = await client.post("/v1/runs", request);
|
|
891
|
+
if (!start.ok && start.status === 413 && configuration !== void 0) {
|
|
892
|
+
log(
|
|
893
|
+
`plune: the platform refused the run's list of expected tests as too large (${start.detail || start.kind}) \u2014 starting without it: the results still land, but this run counts no tests that did not run, and claims no full run.`
|
|
894
|
+
);
|
|
895
|
+
start = await client.post("/v1/runs", { ...request, configuration: void 0 });
|
|
896
|
+
}
|
|
890
897
|
if (start.ok && typeof start.body?.run?.id === "string") {
|
|
891
898
|
runId = start.body.run.id;
|
|
892
899
|
joined = start.status === 200;
|
package/dist/reporter-core.js
CHANGED
|
@@ -825,7 +825,7 @@ async function startRun(passed, declared) {
|
|
|
825
825
|
...cfg.environment !== void 0 ? { environment: cfg.environment } : {},
|
|
826
826
|
...cfg.labels !== void 0 ? { labels: cfg.labels } : {}
|
|
827
827
|
};
|
|
828
|
-
const
|
|
828
|
+
const request = {
|
|
829
829
|
schemaVersion: 2,
|
|
830
830
|
kind: cfg.kind ?? "automated",
|
|
831
831
|
...externalKey !== null ? { externalKey } : {},
|
|
@@ -836,7 +836,14 @@ async function startRun(passed, declared) {
|
|
|
836
836
|
// a person will miss, and a deployment older than the field must not be nagged on every run.
|
|
837
837
|
title: defaultRunTitle(),
|
|
838
838
|
...described
|
|
839
|
-
}
|
|
839
|
+
};
|
|
840
|
+
let start = await client.post("/v1/runs", request);
|
|
841
|
+
if (!start.ok && start.status === 413 && configuration !== void 0) {
|
|
842
|
+
log(
|
|
843
|
+
`plune: the platform refused the run's list of expected tests as too large (${start.detail || start.kind}) \u2014 starting without it: the results still land, but this run counts no tests that did not run, and claims no full run.`
|
|
844
|
+
);
|
|
845
|
+
start = await client.post("/v1/runs", { ...request, configuration: void 0 });
|
|
846
|
+
}
|
|
840
847
|
if (start.ok && typeof start.body?.run?.id === "string") {
|
|
841
848
|
runId = start.body.run.id;
|
|
842
849
|
joined = start.status === 200;
|
package/package.json
CHANGED