Skip to content

Commit fcc83af

Browse files
committed
chore: remove success on CI output for deploy
1 parent fe0ec83 commit fcc83af

File tree

5 files changed

+3
-25
lines changed

5 files changed

+3
-25
lines changed

src/commands/project/delete/source.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@ export class Source extends SfCommand<DeleteSourceJson> {
248248
const stages = new DeployStages({
249249
title: 'Deleting Metadata',
250250
jsonEnabled: this.jsonEnabled(),
251-
verbose: this.flags['verbose'],
252251
});
253252

254253
const isRest = (await resolveApi()) === API['REST'];

src/commands/project/deploy/resume.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ export default class DeployMetadataResume extends SfCommand<DeployResultJson> {
134134
new DeployStages({
135135
title: 'Resuming Deploy',
136136
jsonEnabled: this.jsonEnabled(),
137-
verbose: flags.verbose,
138137
}).start(
139138
{
140139
deploy,

src/commands/project/deploy/start.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@ export default class DeployMetadata extends SfCommand<DeployResultJson> {
250250
this.stages = new DeployStages({
251251
title,
252252
jsonEnabled: this.jsonEnabled(),
253-
verbose: flags['verbose'],
254253
});
255254

256255
this.deployUrl = buildDeployUrl(flags['target-org'], deploy.id);

src/commands/project/deploy/validate.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ export default class DeployMetadataValidate extends SfCommand<DeployResultJson>
211211
new DeployStages({
212212
title: 'Validating Deployment',
213213
jsonEnabled: this.jsonEnabled(),
214-
verbose: flags.verbose,
215214
}).start(
216215
{
217216
deploy,

src/utils/deployStages.ts

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ import {
1515
} from '@salesforce/source-deploy-retrieve';
1616
import { SourceMemberPollingEvent } from '@salesforce/source-tracking';
1717
import terminalLink from 'terminal-link';
18-
import { ensureArray } from '@salesforce/kit';
1918
import ansis from 'ansis';
2019
import { testResultSort } from '../formatters/testResultsFormatter.js';
21-
import { check, getZipFileSize } from './output.js';
20+
import { getZipFileSize } from './output.js';
2221
import { isTruthy } from './types.js';
2322

2423
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
@@ -27,7 +26,6 @@ const mdTransferMessages = Messages.loadMessages('@salesforce/plugin-deploy-retr
2726
type Options = {
2827
title: string;
2928
jsonEnabled: boolean;
30-
verbose?: boolean;
3129
};
3230

3331
type Data = {
@@ -64,7 +62,7 @@ export class DeployStages {
6462
*/
6563
private printedApexTestFailures: Set<string>;
6664

67-
public constructor({ title, jsonEnabled, verbose }: Options) {
65+
public constructor({ title, jsonEnabled }: Options) {
6866
this.printedApexTestFailures = new Set();
6967
this.mso = new MultiStageOutput<Data>({
7068
title,
@@ -149,8 +147,7 @@ export class DeployStages {
149147
label: 'Successful',
150148
get: (data): string | undefined =>
151149
data?.mdapiDeploy?.numberTestsTotal && data?.mdapiDeploy?.numberTestsCompleted
152-
? formatProgress(data?.mdapiDeploy?.numberTestsCompleted, data?.mdapiDeploy?.numberTestsTotal) +
153-
(verbose && isCI() ? os.EOL + formatTestSuccesses(data) : '')
150+
? formatProgress(data?.mdapiDeploy?.numberTestsCompleted, data?.mdapiDeploy?.numberTestsTotal)
154151
: undefined,
155152
stage: 'Running Tests',
156153
type: 'dynamic-key-value',
@@ -287,21 +284,6 @@ export class DeployStages {
287284
}
288285
}
289286

290-
function formatTestSuccesses(data: Data): string {
291-
const successes = ensureArray(data.mdapiDeploy.details.runTestResult?.successes).sort(testResultSort);
292-
293-
let output = '';
294-
295-
if (successes.length > 0) {
296-
for (const test of successes) {
297-
const testName = ansis.underline(`${test.name}.${test.methodName}`);
298-
output += ` ${check} ${testName}${os.EOL}`;
299-
}
300-
}
301-
302-
return output;
303-
}
304-
305287
function formatTestFailures(failuresData: Failures[]): string {
306288
const failures = failuresData.sort(testResultSort);
307289

0 commit comments

Comments
 (0)