@alwaysmeticulous/cli 2.259.0 → 2.260.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/{utils → command-utils}/sentry.utils.d.ts +1 -1
- package/dist/command-utils/sentry.utils.js.map +1 -0
- package/dist/commands/auth/index.d.ts +2 -0
- package/dist/commands/auth/index.js +14 -0
- package/dist/commands/auth/index.js.map +1 -0
- package/dist/commands/auth/logout.command.d.ts +2 -0
- package/dist/commands/auth/logout.command.js +17 -0
- package/dist/commands/auth/logout.command.js.map +1 -0
- package/dist/commands/auth/whoami.command.d.ts +2 -0
- package/dist/commands/auth/whoami.command.js +41 -0
- package/dist/commands/auth/whoami.command.js.map +1 -0
- package/dist/commands/ci/index.d.ts +2 -0
- package/dist/commands/ci/index.js +26 -0
- package/dist/commands/ci/index.js.map +1 -0
- package/dist/commands/ci/prepare.command.d.ts +15 -0
- package/dist/commands/{prepare-for-meticulous-tests/prepare-for-meticulous-tests.command.js → ci/prepare.command.js} +22 -31
- package/dist/commands/ci/prepare.command.js.map +1 -0
- package/dist/commands/ci/run-local.command.d.ts +23 -0
- package/dist/commands/{run-all-tests/run-all-tests.command.js → ci/run-local.command.js} +64 -63
- package/dist/commands/ci/run-local.command.js.map +1 -0
- package/dist/commands/ci/run.command.d.ts +22 -0
- package/dist/commands/{run-all-tests-in-cloud/run-all-tests-in-cloud.command.js → ci/run.command.js} +97 -111
- package/dist/commands/ci/run.command.js.map +1 -0
- package/dist/commands/ci/start-tunnel.command.d.ts +21 -0
- package/dist/commands/ci/start-tunnel.command.js +142 -0
- package/dist/commands/ci/start-tunnel.command.js.map +1 -0
- package/dist/commands/ci/upload-assets.command.d.ts +14 -0
- package/dist/commands/{upload-assets-and-execute-test-run-in-cloud/upload-assets-and-execute-test-run-in-cloud.command.js → ci/upload-assets.command.js} +46 -54
- package/dist/commands/ci/upload-assets.command.js.map +1 -0
- package/dist/commands/ci/upload-container.command.d.ts +15 -0
- package/dist/commands/{upload-container-and-execute-test-run-in-cloud/upload-container-and-execute-test-run-in-cloud.command.js → ci/upload-container.command.js} +53 -62
- package/dist/commands/ci/upload-container.command.js.map +1 -0
- package/dist/commands/deprecated-aliases.d.ts +2 -0
- package/dist/commands/deprecated-aliases.js +27 -0
- package/dist/commands/deprecated-aliases.js.map +1 -0
- package/dist/commands/download/index.d.ts +2 -0
- package/dist/commands/download/index.js +20 -0
- package/dist/commands/download/index.js.map +1 -0
- package/dist/commands/download/replay.command.d.ts +7 -0
- package/dist/commands/{download-replay/download-replay.command.js → download/replay.command.js} +17 -23
- package/dist/commands/download/replay.command.js.map +1 -0
- package/dist/commands/download/session.command.d.ts +7 -0
- package/dist/commands/download/session.command.js +32 -0
- package/dist/commands/download/session.command.js.map +1 -0
- package/dist/commands/download/test-run.command.d.ts +8 -0
- package/dist/commands/{download-test-run/download-test-run.command.js → download/test-run.command.js} +21 -21
- package/dist/commands/download/test-run.command.js.map +1 -0
- package/dist/commands/project/index.d.ts +2 -0
- package/dist/commands/project/index.js +13 -0
- package/dist/commands/project/index.js.map +1 -0
- package/dist/commands/project/show.command.d.ts +6 -0
- package/dist/commands/project/show.command.js +26 -0
- package/dist/commands/project/show.command.js.map +1 -0
- package/dist/commands/record/index.d.ts +2 -0
- package/dist/commands/record/index.js +18 -0
- package/dist/commands/record/index.js.map +1 -0
- package/dist/commands/record/login.command.d.ts +14 -0
- package/dist/commands/{record-login/record-login.command.js → record/login.command.js} +16 -31
- package/dist/commands/record/login.command.js.map +1 -0
- package/dist/commands/record/session.command.d.ts +17 -0
- package/dist/commands/record/{record.command.js → session.command.js} +16 -37
- package/dist/commands/record/session.command.js.map +1 -0
- package/dist/commands/{replay/utils/replay-debugger.ui.js → replay-debugger.ui.js} +2 -7
- package/dist/commands/replay-debugger.ui.js.map +1 -0
- package/dist/commands/replay.command.d.ts +25 -0
- package/dist/commands/{replay/replay.command.js → replay.command.js} +77 -82
- package/dist/commands/replay.command.js.map +1 -0
- package/dist/index.d.ts +4 -7
- package/dist/index.js +8 -14
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/main.js +20 -33
- package/dist/main.js.map +1 -1
- package/package.json +5 -5
- package/dist/command-utils/command-builder.d.ts +0 -10
- package/dist/command-utils/command-builder.js +0 -20
- package/dist/command-utils/command-builder.js.map +0 -1
- package/dist/commands/download-replay/download-replay.command.d.ts +0 -10
- package/dist/commands/download-replay/download-replay.command.js.map +0 -1
- package/dist/commands/download-session/download-session.command.d.ts +0 -10
- package/dist/commands/download-session/download-session.command.js +0 -33
- package/dist/commands/download-session/download-session.command.js.map +0 -1
- package/dist/commands/download-test-run/download-test-run.command.d.ts +0 -17
- package/dist/commands/download-test-run/download-test-run.command.js.map +0 -1
- package/dist/commands/logout/logout.command.d.ts +0 -2
- package/dist/commands/logout/logout.command.js +0 -18
- package/dist/commands/logout/logout.command.js.map +0 -1
- package/dist/commands/prepare-for-meticulous-tests/prepare-for-meticulous-tests.command.d.ts +0 -22
- package/dist/commands/prepare-for-meticulous-tests/prepare-for-meticulous-tests.command.js.map +0 -1
- package/dist/commands/record/record.command.d.ts +0 -67
- package/dist/commands/record/record.command.js.map +0 -1
- package/dist/commands/record-login/record-login.command.d.ts +0 -56
- package/dist/commands/record-login/record-login.command.js.map +0 -1
- package/dist/commands/replay/replay.command.d.ts +0 -161
- package/dist/commands/replay/replay.command.js.map +0 -1
- package/dist/commands/replay/utils/replay-debugger.ui.js.map +0 -1
- package/dist/commands/run-all-tests/run-all-tests.command.d.ts +0 -140
- package/dist/commands/run-all-tests/run-all-tests.command.js.map +0 -1
- package/dist/commands/run-all-tests-in-cloud/run-all-tests-in-cloud.command.d.ts +0 -87
- package/dist/commands/run-all-tests-in-cloud/run-all-tests-in-cloud.command.js.map +0 -1
- package/dist/commands/show-project/show-project.command.d.ts +0 -6
- package/dist/commands/show-project/show-project.command.js +0 -27
- package/dist/commands/show-project/show-project.command.js.map +0 -1
- package/dist/commands/start-local-tunnel/start-local-tunnel.command.d.ts +0 -81
- package/dist/commands/start-local-tunnel/start-local-tunnel.command.js +0 -144
- package/dist/commands/start-local-tunnel/start-local-tunnel.command.js.map +0 -1
- package/dist/commands/upload-assets-and-execute-test-run-in-cloud/upload-assets-and-execute-test-run-in-cloud.command.d.ts +0 -46
- package/dist/commands/upload-assets-and-execute-test-run-in-cloud/upload-assets-and-execute-test-run-in-cloud.command.js.map +0 -1
- package/dist/commands/upload-container-and-execute-test-run-in-cloud/upload-container-and-execute-test-run-in-cloud.command.d.ts +0 -50
- package/dist/commands/upload-container-and-execute-test-run-in-cloud/upload-container-and-execute-test-run-in-cloud.command.js.map +0 -1
- package/dist/commands/whoami/whoami.command.d.ts +0 -2
- package/dist/commands/whoami/whoami.command.js +0 -42
- package/dist/commands/whoami/whoami.command.js.map +0 -1
- package/dist/utils/npm-set-script.utils.d.ts +0 -4
- package/dist/utils/npm-set-script.utils.js +0 -17
- package/dist/utils/npm-set-script.utils.js.map +0 -1
- package/dist/utils/sentry.utils.js.map +0 -1
- /package/dist/{utils → command-utils}/sentry.utils.js +0 -0
- /package/dist/commands/{replay/utils/replay-debugger.ui.d.ts → replay-debugger.ui.d.ts} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const setOptions: (options:
|
|
1
|
+
export declare const setOptions: (options: unknown) => void;
|
|
2
2
|
export declare const wrapHandler: <T>(handler: (args: T) => Promise<void>) => (args: T) => Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sentry.utils.js","sourceRoot":"","sources":["../../src/command-utils/sentry.utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAwD;AACxD,qDAAsD;AACtD,qDAAgE;AAChE,qDAAuC;AAEhC,MAAM,UAAU,GAA+B,CAAC,OAAO,EAAE,EAAE;IAChE,MAAM,CAAC,UAAU,CAAC,gBAAgB,EAAE,OAAkC,CAAC,CAAC;AAC1E,CAAC,CAAC;AAFW,QA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AA,qBAAY,EAAC,KAAK,CAAC,EAAE;QACvB,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC5B,IACE,CAAA,MAAA,KAAK,CAAC,QAAQ,0CAAE,IAAI;YACpB,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK;YACzB,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,EAC3B;YACA,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SAC3C;QACD,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;KACrB;SAAM,IAAI,KAAK,YAAY,KAAK,EAAE;QACjC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC5B,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;KACrB;SAAM;QACL,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;KACrB;IACD,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAChB,MAAM,CAAC,IAAI,CACT,uIAAuI,CACxI,CAAC;IACF,MAAM,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;AACjC,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.authCommand = void 0;
|
|
4
|
+
const logout_command_1 = require("./logout.command");
|
|
5
|
+
const whoami_command_1 = require("./whoami.command");
|
|
6
|
+
exports.authCommand = {
|
|
7
|
+
command: "auth",
|
|
8
|
+
describe: "Authentication commands",
|
|
9
|
+
builder: (yargs) => yargs.command(whoami_command_1.whoamiCommand).command(logout_command_1.logoutCommand).demandCommand().help(),
|
|
10
|
+
handler: () => {
|
|
11
|
+
// subcommand handles this
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/auth/index.ts"],"names":[],"mappings":";;;AACA,qDAAiD;AACjD,qDAAiD;AAEpC,QAAA,WAAW,GAAkB;IACxC,OAAO,EAAE,MAAM;IACf,QAAQ,EAAE,yBAAyB;IACnC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CACjB,KAAK,CAAC,OAAO,CAAC,8BAAa,CAAC,CAAC,OAAO,CAAC,8BAAa,CAAC,CAAC,aAAa,EAAE,CAAC,IAAI,EAAE;IAC5E,OAAO,EAAE,GAAG,EAAE;QACZ,0BAA0B;IAC5B,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.logoutCommand = void 0;
|
|
4
|
+
const client_1 = require("@alwaysmeticulous/client");
|
|
5
|
+
const common_1 = require("@alwaysmeticulous/common");
|
|
6
|
+
const sentry_utils_1 = require("../../command-utils/sentry.utils");
|
|
7
|
+
exports.logoutCommand = {
|
|
8
|
+
command: "logout",
|
|
9
|
+
describe: "Clear stored OAuth tokens",
|
|
10
|
+
builder: {},
|
|
11
|
+
handler: (0, sentry_utils_1.wrapHandler)(async () => {
|
|
12
|
+
const logger = (0, common_1.initLogger)();
|
|
13
|
+
(0, client_1.clearOAuthTokens)();
|
|
14
|
+
logger.info("Logged out successfully.");
|
|
15
|
+
}),
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=logout.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logout.command.js","sourceRoot":"","sources":["../../../src/commands/auth/logout.command.ts"],"names":[],"mappings":";;;AAAA,qDAA4D;AAC5D,qDAAsD;AAEtD,mEAA+D;AAElD,QAAA,aAAa,GAAkB;IAC1C,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,2BAA2B;IACrC,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,IAAA,0BAAW,EAAC,KAAK,IAAI,EAAE;QAC9B,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAC;QAC5B,IAAA,yBAAgB,GAAE,CAAC;QACnB,MAAM,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;IAC1C,CAAC,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.whoamiCommand = void 0;
|
|
4
|
+
const client_1 = require("@alwaysmeticulous/client");
|
|
5
|
+
const common_1 = require("@alwaysmeticulous/common");
|
|
6
|
+
const sentry_utils_1 = require("../../command-utils/sentry.utils");
|
|
7
|
+
exports.whoamiCommand = {
|
|
8
|
+
command: "whoami",
|
|
9
|
+
describe: "Show the currently logged-in user",
|
|
10
|
+
builder: {},
|
|
11
|
+
handler: (0, sentry_utils_1.wrapHandler)(async () => {
|
|
12
|
+
var _a;
|
|
13
|
+
const logger = (0, common_1.initLogger)();
|
|
14
|
+
const client = await (0, client_1.createClientWithOAuth)({
|
|
15
|
+
apiToken: null,
|
|
16
|
+
enableOAuthLogin: true,
|
|
17
|
+
});
|
|
18
|
+
try {
|
|
19
|
+
const { email, firstName, lastName, isAdmin, organizations } = await (0, client_1.getWhoami)(client);
|
|
20
|
+
logger.info(`Logged in as: ${firstName} ${lastName} (${email})`);
|
|
21
|
+
if (isAdmin) {
|
|
22
|
+
logger.info("Role: Admin");
|
|
23
|
+
}
|
|
24
|
+
if (organizations.length > 0) {
|
|
25
|
+
logger.info("Organizations:");
|
|
26
|
+
for (const org of organizations) {
|
|
27
|
+
logger.info(` - ${org.name}`);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
catch (error) {
|
|
32
|
+
if ((0, client_1.isFetchError)(error) && ((_a = error.response) === null || _a === void 0 ? void 0 : _a.status) === 403) {
|
|
33
|
+
logger.error("Authentication failed. Your token may be expired. Try logging in again.");
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
throw error;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}),
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=whoami.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whoami.command.js","sourceRoot":"","sources":["../../../src/commands/auth/whoami.command.ts"],"names":[],"mappings":";;;AAAA,qDAIkC;AAClC,qDAAsD;AAEtD,mEAA+D;AAElD,QAAA,aAAa,GAAkB;IAC1C,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,mCAAmC;IAC7C,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,IAAA,0BAAW,EAAC,KAAK,IAAI,EAAE;;QAC9B,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAC;QAE5B,MAAM,MAAM,GAAG,MAAM,IAAA,8BAAqB,EAAC;YACzC,QAAQ,EAAE,IAAI;YACd,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;QAEH,IAAI;YACF,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,GAC1D,MAAM,IAAA,kBAAS,EAAC,MAAM,CAAC,CAAC;YAC1B,MAAM,CAAC,IAAI,CAAC,iBAAiB,SAAS,IAAI,QAAQ,KAAK,KAAK,GAAG,CAAC,CAAC;YAEjE,IAAI,OAAO,EAAE;gBACX,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;aAC5B;YAED,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC5B,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;gBAC9B,KAAK,MAAM,GAAG,IAAI,aAAa,EAAE;oBAC/B,MAAM,CAAC,IAAI,CAAC,OAAO,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;iBAChC;aACF;SACF;QAAC,OAAO,KAAK,EAAE;YACd,IAAI,IAAA,qBAAY,EAAC,KAAK,CAAC,IAAI,CAAA,MAAA,KAAK,CAAC,QAAQ,0CAAE,MAAM,MAAK,GAAG,EAAE;gBACzD,MAAM,CAAC,KAAK,CACV,yEAAyE,CAC1E,CAAC;aACH;iBAAM;gBACL,MAAM,KAAK,CAAC;aACb;SACF;IACH,CAAC,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ciCommand = void 0;
|
|
4
|
+
const prepare_command_1 = require("./prepare.command");
|
|
5
|
+
const run_local_command_1 = require("./run-local.command");
|
|
6
|
+
const run_command_1 = require("./run.command");
|
|
7
|
+
const start_tunnel_command_1 = require("./start-tunnel.command");
|
|
8
|
+
const upload_assets_command_1 = require("./upload-assets.command");
|
|
9
|
+
const upload_container_command_1 = require("./upload-container.command");
|
|
10
|
+
exports.ciCommand = {
|
|
11
|
+
command: "ci",
|
|
12
|
+
describe: "CI/CD commands",
|
|
13
|
+
builder: (yargs) => yargs
|
|
14
|
+
.command(run_command_1.ciRunCommand)
|
|
15
|
+
.command(run_local_command_1.ciRunLocalCommand)
|
|
16
|
+
.command(prepare_command_1.ciPrepareCommand)
|
|
17
|
+
.command(start_tunnel_command_1.ciStartTunnelCommand)
|
|
18
|
+
.command(upload_assets_command_1.ciUploadAssetsCommand)
|
|
19
|
+
.command(upload_container_command_1.ciUploadContainerCommand)
|
|
20
|
+
.demandCommand()
|
|
21
|
+
.help(),
|
|
22
|
+
handler: () => {
|
|
23
|
+
// subcommand handles this
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/ci/index.ts"],"names":[],"mappings":";;;AACA,uDAAqD;AACrD,2DAAwD;AACxD,+CAA6C;AAC7C,iEAA8D;AAC9D,mEAAgE;AAChE,yEAAsE;AAEzD,QAAA,SAAS,GAAkB;IACtC,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,gBAAgB;IAC1B,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CACjB,KAAK;SACF,OAAO,CAAC,0BAAY,CAAC;SACrB,OAAO,CAAC,qCAAiB,CAAC;SAC1B,OAAO,CAAC,kCAAgB,CAAC;SACzB,OAAO,CAAC,2CAAoB,CAAC;SAC7B,OAAO,CAAC,6CAAqB,CAAC;SAC9B,OAAO,CAAC,mDAAwB,CAAC;SACjC,aAAa,EAAE;SACf,IAAI,EAAE;IACX,OAAO,EAAE,GAAG,EAAE;QACZ,0BAA0B;IAC5B,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import log from "loglevel";
|
|
2
|
+
import { CommandModule } from "yargs";
|
|
3
|
+
interface Options {
|
|
4
|
+
apiToken?: string | null | undefined;
|
|
5
|
+
headCommit: string | null | undefined;
|
|
6
|
+
triggerScript: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const prepareForMeticulousTests: ({ apiToken, headCommit, triggerScript, logger, }: {
|
|
9
|
+
apiToken: string;
|
|
10
|
+
headCommit: string;
|
|
11
|
+
triggerScript: string;
|
|
12
|
+
logger: log.Logger;
|
|
13
|
+
}) => Promise<void>;
|
|
14
|
+
export declare const ciPrepareCommand: CommandModule<unknown, Options>;
|
|
15
|
+
export {};
|
|
@@ -23,13 +23,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
26
|
+
exports.ciPrepareCommand = exports.prepareForMeticulousTests = void 0;
|
|
27
27
|
const child_process_1 = require("child_process");
|
|
28
28
|
const client_1 = require("@alwaysmeticulous/client");
|
|
29
29
|
const common_1 = require("@alwaysmeticulous/common");
|
|
30
30
|
const Sentry = __importStar(require("@sentry/node"));
|
|
31
|
-
const command_builder_1 = require("../../command-utils/command-builder");
|
|
32
31
|
const common_options_1 = require("../../command-utils/common-options");
|
|
32
|
+
const sentry_utils_1 = require("../../command-utils/sentry.utils");
|
|
33
33
|
const out_of_date_client_error_1 = require("../../utils/out-of-date-client-error");
|
|
34
34
|
const prepareForMeticulousTests = async ({ apiToken, headCommit, triggerScript, logger, }) => {
|
|
35
35
|
try {
|
|
@@ -62,19 +62,12 @@ const prepareForMeticulousTests = async ({ apiToken, headCommit, triggerScript,
|
|
|
62
62
|
METICULOUS_DISABLE_RECURSIVE_TRIGGER: "true",
|
|
63
63
|
},
|
|
64
64
|
});
|
|
65
|
-
logger.log("Trigger script executed successfully");
|
|
65
|
+
logger.log("✅ Trigger script executed successfully");
|
|
66
66
|
Sentry.captureEvent({
|
|
67
67
|
message: "Trigger script executed successfully",
|
|
68
68
|
level: "info",
|
|
69
|
-
tags: {
|
|
70
|
-
|
|
71
|
-
eventType: "trigger-script-executed",
|
|
72
|
-
},
|
|
73
|
-
extra: {
|
|
74
|
-
triggerScript,
|
|
75
|
-
baseCommitSha,
|
|
76
|
-
headCommit,
|
|
77
|
-
},
|
|
69
|
+
tags: { command: "ci prepare", eventType: "trigger-script-executed" },
|
|
70
|
+
extra: { triggerScript, baseCommitSha, headCommit },
|
|
78
71
|
});
|
|
79
72
|
logger.log("✅ Preparation for Meticulous tests completed successfully");
|
|
80
73
|
}
|
|
@@ -112,23 +105,21 @@ const handler = async ({ apiToken, headCommit, triggerScript, }) => {
|
|
|
112
105
|
logger,
|
|
113
106
|
});
|
|
114
107
|
};
|
|
115
|
-
exports.
|
|
116
|
-
|
|
117
|
-
describe: "Prepare for Meticulous tests. If necessary, triggers the generation of a test run on the base commit
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
108
|
+
exports.ciPrepareCommand = {
|
|
109
|
+
command: "prepare",
|
|
110
|
+
describe: "Prepare for Meticulous tests. If necessary, triggers the generation of a test run on the base commit.",
|
|
111
|
+
builder: {
|
|
112
|
+
apiToken: { ...common_options_1.OPTIONS.apiToken },
|
|
113
|
+
headCommit: {
|
|
114
|
+
string: true,
|
|
115
|
+
description: "The head commit SHA on which the tests will be executed against.",
|
|
116
|
+
},
|
|
117
|
+
triggerScript: {
|
|
118
|
+
string: true,
|
|
119
|
+
required: true,
|
|
120
|
+
description: "Path to script that triggers the generation of a Meticulous test run on a specific commit in case base test run is not available. The script will be called with the commit SHA as an argument.",
|
|
121
|
+
},
|
|
126
122
|
},
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
description: "Path to script that triggers the generation of a Meticulous test run on a specific commit in case base test run is not available. The script will be called with the commit SHA as an argument.",
|
|
131
|
-
},
|
|
132
|
-
})
|
|
133
|
-
.handler(handler);
|
|
134
|
-
//# sourceMappingURL=prepare-for-meticulous-tests.command.js.map
|
|
123
|
+
handler: (0, sentry_utils_1.wrapHandler)(handler),
|
|
124
|
+
};
|
|
125
|
+
//# sourceMappingURL=prepare.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepare.command.js","sourceRoot":"","sources":["../../../src/commands/ci/prepare.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAyC;AACzC,qDAIkC;AAClC,qDAAoE;AACpE,qDAAuC;AAGvC,uEAA6D;AAC7D,mEAA+D;AAC/D,mFAG8C;AAQvC,MAAM,yBAAyB,GAAG,KAAK,EAAE,EAC9C,QAAQ,EACR,UAAU,EACV,aAAa,EACb,MAAM,GAMP,EAAiB,EAAE;IAClB,IAAI;QACF,MAAM,MAAM,GAAG,IAAA,qBAAY,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;QAE1C,yDAAyD;QACzD,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,qBAAqB,EAAE,GACzD,MAAM,IAAA,wCAA+B,EAAC;YACp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ACD,OAAO,EAAE,IAAA,0BAAW,EAAC,OAAO,CAAC;CAC9B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ScreenshotDiffOptions } from "@alwaysmeticulous/api";
|
|
2
|
+
import { ReplayExecutionOptions } from "@alwaysmeticulous/sdk-bundles-api";
|
|
3
|
+
import { CommandModule } from "yargs";
|
|
4
|
+
interface Options extends ScreenshotDiffOptions, Omit<ReplayExecutionOptions, "maxDurationMs" | "maxEventCount"> {
|
|
5
|
+
apiToken?: string | undefined;
|
|
6
|
+
commitSha?: string | undefined;
|
|
7
|
+
baseCommitSha?: string | undefined;
|
|
8
|
+
appUrl?: string | undefined;
|
|
9
|
+
githubSummary: boolean;
|
|
10
|
+
noParallelize: boolean;
|
|
11
|
+
parallelTasks?: number | null | undefined;
|
|
12
|
+
maxRetriesOnFailure: number;
|
|
13
|
+
rerunTestsNTimes: number;
|
|
14
|
+
testsFile?: string | undefined;
|
|
15
|
+
maxDurationMs: number | null | undefined;
|
|
16
|
+
maxEventCount: number | null | undefined;
|
|
17
|
+
storyboard: boolean;
|
|
18
|
+
baseTestRunId?: string | undefined;
|
|
19
|
+
sessionIdForApplicationStorage?: string | undefined;
|
|
20
|
+
enableCssCoverage?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare const ciRunLocalCommand: CommandModule<unknown, Options>;
|
|
23
|
+
export {};
|
|
@@ -3,14 +3,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.ciRunLocalCommand = void 0;
|
|
7
7
|
const common_1 = require("@alwaysmeticulous/common");
|
|
8
8
|
const replay_orchestrator_launcher_1 = require("@alwaysmeticulous/replay-orchestrator-launcher");
|
|
9
9
|
const chalk_1 = __importDefault(require("chalk"));
|
|
10
|
-
const command_builder_1 = require("../../command-utils/command-builder");
|
|
11
10
|
const common_options_1 = require("../../command-utils/common-options");
|
|
11
|
+
const sentry_utils_1 = require("../../command-utils/sentry.utils");
|
|
12
12
|
const out_of_date_client_error_1 = require("../../utils/out-of-date-client-error");
|
|
13
|
-
const
|
|
13
|
+
const NO_PARALLELIZE_FLAG = "--no-parallelize";
|
|
14
|
+
const handler = async ({ apiToken, commitSha: commitSha_, baseCommitSha, appUrl, headless, devTools, bypassCSP, diffThreshold, diffPixelThreshold, shiftTime, networkStubbing, githubSummary, noParallelize, parallelTasks: parallelTasks_, maxRetriesOnFailure, rerunTestsNTimes, testsFile, disableRemoteFonts, noSandbox, skipPauses, moveBeforeMouseEvent, maxDurationMs, maxEventCount, storyboard, essentialFeaturesOnly, logPossibleNonDeterminism, baseTestRunId, sessionIdForApplicationStorage, enableCssCoverage, }) => {
|
|
14
15
|
const executionOptions = {
|
|
15
16
|
headless,
|
|
16
17
|
devTools,
|
|
@@ -45,7 +46,7 @@ const handler = async ({ apiToken, commitSha: commitSha_, baseCommitSha, appUrl,
|
|
|
45
46
|
else if (!headless) {
|
|
46
47
|
logger.info(`\nTip: run with ${chalk_1.default.bold(common_options_1.HEADLESS_FLAG)} to hide the windows.`);
|
|
47
48
|
}
|
|
48
|
-
const
|
|
49
|
+
const parallelTasks = noParallelize ? 1 : parallelTasks_;
|
|
49
50
|
const commitSha = (await (0, common_1.getCommitSha)(commitSha_)) || "unknown";
|
|
50
51
|
try {
|
|
51
52
|
const { testRun } = await (0, replay_orchestrator_launcher_1.executeTestRun)({
|
|
@@ -57,7 +58,7 @@ const handler = async ({ apiToken, commitSha: commitSha_, baseCommitSha, appUrl,
|
|
|
57
58
|
baseCommitSha: baseCommitSha !== null && baseCommitSha !== void 0 ? baseCommitSha : null,
|
|
58
59
|
baseTestRunId: baseTestRunId !== null && baseTestRunId !== void 0 ? baseTestRunId : null,
|
|
59
60
|
appUrl: appUrl !== null && appUrl !== void 0 ? appUrl : null,
|
|
60
|
-
parallelTasks:
|
|
61
|
+
parallelTasks: parallelTasks !== null && parallelTasks !== void 0 ? parallelTasks : null,
|
|
61
62
|
maxRetriesOnFailure,
|
|
62
63
|
rerunTestsNTimes,
|
|
63
64
|
githubSummary,
|
|
@@ -77,63 +78,63 @@ const handler = async ({ apiToken, commitSha: commitSha_, baseCommitSha, appUrl,
|
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
80
|
};
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
},
|
|
90
|
-
appUrl: {
|
|
91
|
-
demandOption: true,
|
|
92
|
-
string: true,
|
|
93
|
-
description: "The URL to execute the tests against. This parameter is required.",
|
|
94
|
-
},
|
|
95
|
-
githubSummary: {
|
|
96
|
-
boolean: true,
|
|
97
|
-
description: "Outputs a summary page for GitHub actions",
|
|
98
|
-
default: false,
|
|
99
|
-
},
|
|
100
|
-
noParallelize: {
|
|
101
|
-
boolean: true,
|
|
102
|
-
description: "Run tests sequentially",
|
|
103
|
-
default: false,
|
|
104
|
-
},
|
|
105
|
-
parallelTasks: {
|
|
106
|
-
number: true,
|
|
107
|
-
description: "Number of tasks to run in parallel (defaults to two per CPU)",
|
|
108
|
-
coerce: (value) => {
|
|
109
|
-
if (typeof value === "number" && value <= 0) {
|
|
110
|
-
return null;
|
|
111
|
-
}
|
|
112
|
-
return value;
|
|
81
|
+
exports.ciRunLocalCommand = {
|
|
82
|
+
command: "run-local",
|
|
83
|
+
describe: "Run all replay test cases locally",
|
|
84
|
+
builder: {
|
|
85
|
+
apiToken: common_options_1.OPTIONS.apiToken,
|
|
86
|
+
commitSha: common_options_1.OPTIONS.commitSha,
|
|
87
|
+
baseCommitSha: {
|
|
88
|
+
string: true,
|
|
89
|
+
description: "The base commit to compare test results against for test cases that don't have a baseReplayId specified.",
|
|
113
90
|
},
|
|
91
|
+
appUrl: {
|
|
92
|
+
demandOption: true,
|
|
93
|
+
string: true,
|
|
94
|
+
description: "The URL to execute the tests against. This parameter is required.",
|
|
95
|
+
},
|
|
96
|
+
githubSummary: {
|
|
97
|
+
boolean: true,
|
|
98
|
+
description: "Outputs a summary page for GitHub actions",
|
|
99
|
+
default: false,
|
|
100
|
+
},
|
|
101
|
+
noParallelize: {
|
|
102
|
+
boolean: true,
|
|
103
|
+
description: "Run tests sequentially",
|
|
104
|
+
default: false,
|
|
105
|
+
},
|
|
106
|
+
parallelTasks: {
|
|
107
|
+
number: true,
|
|
108
|
+
description: "Number of tasks to run in parallel (defaults to two per CPU)",
|
|
109
|
+
coerce: (value) => {
|
|
110
|
+
if (typeof value === "number" && value <= 0) {
|
|
111
|
+
return null;
|
|
112
|
+
}
|
|
113
|
+
return value;
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
maxRetriesOnFailure: {
|
|
117
|
+
number: true,
|
|
118
|
+
description: "If set to a value greater than 0 then will re-run any replays that give a visual diff and mark them as a flake if the snapshot generated on one of the retried replays differs from that in the first replay.",
|
|
119
|
+
default: 0,
|
|
120
|
+
},
|
|
121
|
+
rerunTestsNTimes: {
|
|
122
|
+
number: true,
|
|
123
|
+
description: "If set to a value greater than 0 then will re-run all replays the specified number of times and mark them as a flake if the visual snapshot generated on one of the retried replays differs from that in the first replay.",
|
|
124
|
+
default: 0,
|
|
125
|
+
},
|
|
126
|
+
testsFile: {
|
|
127
|
+
string: true,
|
|
128
|
+
description: "The path to the meticulous.json file containing the list of tests you want to run. If not set a search will be performed to find a meticulous.json file in the current directory or the nearest parent directory.",
|
|
129
|
+
},
|
|
130
|
+
baseTestRunId: {
|
|
131
|
+
string: true,
|
|
132
|
+
description: "The id of a test run to compare visual snapshots against.",
|
|
133
|
+
},
|
|
134
|
+
moveBeforeMouseEvent: common_options_1.OPTIONS.moveBeforeMouseEvent,
|
|
135
|
+
...common_options_1.COMMON_REPLAY_OPTIONS,
|
|
136
|
+
...common_options_1.SCREENSHOT_DIFF_OPTIONS,
|
|
114
137
|
},
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
default: 0,
|
|
119
|
-
},
|
|
120
|
-
rerunTestsNTimes: {
|
|
121
|
-
number: true,
|
|
122
|
-
description: "If set to a value greater than 0 then will re-run all replays the specified number of times and mark them as a flake if the visual snapshot generated on one of the retryed replays differs from that in the first replay.",
|
|
123
|
-
default: 0,
|
|
124
|
-
},
|
|
125
|
-
testsFile: {
|
|
126
|
-
string: true,
|
|
127
|
-
description: "The path to the meticulous.json file containing the list of tests you want to run." +
|
|
128
|
-
" If not set a search will be performed to find a meticulous.json file in the current directory or the nearest parent directory.",
|
|
129
|
-
},
|
|
130
|
-
baseTestRunId: {
|
|
131
|
-
string: true,
|
|
132
|
-
description: "The id of a test run to compare visual snapshots against.",
|
|
133
|
-
},
|
|
134
|
-
moveBeforeMouseEvent: common_options_1.OPTIONS.moveBeforeMouseEvent,
|
|
135
|
-
...common_options_1.COMMON_REPLAY_OPTIONS,
|
|
136
|
-
...common_options_1.SCREENSHOT_DIFF_OPTIONS,
|
|
137
|
-
})
|
|
138
|
-
.handler(handler);
|
|
139
|
-
//# sourceMappingURL=run-all-tests.command.js.map
|
|
138
|
+
handler: (0, sentry_utils_1.wrapHandler)(handler),
|
|
139
|
+
};
|
|
140
|
+
//# sourceMappingURL=run-local.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-local.command.js","sourceRoot":"","sources":["../../../src/commands/ci/run-local.command.ts"],"names":[],"mappings":";;;;;;AAKA,qDAAoE;AACpE,iGAAgF;AAEhF,kDAA0B;AAE1B,uEAK4C;AAC5C,mEAA+D;AAC/D,mFAG8C;AAuB9C,MAAM,mBAAmB,GAAG,kBAAkB,CAAC;AAE/C,MAAM,OAAO,GAAG,KAAK,EAAE,EACrB,QAAQ,EACR,SAAS,EAAE,UAAU,EACrB,aAAa,EACb,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,aAAa,EACb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oBAAoB;QAClD,GAAG,sCAAqB;QACxB,GAAG,wCAAuB;KAC3B;IACD,OAAO,EAAE,IAAA,0BAAW,EAAC,OAAO,CAAC;CAC9B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CommandModule } from "yargs";
|
|
2
|
+
interface Options {
|
|
3
|
+
apiToken?: string | undefined;
|
|
4
|
+
commitSha?: string | undefined;
|
|
5
|
+
appUrl: string;
|
|
6
|
+
secureTunnelHost?: string | undefined;
|
|
7
|
+
keepTunnelOpenSec: number;
|
|
8
|
+
allowInvalidCert: boolean;
|
|
9
|
+
proxyAllUrls: boolean;
|
|
10
|
+
rewriteHostnameToAppUrl: boolean;
|
|
11
|
+
silenceTunnelWorker: boolean;
|
|
12
|
+
http2Connections?: number | undefined;
|
|
13
|
+
companionAssetsFolder?: string | undefined;
|
|
14
|
+
companionAssetsZip?: string | undefined;
|
|
15
|
+
companionAssetsRegex?: string | undefined;
|
|
16
|
+
hadPreparedForTests: boolean;
|
|
17
|
+
triggerScript?: string | undefined;
|
|
18
|
+
postComment?: boolean | undefined;
|
|
19
|
+
redactPassword?: boolean | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare const ciRunCommand: CommandModule<unknown, Options>;
|
|
22
|
+
export {};
|