@alwaysmeticulous/cli 2.303.0 → 2.304.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/commands/agent/build-git-options.d.ts +25 -20
- package/dist/commands/agent/build-git-options.d.ts.map +1 -1
- package/dist/commands/agent/build-git-options.js +62 -54
- package/dist/commands/agent/build-git-options.js.map +1 -1
- package/dist/commands/agent/build-git-options.spec.js +96 -62
- package/dist/commands/agent/build-git-options.spec.js.map +1 -1
- package/dist/commands/agent/js-coverage-diff.command.d.ts +1 -1
- package/dist/commands/agent/js-coverage-diff.command.d.ts.map +1 -1
- package/dist/commands/agent/js-coverage-diff.command.js +8 -8
- package/dist/commands/agent/js-coverage-diff.command.js.map +1 -1
- package/dist/commands/agent/js-coverage.command.d.ts +4 -4
- package/dist/commands/agent/js-coverage.command.d.ts.map +1 -1
- package/dist/commands/agent/js-coverage.command.js +25 -25
- package/dist/commands/agent/js-coverage.command.js.map +1 -1
- package/dist/commands/agent/trigger-test-run.command.d.ts +27 -1
- package/dist/commands/agent/trigger-test-run.command.d.ts.map +1 -1
- package/dist/commands/agent/trigger-test-run.command.js +64 -39
- package/dist/commands/agent/trigger-test-run.command.js.map +1 -1
- package/dist/commands/agent/trigger-test-run.command.spec.d.ts +2 -0
- package/dist/commands/agent/trigger-test-run.command.spec.d.ts.map +1 -0
- package/dist/commands/agent/trigger-test-run.command.spec.js +88 -0
- package/dist/commands/agent/trigger-test-run.command.spec.js.map +1 -0
- package/dist/commands/agent/upload-build.command.d.ts +0 -1
- package/dist/commands/agent/upload-build.command.d.ts.map +1 -1
- package/dist/commands/agent/upload-build.command.js +4 -9
- package/dist/commands/agent/upload-build.command.js.map +1 -1
- package/dist/commands/auth/__tests__/whoami.command.spec.js +11 -2
- package/dist/commands/auth/__tests__/whoami.command.spec.js.map +1 -1
- package/dist/commands/auth/list-projects.command.js +4 -3
- package/dist/commands/auth/list-projects.command.js.map +1 -1
- package/dist/commands/auth/set-project.command.d.ts.map +1 -1
- package/dist/commands/auth/set-project.command.js +6 -3
- package/dist/commands/auth/set-project.command.js.map +1 -1
- package/dist/commands/auth/whoami.command.d.ts.map +1 -1
- package/dist/commands/auth/whoami.command.js +6 -3
- package/dist/commands/auth/whoami.command.js.map +1 -1
- package/dist/commands/ci/run-with-uploaded-asset-chunks.command.d.ts.map +1 -1
- package/dist/commands/ci/run-with-uploaded-asset-chunks.command.js +6 -3
- package/dist/commands/ci/run-with-uploaded-asset-chunks.command.js.map +1 -1
- package/dist/commands/ci/trigger-test-run.core.d.ts.map +1 -1
- package/dist/commands/ci/trigger-test-run.core.js +6 -3
- package/dist/commands/ci/trigger-test-run.core.js.map +1 -1
- package/dist/commands/debug/index.d.ts.map +1 -1
- package/dist/commands/debug/index.js +6 -3
- package/dist/commands/debug/index.js.map +1 -1
- package/dist/commands/local/relevant-sessions.command.d.ts.map +1 -1
- package/dist/commands/local/relevant-sessions.command.js +6 -3
- package/dist/commands/local/relevant-sessions.command.js.map +1 -1
- package/dist/commands/project/show.command.d.ts.map +1 -1
- package/dist/commands/project/show.command.js +6 -3
- package/dist/commands/project/show.command.js.map +1 -1
- package/dist/commands/record/__tests__/login.command.spec.d.ts +2 -0
- package/dist/commands/record/__tests__/login.command.spec.d.ts.map +1 -0
- package/dist/commands/record/__tests__/login.command.spec.js +72 -0
- package/dist/commands/record/__tests__/login.command.spec.js.map +1 -0
- package/dist/commands/record/__tests__/session.command.spec.d.ts +2 -0
- package/dist/commands/record/__tests__/session.command.spec.d.ts.map +1 -0
- package/dist/commands/record/__tests__/session.command.spec.js +86 -0
- package/dist/commands/record/__tests__/session.command.spec.js.map +1 -0
- package/dist/commands/record/login.command.d.ts.map +1 -1
- package/dist/commands/record/login.command.js +9 -3
- package/dist/commands/record/login.command.js.map +1 -1
- package/dist/commands/record/session.command.d.ts.map +1 -1
- package/dist/commands/record/session.command.js +9 -3
- package/dist/commands/record/session.command.js.map +1 -1
- package/dist/commands/replay.command.d.ts.map +1 -1
- package/dist/commands/replay.command.js +10 -15
- package/dist/commands/replay.command.js.map +1 -1
- package/package.json +9 -9
|
@@ -3,8 +3,8 @@ interface Options {
|
|
|
3
3
|
apiToken?: string | null | undefined;
|
|
4
4
|
replayDiffId: string;
|
|
5
5
|
screenshotName: string | undefined;
|
|
6
|
-
globFilter: string | undefined;
|
|
7
6
|
includeAllFiles: boolean;
|
|
7
|
+
globFilter: string | undefined;
|
|
8
8
|
json: boolean;
|
|
9
9
|
}
|
|
10
10
|
export declare const jsCoverageDiffCommand: CommandModule<unknown, Options>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"js-coverage-diff.command.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/js-coverage-diff.command.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3C,UAAU,OAAO;IACf,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,
|
|
1
|
+
{"version":3,"file":"js-coverage-diff.command.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/js-coverage-diff.command.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3C,UAAU,OAAO;IACf,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,eAAe,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,IAAI,EAAE,OAAO,CAAC;CACf;AA+DD,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAAC,OAAO,EAAE,OAAO,CAkCjE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="60e94b8d-4609-5c30-86c1-5132de3a03cc")}catch(e){}}();
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.jsCoverageDiffCommand = void 0;
|
|
@@ -8,15 +8,15 @@ const common_1 = require("@alwaysmeticulous/common");
|
|
|
8
8
|
const sentry_utils_1 = require("../../command-utils/sentry.utils");
|
|
9
9
|
const format_coverage_ranges_1 = require("../../utils/format-coverage-ranges");
|
|
10
10
|
const log = (...args) => process.stderr.write(args.join(" ") + "\n");
|
|
11
|
-
const handler = async ({ apiToken, replayDiffId, screenshotName,
|
|
11
|
+
const handler = async ({ apiToken, replayDiffId, screenshotName, includeAllFiles, globFilter, json, }) => {
|
|
12
12
|
(0, common_1.initLogger)();
|
|
13
13
|
const client = await (0, client_1.createClientWithOAuth)({
|
|
14
14
|
apiToken,
|
|
15
15
|
enableOAuthLogin: true,
|
|
16
16
|
});
|
|
17
17
|
const result = await (0, client_1.getReplayDiffJsCoverage)(client, replayDiffId, screenshotName, {
|
|
18
|
-
globFilter,
|
|
19
18
|
includeAllFiles,
|
|
19
|
+
globFilter,
|
|
20
20
|
});
|
|
21
21
|
if (json) {
|
|
22
22
|
console.log(JSON.stringify(result, null, 2));
|
|
@@ -63,15 +63,15 @@ exports.jsCoverageDiffCommand = {
|
|
|
63
63
|
string: true,
|
|
64
64
|
description: 'Screenshot name (e.g. "after-event-5" or "end-state"). Omit for the whole-replay diff.',
|
|
65
65
|
},
|
|
66
|
-
globFilter: {
|
|
67
|
-
string: true,
|
|
68
|
-
description: 'Keep only repo file paths matching this gitignore-style glob, e.g. "src/components/**". Scopes base, head, and the diff.',
|
|
69
|
-
},
|
|
70
66
|
includeAllFiles: {
|
|
71
67
|
boolean: true,
|
|
72
68
|
default: false,
|
|
73
69
|
description: "Include base/head rows with no executed ranges (dropped by default).",
|
|
74
70
|
},
|
|
71
|
+
globFilter: {
|
|
72
|
+
string: true,
|
|
73
|
+
description: 'Keep only repo file paths matching this gitignore-style glob, e.g. "src/components/**". Scopes base, head, and the diff.',
|
|
74
|
+
},
|
|
75
75
|
json: {
|
|
76
76
|
boolean: true,
|
|
77
77
|
description: "Output the raw coverage response as JSON",
|
|
@@ -81,4 +81,4 @@ exports.jsCoverageDiffCommand = {
|
|
|
81
81
|
handler: (0, sentry_utils_1.wrapHandler)(handler),
|
|
82
82
|
};
|
|
83
83
|
//# sourceMappingURL=js-coverage-diff.command.js.map
|
|
84
|
-
//# debugId=
|
|
84
|
+
//# debugId=60e94b8d-4609-5c30-86c1-5132de3a03cc
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"js-coverage-diff.command.js","sources":["../../../src/commands/agent/js-coverage-diff.command.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAAA,qDAGkC;AAClC,qDAAsD;AAEtD,mEAA+D;AAC/D,+EAA0E;AAW1E,MAAM,GAAG,GAAG,CAAC,GAAG,IAAe,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AAEhF,MAAM,OAAO,GAAG,KAAK,EAAE,EACrB,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,UAAU,EACV,
|
|
1
|
+
{"version":3,"file":"js-coverage-diff.command.js","sources":["../../../src/commands/agent/js-coverage-diff.command.ts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AAI;YACb,WAAW,EAAE,0CAA0C;YACvD,OAAO,EAAE,KAAK;SACf;KACF;IACD,OAAO,EAAE,IAAA,0BAAW,EAAC,OAAO,CAAC;CAC9B,CAAC","debugId":"60e94b8d-4609-5c30-86c1-5132de3a03cc"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { CommandModule } from "yargs";
|
|
2
2
|
export interface Options {
|
|
3
3
|
apiToken?: string | null | undefined;
|
|
4
|
-
replayId: string | undefined;
|
|
5
4
|
testRunId: string | undefined;
|
|
6
5
|
commitSha: string | undefined;
|
|
7
|
-
screenshotName: string | undefined;
|
|
8
6
|
dontWaitForTestRunToComplete: boolean;
|
|
7
|
+
replayId: string | undefined;
|
|
8
|
+
screenshotName: string | undefined;
|
|
9
|
+
includeAllFiles: boolean;
|
|
10
|
+
globFilter: string | undefined;
|
|
9
11
|
includeExecutedRanges: boolean;
|
|
10
12
|
includeExecutableRanges: boolean;
|
|
11
13
|
includeUncoveredRanges: boolean;
|
|
12
14
|
includeCoveragePercentage: boolean;
|
|
13
|
-
includeAllFiles: boolean;
|
|
14
15
|
prDiffOnly: boolean;
|
|
15
|
-
globFilter: string | undefined;
|
|
16
16
|
json: boolean;
|
|
17
17
|
}
|
|
18
18
|
type CoverageColumn = "executedRanges" | "executableRanges" | "uncoveredRanges" | "coveragePercentage";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"js-coverage.command.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/js-coverage.command.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAY3C,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,
|
|
1
|
+
{"version":3,"file":"js-coverage.command.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/js-coverage.command.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAY3C,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,4BAA4B,EAAE,OAAO,CAAC;IACtC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,eAAe,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,uBAAuB,EAAE,OAAO,CAAC;IACjC,sBAAsB,EAAE,OAAO,CAAC;IAChC,yBAAyB,EAAE,OAAO,CAAC;IACnC,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;CACf;AAMD,KAAK,cAAc,GACf,gBAAgB,GAChB,kBAAkB,GAClB,iBAAiB,GACjB,oBAAoB,CAAC;AAgHzB,eAAO,MAAM,oCAAoC,YACtC,OAAO,KACf,IAgBF,CAAC;AAKF,eAAO,MAAM,gBAAgB,YAAa,OAAO,KAAG,cAAc,EAoBjE,CAAC;AAuLF,eAAO,MAAM,uBAAuB,UAAW,OAAO,KAAG,OAGjC,CAAC;AAEzB,eAAO,MAAM,iBAAiB,EAAE,aAAa,CAAC,OAAO,EAAE,OAAO,CAgF7D,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="22f8ecf6-63eb-52da-8d14-cd9b32b8c54d")}catch(e){}}();
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.jsCoverageCommand = exports.isAmbiguousTestRunError = exports.determineColumns = exports.assertTestRunOnlyFlagsUnsetForReplay = void 0;
|
|
@@ -19,7 +19,7 @@ const COVERAGE_COLUMN_FLAG = {
|
|
|
19
19
|
};
|
|
20
20
|
const log = (...args) => process.stderr.write(args.join(" ") + "\n");
|
|
21
21
|
const handler = async (options) => {
|
|
22
|
-
const { apiToken,
|
|
22
|
+
const { apiToken, testRunId, commitSha, dontWaitForTestRunToComplete, replayId, screenshotName, globFilter, json, } = options;
|
|
23
23
|
(0, common_1.initLogger)();
|
|
24
24
|
if (screenshotName != null && replayId == null) {
|
|
25
25
|
throw new cli_user_error_1.CliUserError("--screenshotName only applies to --replayId.");
|
|
@@ -47,12 +47,12 @@ const handler = async (options) => {
|
|
|
47
47
|
// selecting test-run coverage.
|
|
48
48
|
if (replayId != null) {
|
|
49
49
|
await printReplayCoverage(client, apiToken_, {
|
|
50
|
-
replayId,
|
|
51
|
-
screenshotName,
|
|
52
50
|
testRunId,
|
|
53
51
|
commitSha,
|
|
54
|
-
|
|
52
|
+
replayId,
|
|
53
|
+
screenshotName,
|
|
55
54
|
includeAllFiles: options.includeAllFiles,
|
|
55
|
+
globFilter,
|
|
56
56
|
json,
|
|
57
57
|
});
|
|
58
58
|
}
|
|
@@ -133,7 +133,7 @@ const resolveTestRunIdForCommit = async (client, apiToken, commitSha) => {
|
|
|
133
133
|
const { testRunId } = await (0, resolve_test_run_from_commit_1.resolveTestRunForCommitOrThrow)(client, apiToken, commitSha);
|
|
134
134
|
return testRunId;
|
|
135
135
|
};
|
|
136
|
-
const printReplayCoverage = async (client, apiToken, {
|
|
136
|
+
const printReplayCoverage = async (client, apiToken, { testRunId, commitSha, replayId, screenshotName, includeAllFiles, globFilter, json, }) => {
|
|
137
137
|
// An explicit --commitSha selects the run client-side (the endpoint only
|
|
138
138
|
// understands testRunId); --testRunId is passed through as-is.
|
|
139
139
|
const effectiveTestRunId = testRunId ??
|
|
@@ -143,8 +143,8 @@ const printReplayCoverage = async (client, apiToken, { replayId, screenshotName,
|
|
|
143
143
|
try {
|
|
144
144
|
const result = await (0, client_1.getReplayJsCoverage)(client, replayId, screenshotName, {
|
|
145
145
|
testRunId: effectiveTestRunId,
|
|
146
|
-
globFilter,
|
|
147
146
|
includeAllFiles,
|
|
147
|
+
globFilter,
|
|
148
148
|
});
|
|
149
149
|
printReplayResult(result, json);
|
|
150
150
|
}
|
|
@@ -161,8 +161,8 @@ const printReplayCoverage = async (client, apiToken, { replayId, screenshotName,
|
|
|
161
161
|
try {
|
|
162
162
|
const result = await (0, client_1.getReplayJsCoverage)(client, replayId, screenshotName, {
|
|
163
163
|
testRunId: fallback.testRunId,
|
|
164
|
-
globFilter,
|
|
165
164
|
includeAllFiles,
|
|
165
|
+
globFilter,
|
|
166
166
|
});
|
|
167
167
|
// Only announce the fallback once it has actually worked, so a doomed
|
|
168
168
|
// retry doesn't leave a misleading "retrying against run X" line.
|
|
@@ -202,12 +202,12 @@ const printTestRunCoverage = async (client, testRunId, options, columns, json) =
|
|
|
202
202
|
// the same `columns` array the headers/formatting use, so they stay in sync.
|
|
203
203
|
const requestOptions = {
|
|
204
204
|
includeAllFiles: options.includeAllFiles,
|
|
205
|
-
prDiffOnly: options.prDiffOnly,
|
|
206
205
|
...(options.globFilter != null ? { globFilter: options.globFilter } : {}),
|
|
207
206
|
};
|
|
208
207
|
for (const column of columns) {
|
|
209
208
|
requestOptions[COVERAGE_COLUMN_FLAG[column]] = true;
|
|
210
209
|
}
|
|
210
|
+
requestOptions.prDiffOnly = options.prDiffOnly;
|
|
211
211
|
const result = await (0, client_1.getTestRunJsCoverage)(client, testRunId, requestOptions);
|
|
212
212
|
if (json) {
|
|
213
213
|
console.log(JSON.stringify(result, null, 2));
|
|
@@ -253,10 +253,6 @@ exports.jsCoverageCommand = {
|
|
|
253
253
|
describe: "Get JS coverage for a single replay or a whole test run (use js-coverage-diff for base vs head)",
|
|
254
254
|
builder: {
|
|
255
255
|
apiToken: { string: true, description: "Meticulous API token" },
|
|
256
|
-
replayId: {
|
|
257
|
-
string: true,
|
|
258
|
-
description: "The replay ID. Pass the base or head replay to get each side's coverage. Repo file paths are resolved against the run that executed the replay; --testRunId / --commitSha may be combined to disambiguate when the replay was the head of more than one run.",
|
|
259
|
-
},
|
|
260
256
|
testRunId: {
|
|
261
257
|
string: true,
|
|
262
258
|
description: "The test run ID. On its own, returns coverage for the whole test run. Combined with --replayId, the replay must belong to this run (head or base); if it was this run's head, paths resolve against this run, otherwise against the replay's own execution run.",
|
|
@@ -265,14 +261,27 @@ exports.jsCoverageCommand = {
|
|
|
265
261
|
string: true,
|
|
266
262
|
description: "A commit SHA, used as an alternative to --testRunId: the latest test run for the commit is resolved and used. For whole-test-run coverage, defaults to the local git HEAD when neither --testRunId nor --commitSha is given.",
|
|
267
263
|
},
|
|
264
|
+
dontWaitForTestRunToComplete: {
|
|
265
|
+
boolean: true,
|
|
266
|
+
default: false,
|
|
267
|
+
description: "For whole-test-run coverage, return immediately instead of the default of blocking until the run finishes; an unfinished run is then reported as not complete.",
|
|
268
|
+
},
|
|
269
|
+
replayId: {
|
|
270
|
+
string: true,
|
|
271
|
+
description: "The replay ID. Pass the base or head replay to get each side's coverage. Repo file paths are resolved against the run that executed the replay; --testRunId / --commitSha may be combined to disambiguate when the replay was the head of more than one run.",
|
|
272
|
+
},
|
|
268
273
|
screenshotName: {
|
|
269
274
|
string: true,
|
|
270
275
|
description: 'Screenshot name (e.g. "after-event-5" or "end-state"), for use with --replayId. Omit for the whole replay.',
|
|
271
276
|
},
|
|
272
|
-
|
|
277
|
+
includeAllFiles: {
|
|
273
278
|
boolean: true,
|
|
274
279
|
default: false,
|
|
275
|
-
description: "
|
|
280
|
+
description: "Return every file, regardless of the requested columns. By default a file is dropped unless at least one requested column has a value for it (e.g. with only executed ranges, files with no executed lines are dropped). Works for both replay and whole-test-run coverage.",
|
|
281
|
+
},
|
|
282
|
+
globFilter: {
|
|
283
|
+
string: true,
|
|
284
|
+
description: 'Keep only repo file paths matching this gitignore-style glob, e.g. "src/components/**".',
|
|
276
285
|
},
|
|
277
286
|
includeExecutedRanges: {
|
|
278
287
|
boolean: true,
|
|
@@ -294,20 +303,11 @@ exports.jsCoverageCommand = {
|
|
|
294
303
|
default: false,
|
|
295
304
|
description: "Include the coverage percentage column (0–100; executed / executable lines per file). Whole-test-run coverage only.",
|
|
296
305
|
},
|
|
297
|
-
includeAllFiles: {
|
|
298
|
-
boolean: true,
|
|
299
|
-
default: false,
|
|
300
|
-
description: "Return every file, regardless of the requested columns. By default a file is dropped unless at least one requested column has a value for it (e.g. with only executed ranges, files with no executed lines are dropped). Works for both replay and whole-test-run coverage.",
|
|
301
|
-
},
|
|
302
306
|
prDiffOnly: {
|
|
303
307
|
boolean: true,
|
|
304
308
|
default: false,
|
|
305
309
|
description: "Return only coverage for files changed in the PR diff (from coverage.pr.json). Whole-test-run coverage only.",
|
|
306
310
|
},
|
|
307
|
-
globFilter: {
|
|
308
|
-
string: true,
|
|
309
|
-
description: 'Keep only repo file paths matching this gitignore-style glob, e.g. "src/components/**".',
|
|
310
|
-
},
|
|
311
311
|
json: {
|
|
312
312
|
boolean: true,
|
|
313
313
|
description: "Output the raw coverage response as JSON",
|
|
@@ -317,4 +317,4 @@ exports.jsCoverageCommand = {
|
|
|
317
317
|
handler: (0, sentry_utils_1.wrapHandler)(handler),
|
|
318
318
|
};
|
|
319
319
|
//# sourceMappingURL=js-coverage.command.js.map
|
|
320
|
-
//# debugId=
|
|
320
|
+
//# debugId=22f8ecf6-63eb-52da-8d14-cd9b32b8c54d
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"js-coverage.command.js","sources":["../../../src/commands/agent/js-coverage.command.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAMA,qDAOkC;AAClC,qDAAsD;AAEtD,mEAA+D;AAC/D,+DAA0D;AAC1D,+EAA0E;AAC1E,2FAMkD;AA6BlD,+EAA+E;AAC/E,wEAAwE;AACxE,MAAM,oBAAoB,GAMtB;IACF,cAAc,EAAE,uBAAuB;IACvC,gBAAgB,EAAE,yBAAyB;IAC3C,eAAe,EAAE,wBAAwB;IACzC,kBAAkB,EAAE,2BAA2B;CAChD,CAAC;AAEF,MAAM,GAAG,GAAG,CAAC,GAAG,IAAe,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AAEhF,MAAM,OAAO,GAAG,KAAK,EAAE,OAAgB,EAAiB,EAAE;IACxD,MAAM,EACJ,QAAQ,EACR,
|
|
1
|
+
{"version":3,"file":"js-coverage.command.js","sources":["../../../src/commands/agent/js-coverage.command.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAMA,qDAOkC;AAClC,qDAAsD;AAEtD,mEAA+D;AAC/D,+DAA0D;AAC1D,+EAA0E;AAC1E,2FAMkD;AA6BlD,+EAA+E;AAC/E,wEAAwE;AACxE,MAAM,oBAAoB,GAMtB;IACF,cAAc,EAAE,uBAAuB;IACvC,gBAAgB,EAAE,yBAAyB;IAC3C,eAAe,EAAE,wBAAwB;IACzC,kBAAkB,EAAE,2BAA2B;CAChD,CAAC;AAEF,MAAM,GAAG,GAAG,CAAC,GAAG,IAAe,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AAEhF,MAAM,OAAO,GAAG,KAAK,EAAE,OAAgB,EAAiB,EAAE;IACxD,MAAM,EACJ,QAAQ,EACR,SAAS,EACT,SAAS,EACT,4BAA4B,EAC5B,QAAQ,EACR,cAAc,EACd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T,MAAM,EAAE,IAAI;YACZ,WAAW,EACT,8NAA8N;SACjO;QACD,4BAA4B,EAAE;YAC5B,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,KAAK;YACd,WAAW,EACT,gKAAgK;SACnK;QACD,QAAQ,EAAE;YACR,MAAM,EAAE,IAAI;YACZ,WAAW,EACT,8PAA8P;SACjQ;QACD,cAAc,EAAE;YACd,MAAM,EAAE,IAAI;YACZ,WAAW,EACT,4GAA4G;SAC/G;QACD,eAAe,EAAE;YACf,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,KAAK;YACd,WAAW,EACT,6QAA6Q;SAChR;QACD,UAAU,EAAE;YACV,MAAM,EAAE,IAAI;YACZ,WAAW,EACT,yFAAyF;SAC5F;QACD,qBAAqB,EAAE;YACrB,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,KAAK;YACd,WAAW,EACT,8HAA8H;SACjI;QACD,uBAAuB,EAAE;YACvB,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,KAAK;YACd,WAAW,EACT,yGAAyG;SAC5G;QACD,sBAAsB,EAAE;YACtB,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,KAAK;YACd,WAAW,EACT,qGAAqG;SACxG;QACD,yBAAyB,EAAE;YACzB,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,KAAK;YACd,WAAW,EACT,qHAAqH;SACxH;QACD,UAAU,EAAE;YACV,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,KAAK;YACd,WAAW,EACT,8GAA8G;SACjH;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,IAAI;YACb,WAAW,EAAE,0CAA0C;YACvD,OAAO,EAAE,KAAK;SACf;KACF;IACD,OAAO,EAAE,IAAA,0BAAW,EAAC,OAAO,CAAC;CAC9B,CAAC","debugId":"22f8ecf6-63eb-52da-8d14-cd9b32b8c54d"}
|
|
@@ -5,12 +5,38 @@ interface Options {
|
|
|
5
5
|
commitSha?: string | undefined;
|
|
6
6
|
baseSha?: string | undefined;
|
|
7
7
|
gitDiffOutput?: string | undefined;
|
|
8
|
-
repoDirectory?: string | undefined;
|
|
9
8
|
sessionIds?: string | undefined;
|
|
10
9
|
dontWaitForTestRunToComplete: boolean;
|
|
11
10
|
json: boolean;
|
|
12
11
|
dryRun?: boolean;
|
|
13
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* Whether the "nothing to test" short-circuit should fire: base equals head
|
|
15
|
+
* with no diff to attach. Requires `commitSha` (--commitSha mode, explicit or
|
|
16
|
+
* inferred): in --deploymentId mode `effectiveHead` is only a local proxy for
|
|
17
|
+
* the deployment's actual commit, so an empty local diff doesn't prove
|
|
18
|
+
* there's nothing to test there (the backend may already have a diff
|
|
19
|
+
* uploaded separately for that deployment and base). Also skipped for a
|
|
20
|
+
* pinned --sessionIds re-run, which deliberately proceeds head-only.
|
|
21
|
+
*/
|
|
22
|
+
export declare const shouldSkipAsNothingToTest: ({ commitSha, effectiveHead, baseSha, gitDiffOutput, hasPinnedSessionIds, }: {
|
|
23
|
+
commitSha: string | undefined;
|
|
24
|
+
effectiveHead: string | undefined;
|
|
25
|
+
baseSha: string;
|
|
26
|
+
gitDiffOutput: string | undefined;
|
|
27
|
+
hasPinnedSessionIds: boolean;
|
|
28
|
+
}) => boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Whether to warn that the diff computed pre-trigger may not match what the
|
|
31
|
+
* deployment actually executed. Skipped for ephemeral heads (a `git stash
|
|
32
|
+
* create` SHA differs between invocations for identical content, so the
|
|
33
|
+
* comparison would be a false positive) or when either commit is unknown.
|
|
34
|
+
*/
|
|
35
|
+
export declare const shouldWarnOfHeadDrift: ({ headIsEphemeral, head, headCommitSha, }: {
|
|
36
|
+
headIsEphemeral: boolean;
|
|
37
|
+
head: string | undefined;
|
|
38
|
+
headCommitSha: string | null;
|
|
39
|
+
}) => boolean;
|
|
14
40
|
export declare const triggerTestRunCommand: CommandModule<unknown, Options>;
|
|
15
41
|
export {};
|
|
16
42
|
//# sourceMappingURL=trigger-test-run.command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger-test-run.command.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/trigger-test-run.command.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAe3C,UAAU,OAAO;IACf,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,
|
|
1
|
+
{"version":3,"file":"trigger-test-run.command.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/trigger-test-run.command.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAe3C,UAAU,OAAO;IACf,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,4BAA4B,EAAE,OAAO,CAAC;IACtC,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,+EAMnC;IACD,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,mBAAmB,EAAE,OAAO,CAAC;CAC9B,KAAG,OAKkB,CAAC;AAEvB;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,8CAI/B;IACD,eAAe,EAAE,OAAO,CAAC;IACzB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B,KAAG,OAIoB,CAAC;AAqLzB,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAAC,OAAO,EAAE,OAAO,CA4DjE,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9c29ecc8-0ed1-5a6e-a707-7e90ddd1a338")}catch(e){}}();
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.triggerTestRunCommand = void 0;
|
|
5
|
+
exports.triggerTestRunCommand = exports.shouldWarnOfHeadDrift = exports.shouldSkipAsNothingToTest = void 0;
|
|
6
6
|
const client_1 = require("@alwaysmeticulous/client");
|
|
7
7
|
const common_1 = require("@alwaysmeticulous/common");
|
|
8
8
|
const remote_replay_launcher_1 = require("@alwaysmeticulous/remote-replay-launcher");
|
|
@@ -13,7 +13,33 @@ const out_of_date_client_error_1 = require("../../utils/out-of-date-client-error
|
|
|
13
13
|
const resolve_project_identifier_1 = require("../../utils/resolve-project-identifier");
|
|
14
14
|
const resolve_test_run_from_commit_1 = require("../../utils/resolve-test-run-from-commit");
|
|
15
15
|
const build_git_options_1 = require("./build-git-options");
|
|
16
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Whether the "nothing to test" short-circuit should fire: base equals head
|
|
18
|
+
* with no diff to attach. Requires `commitSha` (--commitSha mode, explicit or
|
|
19
|
+
* inferred): in --deploymentId mode `effectiveHead` is only a local proxy for
|
|
20
|
+
* the deployment's actual commit, so an empty local diff doesn't prove
|
|
21
|
+
* there's nothing to test there (the backend may already have a diff
|
|
22
|
+
* uploaded separately for that deployment and base). Also skipped for a
|
|
23
|
+
* pinned --sessionIds re-run, which deliberately proceeds head-only.
|
|
24
|
+
*/
|
|
25
|
+
const shouldSkipAsNothingToTest = ({ commitSha, effectiveHead, baseSha, gitDiffOutput, hasPinnedSessionIds, }) => Boolean(commitSha) &&
|
|
26
|
+
Boolean(effectiveHead) &&
|
|
27
|
+
baseSha === effectiveHead &&
|
|
28
|
+
!gitDiffOutput &&
|
|
29
|
+
!hasPinnedSessionIds;
|
|
30
|
+
exports.shouldSkipAsNothingToTest = shouldSkipAsNothingToTest;
|
|
31
|
+
/**
|
|
32
|
+
* Whether to warn that the diff computed pre-trigger may not match what the
|
|
33
|
+
* deployment actually executed. Skipped for ephemeral heads (a `git stash
|
|
34
|
+
* create` SHA differs between invocations for identical content, so the
|
|
35
|
+
* comparison would be a false positive) or when either commit is unknown.
|
|
36
|
+
*/
|
|
37
|
+
const shouldWarnOfHeadDrift = ({ headIsEphemeral, head, headCommitSha, }) => !headIsEphemeral &&
|
|
38
|
+
Boolean(head) &&
|
|
39
|
+
Boolean(headCommitSha) &&
|
|
40
|
+
head !== headCommitSha;
|
|
41
|
+
exports.shouldWarnOfHeadDrift = shouldWarnOfHeadDrift;
|
|
42
|
+
const handler = async ({ apiToken, deploymentId, commitSha: commitSha_, baseSha: baseSha_, gitDiffOutput: gitDiffOutput_, sessionIds: sessionIds_, dontWaitForTestRunToComplete, json, dryRun, }) => {
|
|
17
43
|
if (deploymentId && commitSha_) {
|
|
18
44
|
throw new cli_user_error_1.CliUserError("--deploymentId and --commitSha are mutually exclusive. Pass --deploymentId for a build from 'agent upload-build', " +
|
|
19
45
|
"or --commitSha to find an existing deployment already uploaded for that commit.");
|
|
@@ -22,7 +48,7 @@ const handler = async ({ apiToken, deploymentId, commitSha: commitSha_, baseSha:
|
|
|
22
48
|
// assumption a deployment was already uploaded for it elsewhere (e.g. by CI).
|
|
23
49
|
let commitSha = commitSha_;
|
|
24
50
|
if (!deploymentId && !commitSha) {
|
|
25
|
-
commitSha = await (0, build_git_options_1.resolveHeadCommitShaForLookup)(
|
|
51
|
+
commitSha = await (0, build_git_options_1.resolveHeadCommitShaForLookup)();
|
|
26
52
|
}
|
|
27
53
|
// Session IDs never contain commas (they are `<ISO timestamp>_<nanoid>` with
|
|
28
54
|
// optional `_p`/`_sl`/`_mut` suffixes), so a comma split is unambiguous.
|
|
@@ -44,34 +70,35 @@ const handler = async ({ apiToken, deploymentId, commitSha: commitSha_, baseSha:
|
|
|
44
70
|
];
|
|
45
71
|
throw new cli_user_error_1.CliUserError(`--sessionIds contains duplicate session ID(s): ${duplicates.join(", ")}`);
|
|
46
72
|
}
|
|
73
|
+
// Every custom trigger gets a git diff (used by Relevant Session Execution),
|
|
74
|
+
// computed against `commitSha` when we have one (--commitSha mode, explicit
|
|
75
|
+
// or inferred above) or freshly resolved from local HEAD otherwise
|
|
76
|
+
// (--deploymentId mode).
|
|
47
77
|
const { baseSha, gitDiffOutput, head, headIsEphemeral } = await (0, build_git_options_1.resolveComparisonOptions)({
|
|
48
78
|
baseSha: baseSha_,
|
|
49
79
|
gitDiffOutput: gitDiffOutput_,
|
|
50
|
-
|
|
80
|
+
commitSha,
|
|
51
81
|
});
|
|
52
|
-
// A git diff must be uploaded to a specific deployment before the trigger
|
|
53
|
-
// call, so --commitSha (resolved to a deployment server-side, at trigger
|
|
54
|
-
// time) can't be combined with one — whether passed explicitly via
|
|
55
|
-
// --gitDiffOutput or inferred from --repoDirectory / the local repo.
|
|
56
|
-
if (gitDiffOutput && !deploymentId) {
|
|
57
|
-
throw new cli_user_error_1.CliUserError("A git diff requires an explicit --deploymentId (from 'agent upload-build'); it cannot be combined with --commitSha. " +
|
|
58
|
-
"Pass --baseSha instead of --repoDirectory (or without any repo-inference flags) to avoid inferring a diff.");
|
|
59
|
-
}
|
|
60
82
|
// A test run is only useful with a base to compare against, and the backend
|
|
61
|
-
// refuses to create a baseless run, so require a base up front
|
|
83
|
+
// refuses to create a baseless run, so require a base up front — even
|
|
84
|
+
// though it may end up unused for comparison below (a same-SHA re-run with
|
|
85
|
+
// pinned --sessionIds runs head-only with no base).
|
|
62
86
|
if (!baseSha) {
|
|
63
|
-
throw new cli_user_error_1.CliUserError("A base is required: pass --baseSha, or
|
|
87
|
+
throw new cli_user_error_1.CliUserError("A base is required: pass --baseSha, or run from a local git checkout so it can be inferred from the merge-base with the origin default branch.");
|
|
64
88
|
}
|
|
65
89
|
// When the head is the base itself and there's no diff (e.g. running on the
|
|
66
90
|
// default branch with no new commits), there is nothing to test — report it
|
|
67
|
-
// clearly instead of letting the backend reject with a 422
|
|
68
|
-
//
|
|
69
|
-
// is an explicit alternative source of the head commit that lets us catch
|
|
70
|
-
// this early too, without a network round trip to resolve the deployment
|
|
71
|
-
// first (gitDiffOutput is already guaranteed absent when commitSha is used,
|
|
72
|
-
// per the check above).
|
|
91
|
+
// clearly instead of letting the backend reject with a 422 (see
|
|
92
|
+
// shouldSkipAsNothingToTest for the exemptions).
|
|
73
93
|
const effectiveHead = head ?? commitSha;
|
|
74
|
-
|
|
94
|
+
const hasPinnedSessionIds = sessionIds != null && sessionIds.length > 0;
|
|
95
|
+
if ((0, exports.shouldSkipAsNothingToTest)({
|
|
96
|
+
commitSha,
|
|
97
|
+
effectiveHead,
|
|
98
|
+
baseSha,
|
|
99
|
+
gitDiffOutput,
|
|
100
|
+
hasPinnedSessionIds,
|
|
101
|
+
})) {
|
|
75
102
|
(0, common_1.logNotice)("Base SHA equals head SHA and there are no changes to test — nothing to do.");
|
|
76
103
|
// Keep stdout machine-readable: emit the empty result so `--json` callers
|
|
77
104
|
// that JSON.parse(stdout) don't crash on an empty short-circuit.
|
|
@@ -85,7 +112,7 @@ const handler = async ({ apiToken, deploymentId, commitSha: commitSha_, baseSha:
|
|
|
85
112
|
: `the deployment for commit ${commitSha}`;
|
|
86
113
|
if (dryRun) {
|
|
87
114
|
(0, common_1.logNotice)(`Dry run: would trigger a test run for ${deploymentDescriptor} (base: ${baseSha})` +
|
|
88
|
-
(
|
|
115
|
+
(hasPinnedSessionIds
|
|
89
116
|
? ` for ${sessionIds.length} explicitly-specified session(s)`
|
|
90
117
|
: ""));
|
|
91
118
|
if (json) {
|
|
@@ -106,17 +133,16 @@ const handler = async ({ apiToken, deploymentId, commitSha: commitSha_, baseSha:
|
|
|
106
133
|
...(deploymentId ? { deploymentId } : { commitSha }),
|
|
107
134
|
baseSha,
|
|
108
135
|
...(gitDiffOutput ? { gitDiffOutput } : {}),
|
|
109
|
-
...(
|
|
136
|
+
...(hasPinnedSessionIds ? { sessionIds } : {}),
|
|
110
137
|
...projectIdentifier,
|
|
111
138
|
});
|
|
112
139
|
testRunId = testRun?.id ?? null;
|
|
113
140
|
// The diff was computed against `head`, but the run executes the
|
|
114
141
|
// deployment's commit. If they differ (e.g. the working tree changed
|
|
115
142
|
// between 'upload-build' and 'trigger-test-run'), the diff may not match
|
|
116
|
-
// the build that actually ran
|
|
117
|
-
// ephemeral
|
|
118
|
-
|
|
119
|
-
if (!headIsEphemeral && head && headCommitSha && head !== headCommitSha) {
|
|
143
|
+
// the build that actually ran (see shouldWarnOfHeadDrift for the
|
|
144
|
+
// ephemeral-head exemption).
|
|
145
|
+
if ((0, exports.shouldWarnOfHeadDrift)({ headIsEphemeral, head, headCommitSha })) {
|
|
120
146
|
(0, common_1.logNotice)(`Warning: git diff was computed against ${head}, but the deployment runs ${headCommitSha}. ` +
|
|
121
147
|
`The diff may not match the build under test — re-run 'agent upload-build' for the current tree if this is unexpected.`);
|
|
122
148
|
}
|
|
@@ -165,26 +191,25 @@ exports.triggerTestRunCommand = {
|
|
|
165
191
|
string: true,
|
|
166
192
|
description: "Alternative to --deploymentId: finds the most recent deployment already uploaded for this commit in the project " +
|
|
167
193
|
"(e.g. by an earlier CI run). Useful for re-running against a commit that has already gone through Meticulous, " +
|
|
168
|
-
"e.g. to test the coverage impact of --sessionIds.
|
|
194
|
+
"e.g. to test the coverage impact of --sessionIds. A git diff against --baseSha is computed for this commit " +
|
|
195
|
+
"(git history must have it locally) unless you pass --gitDiffOutput yourself. " +
|
|
169
196
|
"When both this and --deploymentId are omitted, defaults to the local repo's HEAD commit (requires a clean working tree).",
|
|
170
197
|
},
|
|
171
198
|
baseSha: {
|
|
172
199
|
string: true,
|
|
173
|
-
description: "The base commit SHA to compare against.
|
|
174
|
-
"
|
|
200
|
+
description: "The base commit SHA to compare against. If omitted, it's inferred from the local repo (the current directory) as the merge-base " +
|
|
201
|
+
"with the origin default branch. Every trigger gets a git diff against this base (used by Relevant Session Execution) — " +
|
|
202
|
+
"against --commitSha when using it, or the local repo's head commit with --deploymentId — unless you pass --gitDiffOutput yourself.",
|
|
175
203
|
},
|
|
176
204
|
gitDiffOutput: {
|
|
177
205
|
string: true,
|
|
178
|
-
description: "Raw git diff output between the base and the deployment's commit
|
|
179
|
-
},
|
|
180
|
-
repoDirectory: {
|
|
181
|
-
string: true,
|
|
182
|
-
description: "Path to a git repository. Infers --baseSha (merge-base with the origin default branch) and --gitDiffOutput (base..head). Cannot be combined with --baseSha or --gitDiffOutput. Defaults to the current directory when no comparison inputs are given.",
|
|
206
|
+
description: "Raw git diff output between the base and the head commit (the deployment's commit, or --commitSha). Requires --baseSha.",
|
|
183
207
|
},
|
|
184
208
|
sessionIds: {
|
|
185
209
|
string: true,
|
|
186
|
-
description: "Comma-separated list of session IDs to replay
|
|
187
|
-
"When omitted, the project's auto-selected ('golden set') sessions are used."
|
|
210
|
+
description: "Comma-separated list of session IDs to replay, instead of the project's auto-selected sessions. Replayed on the base too, unless the run ends up head-only (see below). " +
|
|
211
|
+
"When omitted, the project's auto-selected ('golden set') sessions are used. " +
|
|
212
|
+
"When non-empty and --baseSha equals the head commit with no diff, the run proceeds head-only (no base run or comparison) instead of failing with 'nothing to do'.",
|
|
188
213
|
},
|
|
189
214
|
dontWaitForTestRunToComplete: {
|
|
190
215
|
boolean: true,
|
|
@@ -206,4 +231,4 @@ exports.triggerTestRunCommand = {
|
|
|
206
231
|
handler: (0, sentry_utils_1.wrapHandler)(handler),
|
|
207
232
|
};
|
|
208
233
|
//# sourceMappingURL=trigger-test-run.command.js.map
|
|
209
|
-
//# debugId=
|
|
234
|
+
//# debugId=9c29ecc8-0ed1-5a6e-a707-7e90ddd1a338
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger-test-run.command.js","sources":["../../../src/commands/agent/trigger-test-run.command.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAAA,qDAGkC;AAClC,qDAAkE;AAClE,qFAA0E;AAE1E,uEAA6D;AAC7D,mEAA+D;AAC/D,+DAA0D;AAC1D,mFAG8C;AAC9C,uFAAkF;AAClF,2FAAkF;AAClF,2DAG6B;
|
|
1
|
+
{"version":3,"file":"trigger-test-run.command.js","sources":["../../../src/commands/agent/trigger-test-run.command.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAAA,qDAGkC;AAClC,qDAAkE;AAClE,qFAA0E;AAE1E,uEAA6D;AAC7D,mEAA+D;AAC/D,+DAA0D;AAC1D,mFAG8C;AAC9C,uFAAkF;AAClF,2FAAkF;AAClF,2DAG6B;AAc7B;;;;;;;;GAQG;AACI,MAAM,yBAAyB,GAAG,CAAC,EACxC,SAAS,EACT,aAAa,EACb,OAAO,EACP,aAAa,EACb,mBAAmB,GAOpB,EAAW,EAAE,CACZ,OAAO,CAAC,SAAS,CAAC;IAClB,OAAO,CAAC,aAAa,CAAC;IACtB,OAAO,KAAK,aAAa;IACzB,CAAC,aAAa;IACd,CAAC,mBAAm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;YACN,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,KAAK;YACd,WAAW,EACT,+DAA+D;SAClE;KACF;IACD,OAAO,EAAE,IAAA,0BAAW,EAAC,OAAO,CAAC;CAC9B,CAAC","debugId":"9c29ecc8-0ed1-5a6e-a707-7e90ddd1a338"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trigger-test-run.command.spec.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/trigger-test-run.command.spec.ts"],"names":[],"mappings":""}
|