@lage-run/reporters 0.3.0 → 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 CHANGED
@@ -2,7 +2,37 @@
2
2
  "name": "@lage-run/reporters",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 18 Jan 2023 18:18:13 GMT",
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",
21
+ "tag": "@lage-run/reporters_v0.3.1",
22
+ "version": "0.3.1",
23
+ "comments": {
24
+ "patch": [
25
+ {
26
+ "author": "kchau@microsoft.com",
27
+ "package": "@lage-run/reporters",
28
+ "commit": "b0f0b5a7773a71c111799f3a3b0a48a7824b838b",
29
+ "comment": "fixing profiler so that it will load correctly in the tracing UI"
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ {
35
+ "date": "Wed, 18 Jan 2023 18:18:35 GMT",
6
36
  "tag": "@lage-run/reporters_v0.3.0",
7
37
  "version": "0.3.0",
8
38
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,28 @@
1
1
  # Change Log - @lage-run/reporters
2
2
 
3
- This log was last generated on Wed, 18 Jan 2023 18:18:13 GMT and should not be manually modified.
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
+
15
+ ## 0.3.1
16
+
17
+ Fri, 27 Jan 2023 00:28:15 GMT
18
+
19
+ ### Patches
20
+
21
+ - fixing profiler so that it will load correctly in the tracing UI (kchau@microsoft.com)
22
+
7
23
  ## 0.3.0
8
24
 
9
- Wed, 18 Jan 2023 18:18:13 GMT
25
+ Wed, 18 Jan 2023 18:18:35 GMT
10
26
 
11
27
  ### Minor changes
12
28
 
@@ -102,7 +102,7 @@ class AdoReporter {
102
102
  const { packageName: packageName1 , task: task1 } = target1;
103
103
  const normalizedArgs1 = this.options.grouped ? normalize(entry.msg) : normalize(getTaskLogPrefix(packageName1 ?? "<root>", task1), entry.msg);
104
104
  return this.logStream.write(format(entry.level, normalizedArgs1.prefix, colorFn("| " + normalizedArgs1.message)));
105
- } else {
105
+ } else if (entry?.msg.trim() !== "") {
106
106
  return this.logStream.write(format(entry.level, "", entry.msg));
107
107
  }
108
108
  }
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lage-run/reporters",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Log reporters for Lage",
5
5
  "repository": {
6
6
  "url": "https://github.com/microsoft/lage"