@aws-cdk/integ-runner 2.197.9 → 2.197.10
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/lib/workers/extract/index.js +44 -28
- package/package.json +5 -5
|
@@ -4670,7 +4670,7 @@ var require_semver2 = __commonJS({
|
|
|
4670
4670
|
// ../cloud-assembly-schema/cli-version.json
|
|
4671
4671
|
var require_cli_version = __commonJS({
|
|
4672
4672
|
"../cloud-assembly-schema/cli-version.json"(exports2, module2) {
|
|
4673
|
-
module2.exports = { version: "2.1115.
|
|
4673
|
+
module2.exports = { version: "2.1115.1" };
|
|
4674
4674
|
}
|
|
4675
4675
|
});
|
|
4676
4676
|
|
|
@@ -296734,9 +296734,10 @@ var require_split2 = __commonJS({
|
|
|
296734
296734
|
|
|
296735
296735
|
// ../toolkit-lib/lib/api/cloud-assembly/private/exec.ts
|
|
296736
296736
|
async function execInChildProcess(commandAndArgs, options = {}) {
|
|
296737
|
+
const captureOutput = options.captureOutput ?? true;
|
|
296737
296738
|
return new Promise((ok, fail) => {
|
|
296738
296739
|
const proc = child_process2.spawn(commandAndArgs, {
|
|
296739
|
-
stdio: ["ignore", "pipe", "pipe"],
|
|
296740
|
+
stdio: captureOutput ? ["ignore", "pipe", "pipe"] : ["ignore", "inherit", "inherit"],
|
|
296740
296741
|
detached: false,
|
|
296741
296742
|
cwd: options.cwd,
|
|
296742
296743
|
env: {
|
|
@@ -296766,11 +296767,13 @@ async function execInChildProcess(commandAndArgs, options = {}) {
|
|
|
296766
296767
|
}
|
|
296767
296768
|
});
|
|
296768
296769
|
const stderr2 = new Array();
|
|
296769
|
-
|
|
296770
|
-
|
|
296771
|
-
|
|
296772
|
-
|
|
296773
|
-
|
|
296770
|
+
if (captureOutput) {
|
|
296771
|
+
proc.stdout.pipe(split()).on("data", (line) => eventPublisher("data_stdout", line));
|
|
296772
|
+
proc.stderr.pipe(split()).on("data", (line) => {
|
|
296773
|
+
stderr2.push(line);
|
|
296774
|
+
return eventPublisher("data_stderr", line);
|
|
296775
|
+
});
|
|
296776
|
+
}
|
|
296774
296777
|
proc.on("error", (e6) => {
|
|
296775
296778
|
fail(AssemblyError.withCause(`Failed to execute CDK app: ${commandAndArgs}`, e6));
|
|
296776
296779
|
});
|
|
@@ -296788,7 +296791,7 @@ async function execInChildProcess(commandAndArgs, options = {}) {
|
|
|
296788
296791
|
if (options.errorCodeFile) {
|
|
296789
296792
|
const contents = tryReadFile(options.errorCodeFile);
|
|
296790
296793
|
if (contents) {
|
|
296791
|
-
const errorInStdErr = contents.split("\n")
|
|
296794
|
+
const errorInStdErr = contents.split("\n")[0];
|
|
296792
296795
|
if (errorInStdErr) {
|
|
296793
296796
|
error4.attachSynthesisErrorCode(errorInStdErr);
|
|
296794
296797
|
}
|
|
@@ -296809,7 +296812,7 @@ function tryReadFile(name) {
|
|
|
296809
296812
|
throw e6;
|
|
296810
296813
|
}
|
|
296811
296814
|
}
|
|
296812
|
-
var child_process2, import_fs7, split
|
|
296815
|
+
var child_process2, import_fs7, split;
|
|
296813
296816
|
var init_exec = __esm({
|
|
296814
296817
|
"../toolkit-lib/lib/api/cloud-assembly/private/exec.ts"() {
|
|
296815
296818
|
"use strict";
|
|
@@ -296818,7 +296821,6 @@ var init_exec = __esm({
|
|
|
296818
296821
|
init_toolkit_error();
|
|
296819
296822
|
split = require_split2();
|
|
296820
296823
|
__name(execInChildProcess, "execInChildProcess");
|
|
296821
|
-
SYNTH_ERROR_CODE_MARKERS = ["\xAB", "\xBB"];
|
|
296822
296824
|
__name(tryReadFile, "tryReadFile");
|
|
296823
296825
|
}
|
|
296824
296826
|
});
|
|
@@ -315220,6 +315222,36 @@ var init_promises = __esm({
|
|
|
315220
315222
|
}
|
|
315221
315223
|
});
|
|
315222
315224
|
|
|
315225
|
+
// ../toolkit-lib/lib/toolkit/private/count-assembly-results.ts
|
|
315226
|
+
function countAssemblyResults(span, assembly) {
|
|
315227
|
+
const stacksRecursively = assembly.stacksRecursively;
|
|
315228
|
+
span.incCounter("stacks", stacksRecursively.length);
|
|
315229
|
+
span.incCounter("assemblies", asmCount(assembly));
|
|
315230
|
+
span.incCounter("errorAnns", sum3(stacksRecursively.map((s6) => s6.messages.filter((m6) => m6.level === import_cloud_assembly_api14.SynthesisMessageLevel.ERROR).length)));
|
|
315231
|
+
span.incCounter("warnings", sum3(stacksRecursively.map((s6) => s6.messages.filter((m6) => m6.level === import_cloud_assembly_api14.SynthesisMessageLevel.WARNING).length)));
|
|
315232
|
+
const annotationErrorCodes = stacksRecursively.flatMap((s6) => Object.values(s6.metadata).flatMap((ms) => ms.filter((m6) => m6.type === ANNOTATION_ERROR_CODE_TYPE)));
|
|
315233
|
+
for (const annotationErrorCode of annotationErrorCodes) {
|
|
315234
|
+
span.incCounter(`errorAnn:${annotationErrorCode.data}`);
|
|
315235
|
+
}
|
|
315236
|
+
function asmCount(x6) {
|
|
315237
|
+
return 1 + x6.nestedAssemblies.reduce((acc, asm) => acc + asmCount(asm.nestedAssembly), 0);
|
|
315238
|
+
}
|
|
315239
|
+
__name(asmCount, "asmCount");
|
|
315240
|
+
}
|
|
315241
|
+
function sum3(xs) {
|
|
315242
|
+
return xs.reduce((a6, b6) => a6 + b6, 0);
|
|
315243
|
+
}
|
|
315244
|
+
var import_cloud_assembly_api14, ANNOTATION_ERROR_CODE_TYPE;
|
|
315245
|
+
var init_count_assembly_results = __esm({
|
|
315246
|
+
"../toolkit-lib/lib/toolkit/private/count-assembly-results.ts"() {
|
|
315247
|
+
"use strict";
|
|
315248
|
+
import_cloud_assembly_api14 = __toESM(require_lib3());
|
|
315249
|
+
__name(countAssemblyResults, "countAssemblyResults");
|
|
315250
|
+
__name(sum3, "sum");
|
|
315251
|
+
ANNOTATION_ERROR_CODE_TYPE = "aws:cdk:error-code";
|
|
315252
|
+
}
|
|
315253
|
+
});
|
|
315254
|
+
|
|
315223
315255
|
// ../toolkit-lib/lib/toolkit/toolkit.ts
|
|
315224
315256
|
function isFileEvent(event) {
|
|
315225
315257
|
return FILE_EVENTS.includes(event);
|
|
@@ -315242,28 +315274,13 @@ async function synthAndMeasure(ioHelper, cx, selectStacks) {
|
|
|
315242
315274
|
function zeroTime() {
|
|
315243
315275
|
return { asMs: 0, asSec: 0 };
|
|
315244
315276
|
}
|
|
315245
|
-
|
|
315246
|
-
const stacksRecursively = assembly.stacksRecursively;
|
|
315247
|
-
span.incCounter("stacks", stacksRecursively.length);
|
|
315248
|
-
span.incCounter("assemblies", asmCount(assembly));
|
|
315249
|
-
span.incCounter("errorAnns", sum3(stacksRecursively.map((s6) => s6.messages.filter((m6) => m6.level === import_cloud_assembly_api14.SynthesisMessageLevel.ERROR).length)));
|
|
315250
|
-
span.incCounter("warnings", sum3(stacksRecursively.map((s6) => s6.messages.filter((m6) => m6.level === import_cloud_assembly_api14.SynthesisMessageLevel.WARNING).length)));
|
|
315251
|
-
function asmCount(x6) {
|
|
315252
|
-
return 1 + x6.nestedAssemblies.reduce((acc, asm) => acc + asmCount(asm.nestedAssembly), 0);
|
|
315253
|
-
}
|
|
315254
|
-
__name(asmCount, "asmCount");
|
|
315255
|
-
}
|
|
315256
|
-
function sum3(xs) {
|
|
315257
|
-
return xs.reduce((a6, b6) => a6 + b6, 0);
|
|
315258
|
-
}
|
|
315259
|
-
var import_dispose_polyfill5, path31, cxapi8, import_cloud_assembly_api14, import_cloud_assembly_schema7, chalk23, fs35, FILE_EVENTS, Toolkit;
|
|
315277
|
+
var import_dispose_polyfill5, path31, cxapi8, import_cloud_assembly_schema7, chalk23, fs35, FILE_EVENTS, Toolkit;
|
|
315260
315278
|
var init_toolkit = __esm({
|
|
315261
315279
|
"../toolkit-lib/lib/toolkit/toolkit.ts"() {
|
|
315262
315280
|
"use strict";
|
|
315263
315281
|
import_dispose_polyfill5 = __toESM(require_dispose_polyfill());
|
|
315264
315282
|
path31 = __toESM(require("node:path"));
|
|
315265
315283
|
cxapi8 = __toESM(require_lib3());
|
|
315266
|
-
import_cloud_assembly_api14 = __toESM(require_lib3());
|
|
315267
315284
|
import_cloud_assembly_schema7 = __toESM(require_lib2());
|
|
315268
315285
|
chalk23 = __toESM(require_source());
|
|
315269
315286
|
init_esm2();
|
|
@@ -315305,6 +315322,7 @@ var init_toolkit = __esm({
|
|
|
315305
315322
|
init_concurrency();
|
|
315306
315323
|
init_glob_matcher();
|
|
315307
315324
|
init_promises();
|
|
315325
|
+
init_count_assembly_results();
|
|
315308
315326
|
FILE_EVENTS = [EVENTS.ADD, EVENTS.ADD_DIR, EVENTS.CHANGE, EVENTS.UNLINK, EVENTS.UNLINK_DIR];
|
|
315309
315327
|
__name(isFileEvent, "isFileEvent");
|
|
315310
315328
|
Toolkit = class extends CloudAssemblySourceBuilder {
|
|
@@ -316383,8 +316401,6 @@ ${deployResult.stackArn}`));
|
|
|
316383
316401
|
__name(stacksOpt, "stacksOpt");
|
|
316384
316402
|
__name(synthAndMeasure, "synthAndMeasure");
|
|
316385
316403
|
__name(zeroTime, "zeroTime");
|
|
316386
|
-
__name(countAssemblyResults, "countAssemblyResults");
|
|
316387
|
-
__name(sum3, "sum");
|
|
316388
316404
|
}
|
|
316389
316405
|
});
|
|
316390
316406
|
|
package/package.json
CHANGED
|
@@ -66,12 +66,12 @@
|
|
|
66
66
|
"@aws-cdk/aws-service-spec": "^0.1.167",
|
|
67
67
|
"@aws-cdk/cdk-assets-lib": "1.4.2",
|
|
68
68
|
"@aws-cdk/cloud-assembly-api": "2.2.1",
|
|
69
|
-
"@aws-cdk/cloud-assembly-schema": ">=53.
|
|
69
|
+
"@aws-cdk/cloud-assembly-schema": ">=53.11.0",
|
|
70
70
|
"@aws-cdk/cloudformation-diff": "2.186.0",
|
|
71
71
|
"@aws-cdk/cx-api": "^2",
|
|
72
|
-
"@aws-cdk/toolkit-lib": "1.20.
|
|
72
|
+
"@aws-cdk/toolkit-lib": "1.20.1",
|
|
73
73
|
"@aws-sdk/client-cloudformation": "^3",
|
|
74
|
-
"aws-cdk": "2.1115.
|
|
74
|
+
"aws-cdk": "2.1115.1",
|
|
75
75
|
"chalk": "^4",
|
|
76
76
|
"chokidar": "^4",
|
|
77
77
|
"fs-extra": "^9",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"@aws-cdk/aws-service-spec": "0.1.167",
|
|
83
|
-
"aws-cdk": "2.1115.
|
|
83
|
+
"aws-cdk": "2.1115.1"
|
|
84
84
|
},
|
|
85
85
|
"keywords": [
|
|
86
86
|
"aws",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"publishConfig": {
|
|
96
96
|
"access": "public"
|
|
97
97
|
},
|
|
98
|
-
"version": "2.197.
|
|
98
|
+
"version": "2.197.10",
|
|
99
99
|
"types": "lib/index.d.ts",
|
|
100
100
|
"//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"."
|
|
101
101
|
}
|