@lage-run/reporters 0.3.1 → 0.3.2
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/CHANGELOG.json +16 -1
- package/CHANGELOG.md +10 -2
- package/lib/AdoReporter.js +4 -0
- package/package.json +1 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
"name": "@lage-run/reporters",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Mon, 30 Jan 2023 17:26:37 GMT",
|
|
6
|
+
"tag": "@lage-run/reporters_v0.3.2",
|
|
7
|
+
"version": "0.3.2",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "felescoto95@hotmail.com",
|
|
12
|
+
"package": "@lage-run/reporters",
|
|
13
|
+
"commit": "226876f3dcc8a16fdf323e714cc9a4cbed088303",
|
|
14
|
+
"comment": "Add task error summary to ADO reporter"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Fri, 27 Jan 2023 00:28:15 GMT",
|
|
6
21
|
"tag": "@lage-run/reporters_v0.3.1",
|
|
7
22
|
"version": "0.3.1",
|
|
8
23
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
# Change Log - @lage-run/reporters
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 30 Jan 2023 17:26:37 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.3.2
|
|
8
|
+
|
|
9
|
+
Mon, 30 Jan 2023 17:26:37 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Add task error summary to ADO reporter (felescoto95@hotmail.com)
|
|
14
|
+
|
|
7
15
|
## 0.3.1
|
|
8
16
|
|
|
9
|
-
Fri, 27 Jan 2023 00:28:
|
|
17
|
+
Fri, 27 Jan 2023 00:28:15 GMT
|
|
10
18
|
|
|
11
19
|
### Patches
|
|
12
20
|
|
package/lib/AdoReporter.js
CHANGED
|
@@ -151,11 +151,13 @@ class AdoReporter {
|
|
|
151
151
|
this.logStream.write("Nothing has been run.\n");
|
|
152
152
|
}
|
|
153
153
|
if (failed && failed.length > 0) {
|
|
154
|
+
let packagesMessage = `##vso[task.logissue type=error]Your build failed on the following packages => `;
|
|
154
155
|
for (const targetId of failed){
|
|
155
156
|
const target1 = targetRuns.get(targetId)?.target;
|
|
156
157
|
if (target1) {
|
|
157
158
|
const { packageName , task } = target1;
|
|
158
159
|
const taskLogs = this.logEntries.get(targetId);
|
|
160
|
+
packagesMessage += `[${packageName} ${task}], `;
|
|
159
161
|
this.logStream.write(`##[error] [${_chalk.default.magenta(packageName)} ${_chalk.default.cyan(task)}] ${_chalk.default.redBright("ERROR DETECTED")}\n`);
|
|
160
162
|
if (taskLogs) {
|
|
161
163
|
for (const entry of taskLogs){
|
|
@@ -165,6 +167,8 @@ class AdoReporter {
|
|
|
165
167
|
}
|
|
166
168
|
}
|
|
167
169
|
}
|
|
170
|
+
packagesMessage += "find the error logs above with the prefix '##[error]!'\n";
|
|
171
|
+
this.logStream.write(packagesMessage);
|
|
168
172
|
}
|
|
169
173
|
this.logStream.write(format(_logger.LogLevel.info, "", `Took a total of ${(0, _formatHrtime.formatDuration)((0, _formatHrtime.hrToSeconds)(duration))} to complete`));
|
|
170
174
|
}
|