@marsson/ciutils 0.0.4
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/README.md +140 -0
- package/lib/commands/reporton/deployment.d.ts +26 -0
- package/lib/commands/reporton/deployment.js +151 -0
- package/lib/commands/reporton/deployment.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -0
- package/messages/reporton.deployment.md +31 -0
- package/oclif.lock +9519 -0
- package/oclif.manifest.json +69 -0
- package/package.json +189 -0
package/README.md
ADDED
@@ -0,0 +1,140 @@
|
|
1
|
+
# ciutils
|
2
|
+
|
3
|
+
[](https://www.npmjs.com/package/ciutils) [](https://npmjs.org/package/ciutils) [](https://raw.githubusercontent.com/salesforcecli/ciutils/main/LICENSE.txt)
|
4
|
+
|
5
|
+
## Using the template
|
6
|
+
|
7
|
+
This repository provides a template for creating a plugin for the Salesforce CLI. To convert this template to a working plugin:
|
8
|
+
|
9
|
+
1. Please get in touch with the Platform CLI team. We want to help you develop your plugin.
|
10
|
+
2. Generate your plugin:
|
11
|
+
|
12
|
+
```
|
13
|
+
sf plugins install dev
|
14
|
+
sf dev generate plugin
|
15
|
+
|
16
|
+
git init -b main
|
17
|
+
git add . && git commit -m "chore: initial commit"
|
18
|
+
```
|
19
|
+
|
20
|
+
3. Create your plugin's repo in the salesforcecli github org
|
21
|
+
4. When you're ready, replace the contents of this README with the information you want.
|
22
|
+
|
23
|
+
## Learn about `sf` plugins
|
24
|
+
|
25
|
+
Salesforce CLI plugins are based on the [oclif plugin framework](<(https://oclif.io/docs/introduction.html)>). Read the [plugin developer guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_plugins.meta/sfdx_cli_plugins/cli_plugins_architecture_sf_cli.htm) to learn about Salesforce CLI plugin development.
|
26
|
+
|
27
|
+
This repository contains a lot of additional scripts and tools to help with general Salesforce node development and enforce coding standards. You should familiarize yourself with some of the [node developer packages](#tooling) used by Salesforce.
|
28
|
+
|
29
|
+
Additionally, there are some additional tests that the Salesforce CLI will enforce if this plugin is ever bundled with the CLI. These test are included by default under the `posttest` script and it is required to keep these tests active in your plugin if you plan to have it bundled.
|
30
|
+
|
31
|
+
### Tooling
|
32
|
+
|
33
|
+
- [@salesforce/core](https://github.com/forcedotcom/sfdx-core)
|
34
|
+
- [@salesforce/kit](https://github.com/forcedotcom/kit)
|
35
|
+
- [@salesforce/sf-plugins-core](https://github.com/salesforcecli/sf-plugins-core)
|
36
|
+
- [@salesforce/ts-types](https://github.com/forcedotcom/ts-types)
|
37
|
+
- [@salesforce/ts-sinon](https://github.com/forcedotcom/ts-sinon)
|
38
|
+
- [@salesforce/dev-config](https://github.com/forcedotcom/dev-config)
|
39
|
+
- [@salesforce/dev-scripts](https://github.com/forcedotcom/dev-scripts)
|
40
|
+
|
41
|
+
### Hooks
|
42
|
+
|
43
|
+
For cross clouds commands, e.g. `sf env list`, we utilize [oclif hooks](https://oclif.io/docs/hooks) to get the relevant information from installed plugins.
|
44
|
+
|
45
|
+
This plugin includes sample hooks in the [src/hooks directory](src/hooks). You'll just need to add the appropriate logic. You can also delete any of the hooks if they aren't required for your plugin.
|
46
|
+
|
47
|
+
# Everything past here is only a suggestion as to what should be in your specific plugin's description
|
48
|
+
|
49
|
+
This plugin is bundled with the [Salesforce CLI](https://developer.salesforce.com/tools/sfdxcli). For more information on the CLI, read the [getting started guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_intro.htm).
|
50
|
+
|
51
|
+
We always recommend using the latest version of these commands bundled with the CLI, however, you can install a specific version or tag if needed.
|
52
|
+
|
53
|
+
## Install
|
54
|
+
|
55
|
+
```bash
|
56
|
+
sf plugins install ciutils@x.y.z
|
57
|
+
```
|
58
|
+
|
59
|
+
## Issues
|
60
|
+
|
61
|
+
Please report any issues at https://github.com/forcedotcom/cli/issues
|
62
|
+
|
63
|
+
## Contributing
|
64
|
+
|
65
|
+
1. Please read our [Code of Conduct](CODE_OF_CONDUCT.md)
|
66
|
+
2. Create a new issue before starting your project so that we can keep track of
|
67
|
+
what you are trying to add/fix. That way, we can also offer suggestions or
|
68
|
+
let you know if there is already an effort in progress.
|
69
|
+
3. Fork this repository.
|
70
|
+
4. [Build the plugin locally](#build)
|
71
|
+
5. Create a _topic_ branch in your fork. Note, this step is recommended but technically not required if contributing using a fork.
|
72
|
+
6. Edit the code in your fork.
|
73
|
+
7. Write appropriate tests for your changes. Try to achieve at least 95% code coverage on any new code. No pull request will be accepted without unit tests.
|
74
|
+
8. Sign CLA (see [CLA](#cla) below).
|
75
|
+
9. Send us a pull request when you are done. We'll review your code, suggest any needed changes, and merge it in.
|
76
|
+
|
77
|
+
### CLA
|
78
|
+
|
79
|
+
External contributors will be required to sign a Contributor's License
|
80
|
+
Agreement. You can do so by going to https://cla.salesforce.com/sign-cla.
|
81
|
+
|
82
|
+
### Build
|
83
|
+
|
84
|
+
To build the plugin locally, make sure to have yarn installed and run the following commands:
|
85
|
+
|
86
|
+
```bash
|
87
|
+
# Clone the repository
|
88
|
+
git clone git@github.com:salesforcecli/ciutils
|
89
|
+
|
90
|
+
# Install the dependencies and compile
|
91
|
+
yarn && yarn build
|
92
|
+
```
|
93
|
+
|
94
|
+
To use your plugin, run using the local `./bin/dev` or `./bin/dev.cmd` file.
|
95
|
+
|
96
|
+
```bash
|
97
|
+
# Run using local run file.
|
98
|
+
./bin/dev hello world
|
99
|
+
```
|
100
|
+
|
101
|
+
There should be no differences when running via the Salesforce CLI or using the local run file. However, it can be useful to link the plugin to do some additional testing or run your commands from anywhere on your machine.
|
102
|
+
|
103
|
+
```bash
|
104
|
+
# Link your plugin to the sf cli
|
105
|
+
sf plugins link .
|
106
|
+
# To verify
|
107
|
+
sf plugins
|
108
|
+
```
|
109
|
+
|
110
|
+
## Commands
|
111
|
+
|
112
|
+
<!-- commands -->
|
113
|
+
* [`sf reporton deployment`](#sf-reporton-deployment)
|
114
|
+
|
115
|
+
## `sf reporton deployment`
|
116
|
+
|
117
|
+
Summary of a command.
|
118
|
+
|
119
|
+
```
|
120
|
+
USAGE
|
121
|
+
$ sf reporton deployment -o <value> -d <value> [--json] [-a]
|
122
|
+
|
123
|
+
FLAGS
|
124
|
+
-a, --awaitcompletion If the aplication should respond every 30 sec until the deployment is complete.
|
125
|
+
-d, --deploymentid=<value> (required) The id of the deployment that we want to report on.
|
126
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
127
|
+
configuration variable is already set.
|
128
|
+
|
129
|
+
GLOBAL FLAGS
|
130
|
+
--json Format output as json.
|
131
|
+
|
132
|
+
DESCRIPTION
|
133
|
+
Summary of a command.
|
134
|
+
|
135
|
+
More information about a command. Don't repeat the summary.
|
136
|
+
|
137
|
+
EXAMPLES
|
138
|
+
$ sf reporton deployment
|
139
|
+
```
|
140
|
+
<!-- commandsstop -->
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { SfCommand } from '@salesforce/sf-plugins-core';
|
2
|
+
import { DeployResult } from 'jsforce/api/metadata';
|
3
|
+
export type ReportonDeploymentResult = DeployResult;
|
4
|
+
export default class ReportonDeployment extends SfCommand<ReportonDeploymentResult> {
|
5
|
+
static readonly summary: string;
|
6
|
+
static readonly description: string;
|
7
|
+
static readonly examples: string[];
|
8
|
+
static readonly flags: {
|
9
|
+
'target-org': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
10
|
+
deploymentid: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
11
|
+
awaitcompletion: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
12
|
+
};
|
13
|
+
private connection;
|
14
|
+
private deploymentStatus;
|
15
|
+
private progressBar;
|
16
|
+
private isRunningTest;
|
17
|
+
private isComplete;
|
18
|
+
run(): Promise<ReportonDeploymentResult>;
|
19
|
+
private awaitDeploymentCompletion;
|
20
|
+
private updateDeployResult;
|
21
|
+
private updateProgressBars;
|
22
|
+
private displayHeader;
|
23
|
+
private printDeploymentReport;
|
24
|
+
private printErrors;
|
25
|
+
private printSuccess;
|
26
|
+
}
|
@@ -0,0 +1,151 @@
|
|
1
|
+
import { SfCommand, Flags, Progress } from '@salesforce/sf-plugins-core';
|
2
|
+
import { Messages } from '@salesforce/core';
|
3
|
+
import Table from 'cli-table3';
|
4
|
+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
5
|
+
const messages = Messages.loadMessages('@marsson/ciutils', 'reporton.deployment');
|
6
|
+
export default class ReportonDeployment extends SfCommand {
|
7
|
+
static summary = messages.getMessage('summary');
|
8
|
+
static description = messages.getMessage('description');
|
9
|
+
static examples = messages.getMessages('examples');
|
10
|
+
static flags = {
|
11
|
+
'target-org': Flags.requiredOrg(),
|
12
|
+
deploymentid: Flags.salesforceId({
|
13
|
+
summary: messages.getMessage('flags.deploymentid.summary'),
|
14
|
+
char: 'd',
|
15
|
+
required: true,
|
16
|
+
length: 'both',
|
17
|
+
startsWith: '0Af',
|
18
|
+
}),
|
19
|
+
awaitcompletion: Flags.boolean({
|
20
|
+
summary: messages.getMessage('flags.awaitcompletion.summary'),
|
21
|
+
char: 'a',
|
22
|
+
}),
|
23
|
+
};
|
24
|
+
connection;
|
25
|
+
deploymentStatus;
|
26
|
+
progressBar = new Progress(true);
|
27
|
+
isRunningTest = false;
|
28
|
+
isComplete = false;
|
29
|
+
async run() {
|
30
|
+
const { flags } = await this.parse(ReportonDeployment);
|
31
|
+
const deploymentId = flags.deploymentid;
|
32
|
+
this.connection = flags['target-org'].getConnection();
|
33
|
+
this.displayHeader(deploymentId);
|
34
|
+
await this.updateDeployResult(deploymentId);
|
35
|
+
// Correctly initializing the progress bars with the total expected count
|
36
|
+
this.progressBar.start(this.deploymentStatus.numberComponentsTotal);
|
37
|
+
// Updating the progress bars with the current progress
|
38
|
+
if (flags.awaitcompletion) {
|
39
|
+
await this.awaitDeploymentCompletion(deploymentId);
|
40
|
+
}
|
41
|
+
else {
|
42
|
+
await this.updateDeployResult(deploymentId);
|
43
|
+
this.updateProgressBars();
|
44
|
+
}
|
45
|
+
this.printDeploymentReport();
|
46
|
+
return this.deploymentStatus;
|
47
|
+
}
|
48
|
+
// Placeholder: Initialize your progress bar here
|
49
|
+
/* eslint-disable no-await-in-loop */
|
50
|
+
async awaitDeploymentCompletion(deploymentId) {
|
51
|
+
do {
|
52
|
+
await this.updateDeployResult(deploymentId);
|
53
|
+
this.updateProgressBars();
|
54
|
+
if (!this.isComplete) {
|
55
|
+
// Only wait if the deployment is not complete
|
56
|
+
await new Promise((resolve) => setTimeout(resolve, 5000)); // Wait for 5 seconds
|
57
|
+
}
|
58
|
+
} while (!this.isComplete);
|
59
|
+
// Ensure progress bars are properly concluded outside the loop
|
60
|
+
this.progressBar.finish();
|
61
|
+
}
|
62
|
+
/* eslint-enable no-await-in-loop */
|
63
|
+
async updateDeployResult(deploymentid) {
|
64
|
+
this.deploymentStatus = await this.connection.metadata.checkDeployStatus(deploymentid, true);
|
65
|
+
this.isComplete = this.deploymentStatus.status === 'Succeeded' || this.deploymentStatus.status === 'Failed';
|
66
|
+
}
|
67
|
+
updateProgressBars() {
|
68
|
+
// Ensure progress bars are updated only if deploymentStatus has been fetched
|
69
|
+
if (this.deploymentStatus.numberComponentsDeployed <= this.deploymentStatus.numberComponentsTotal &&
|
70
|
+
this.isRunningTest === false) {
|
71
|
+
this.progressBar.update(this.deploymentStatus.numberComponentsDeployed);
|
72
|
+
if (this.deploymentStatus.numberComponentsDeployed === this.deploymentStatus.numberComponentsDeployed) {
|
73
|
+
this.isRunningTest = true;
|
74
|
+
this.progressBar.finish();
|
75
|
+
this.progressBar = new Progress(true);
|
76
|
+
this.progressBar.start(this.deploymentStatus.numberTestsTotal, {}, {
|
77
|
+
title: 'PROGRESS',
|
78
|
+
format: '%s | {bar} | {value}/{total} Test Methods',
|
79
|
+
barCompleteChar: '\u2588',
|
80
|
+
barIncompleteChar: '\u2591',
|
81
|
+
linewrap: true,
|
82
|
+
});
|
83
|
+
this.progressBar.update(this.deploymentStatus.numberTestsCompleted);
|
84
|
+
if (this.deploymentStatus.numberTestsCompleted === this.deploymentStatus.numberTestsTotal) {
|
85
|
+
this.progressBar.finish();
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
else {
|
90
|
+
this.progressBar.update(this.deploymentStatus.numberTestsCompleted);
|
91
|
+
if (this.deploymentStatus.numberTestsCompleted === this.deploymentStatus.numberTestsTotal) {
|
92
|
+
this.progressBar.finish();
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
// Example helper function that needs to use UX methods
|
97
|
+
displayHeader(header) {
|
98
|
+
this.log('*** Analysing ***');
|
99
|
+
this.log(`\n\nJob ID | ${header}\n\n`);
|
100
|
+
}
|
101
|
+
printDeploymentReport() {
|
102
|
+
const result = this.deploymentStatus.status;
|
103
|
+
if (result === 'Failed') {
|
104
|
+
this.printErrors();
|
105
|
+
process.exit(1);
|
106
|
+
}
|
107
|
+
this.printSuccess();
|
108
|
+
}
|
109
|
+
printErrors() {
|
110
|
+
const result = this.deploymentStatus;
|
111
|
+
if (result.details.componentFailures.length > 0) {
|
112
|
+
this.log('\n\n\n==========================================================================================================');
|
113
|
+
this.log(`FAILURE: Showing ${result.details.componentFailures.length} Component Deployment Errors`);
|
114
|
+
this.log('==========================================================================================================');
|
115
|
+
const t1 = new Table({
|
116
|
+
head: ['Api Name', 'Type', 'Line', 'Column', 'Error Message'],
|
117
|
+
colWidths: [60, 20, 6, 8, 100],
|
118
|
+
wordWrap: true,
|
119
|
+
});
|
120
|
+
const errorMap = result.details.componentFailures.map((compError) => [
|
121
|
+
compError.fileName,
|
122
|
+
compError.componentType,
|
123
|
+
compError.lineNumber ?? 'N/A',
|
124
|
+
compError.columnNumber ?? 'N/A',
|
125
|
+
compError.problem,
|
126
|
+
]);
|
127
|
+
t1.push(...errorMap);
|
128
|
+
this.log(t1.toString());
|
129
|
+
}
|
130
|
+
if (result.details.runTestResult?.failures && result.details.runTestResult?.failures.length > 0) {
|
131
|
+
this.log('\n\n\n==========================================================================================================');
|
132
|
+
this.log(`FAILURE: Showing ${result.details.runTestResult.failures.length} Test Execution Errors`);
|
133
|
+
this.log('==========================================================================================================');
|
134
|
+
const testErrors = result.details.runTestResult.failures;
|
135
|
+
const t1 = new Table({
|
136
|
+
head: ['Class Name', 'Method Name', 'Error Message'],
|
137
|
+
colWidths: [40, 40, 120],
|
138
|
+
wordWrap: true,
|
139
|
+
});
|
140
|
+
const errorMap = testErrors.map((testError) => [testError.name, testError.methodName, testError.message]);
|
141
|
+
t1.push(...errorMap);
|
142
|
+
this.log(t1.toString());
|
143
|
+
}
|
144
|
+
}
|
145
|
+
printSuccess() {
|
146
|
+
this.log('\n\n==========================================================================================================');
|
147
|
+
this.log('SUCCESS: The deployment completed awesomely!');
|
148
|
+
this.log('==========================================================================================================');
|
149
|
+
}
|
150
|
+
}
|
151
|
+
//# sourceMappingURL=deployment.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"deployment.js","sourceRoot":"","sources":["../../../src/commands/reporton/deployment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAc,MAAM,kBAAkB,CAAC;AAExD,OAAO,KAAK,MAAM,YAAY,CAAC;AAE/B,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,CAAC;AAGlF,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,SAAmC;IAC1E,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CA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AAC,CAAC;QACzD,IAAI,CAAC,GAAG,CACN,4GAA4G,CAC7G,CAAC;IACJ,CAAC"}
|
package/lib/index.d.ts
ADDED
package/lib/index.js
ADDED
package/lib/index.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAe,EAAE,CAAC"}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# summary
|
2
|
+
|
3
|
+
Summary of a command.
|
4
|
+
|
5
|
+
# description
|
6
|
+
|
7
|
+
More information about a command. Don't repeat the summary.
|
8
|
+
|
9
|
+
# flags.name.summary
|
10
|
+
|
11
|
+
Description of a flag.
|
12
|
+
|
13
|
+
# flags.name.description
|
14
|
+
|
15
|
+
More information about a flag. Don't repeat the summary.
|
16
|
+
|
17
|
+
# examples
|
18
|
+
|
19
|
+
- <%= config.bin %> <%= command.id %>
|
20
|
+
|
21
|
+
# flags.target-org.summary
|
22
|
+
|
23
|
+
undefined
|
24
|
+
|
25
|
+
# flags.deploymentid.summary
|
26
|
+
|
27
|
+
The id of the deployment that we want to report on.
|
28
|
+
|
29
|
+
# flags.awaitcompletion.summary
|
30
|
+
|
31
|
+
If the aplication should respond every 30 sec until the deployment is complete.
|