@lage-run/reporters 1.0.0 → 1.0.1
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 +82 -1
- package/CHANGELOG.md +11 -2
- package/lib/AdoReporter.js +11 -11
- package/lib/LogReporter.js +7 -7
- package/package.json +4 -4
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,88 @@
|
|
|
2
2
|
"name": "@lage-run/reporters",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Wed, 15 Feb 2023 16:46:37 GMT",
|
|
6
|
+
"tag": "@lage-run/reporters_v1.0.1",
|
|
7
|
+
"version": "1.0.1",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "beachball",
|
|
12
|
+
"package": "@lage-run/reporters",
|
|
13
|
+
"comment": "Bump @lage-run/scheduler-types to v0.3.1",
|
|
14
|
+
"commit": "d66a3b4811f36290a0499d9199948c84c8049728"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@lage-run/reporters",
|
|
19
|
+
"comment": "Bump @lage-run/target-graph to v0.6.2",
|
|
20
|
+
"commit": "d66a3b4811f36290a0499d9199948c84c8049728"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"date": "Tue, 14 Feb 2023 19:17:08 GMT",
|
|
27
|
+
"tag": "@lage-run/reporters_v1.0.0",
|
|
28
|
+
"version": "1.0.0",
|
|
29
|
+
"comments": {
|
|
30
|
+
"none": [
|
|
31
|
+
{
|
|
32
|
+
"author": "email not defined",
|
|
33
|
+
"package": "@lage-run/reporters",
|
|
34
|
+
"commit": "not available",
|
|
35
|
+
"comment": "Update devDependency @types/react to v18.0.28"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"date": "Tue, 14 Feb 2023 19:13:59 GMT",
|
|
42
|
+
"tag": "@lage-run/reporters_v1.0.0",
|
|
43
|
+
"version": "1.0.0",
|
|
44
|
+
"comments": {
|
|
45
|
+
"none": [
|
|
46
|
+
{
|
|
47
|
+
"author": "email not defined",
|
|
48
|
+
"package": "@lage-run/reporters",
|
|
49
|
+
"commit": "e2bc1c85bb002952e6492dfb6efb8657f7603fd6",
|
|
50
|
+
"comment": "Update devDependency @types/react to v18.0.28"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"date": "Wed, 01 Feb 2023 20:51:07 GMT",
|
|
57
|
+
"tag": "@lage-run/reporters_v1.0.0",
|
|
58
|
+
"version": "1.0.0",
|
|
59
|
+
"comments": {
|
|
60
|
+
"none": [
|
|
61
|
+
{
|
|
62
|
+
"author": "renovate@whitesourcesoftware.com",
|
|
63
|
+
"package": "@lage-run/reporters",
|
|
64
|
+
"commit": "not available",
|
|
65
|
+
"comment": "Update devDependency @types/react to v18.0.27"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"date": "Wed, 01 Feb 2023 20:45:02 GMT",
|
|
72
|
+
"tag": "@lage-run/reporters_v1.0.0",
|
|
73
|
+
"version": "1.0.0",
|
|
74
|
+
"comments": {
|
|
75
|
+
"none": [
|
|
76
|
+
{
|
|
77
|
+
"author": "renovate@whitesourcesoftware.com",
|
|
78
|
+
"package": "@lage-run/reporters",
|
|
79
|
+
"commit": "5ffef3f6aed35b9478dc6c3d3d886ebd287fed3e",
|
|
80
|
+
"comment": "Update devDependency @types/react to v18.0.27"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"date": "Tue, 31 Jan 2023 18:24:39 GMT",
|
|
6
87
|
"tag": "@lage-run/reporters_v1.0.0",
|
|
7
88
|
"version": "1.0.0",
|
|
8
89
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
# Change Log - @lage-run/reporters
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 15 Feb 2023 16:46:37 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 1.0.1
|
|
8
|
+
|
|
9
|
+
Wed, 15 Feb 2023 16:46:37 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Bump @lage-run/scheduler-types to v0.3.1
|
|
14
|
+
- Bump @lage-run/target-graph to v0.6.2
|
|
15
|
+
|
|
7
16
|
## 1.0.0
|
|
8
17
|
|
|
9
|
-
Tue, 31 Jan 2023 18:24:
|
|
18
|
+
Tue, 31 Jan 2023 18:24:39 GMT
|
|
10
19
|
|
|
11
20
|
### Major changes
|
|
12
21
|
|
package/lib/AdoReporter.js
CHANGED
|
@@ -46,11 +46,11 @@ function normalize(prefixOrMessage, message) {
|
|
|
46
46
|
message
|
|
47
47
|
};
|
|
48
48
|
} else {
|
|
49
|
-
const
|
|
50
|
-
const
|
|
49
|
+
const prefix = "";
|
|
50
|
+
const message = prefixOrMessage;
|
|
51
51
|
return {
|
|
52
|
-
prefix
|
|
53
|
-
message
|
|
52
|
+
prefix,
|
|
53
|
+
message
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -98,10 +98,10 @@ class AdoReporter {
|
|
|
98
98
|
return this.logStream.write(format(entry.level, normalizedArgs.prefix, colorFn(`${colors.warn("…")} aborted ${pkgTask}`)));
|
|
99
99
|
}
|
|
100
100
|
} else if (entry?.data?.target) {
|
|
101
|
-
const { target
|
|
102
|
-
const { packageName
|
|
103
|
-
const
|
|
104
|
-
return this.logStream.write(format(entry.level,
|
|
101
|
+
const { target } = data;
|
|
102
|
+
const { packageName , task } = target;
|
|
103
|
+
const normalizedArgs = this.options.grouped ? normalize(entry.msg) : normalize(getTaskLogPrefix(packageName ?? "<root>", task), entry.msg);
|
|
104
|
+
return this.logStream.write(format(entry.level, normalizedArgs.prefix, colorFn("| " + normalizedArgs.message)));
|
|
105
105
|
} else if (entry?.msg.trim() !== "") {
|
|
106
106
|
return this.logStream.write(format(entry.level, "", entry.msg));
|
|
107
107
|
}
|
|
@@ -153,9 +153,9 @@ class AdoReporter {
|
|
|
153
153
|
if (failed && failed.length > 0) {
|
|
154
154
|
let packagesMessage = `##vso[task.logissue type=error]Your build failed on the following packages => `;
|
|
155
155
|
for (const targetId of failed){
|
|
156
|
-
const
|
|
157
|
-
if (
|
|
158
|
-
const { packageName , task } =
|
|
156
|
+
const target = targetRuns.get(targetId)?.target;
|
|
157
|
+
if (target) {
|
|
158
|
+
const { packageName , task } = target;
|
|
159
159
|
const taskLogs = this.logEntries.get(targetId);
|
|
160
160
|
packagesMessage += `[${packageName} ${task}], `;
|
|
161
161
|
this.logStream.write(`##[error] [${_chalk.default.magenta(packageName)} ${_chalk.default.cyan(task)}] ${_chalk.default.redBright("ERROR DETECTED")}\n`);
|
package/lib/LogReporter.js
CHANGED
|
@@ -71,11 +71,11 @@ function normalize(prefixOrMessage, message) {
|
|
|
71
71
|
message
|
|
72
72
|
};
|
|
73
73
|
} else {
|
|
74
|
-
const
|
|
75
|
-
const
|
|
74
|
+
const prefix = "";
|
|
75
|
+
const message = prefixOrMessage;
|
|
76
76
|
return {
|
|
77
|
-
prefix
|
|
78
|
-
message
|
|
77
|
+
prefix,
|
|
78
|
+
message
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -206,9 +206,9 @@ class LogReporter {
|
|
|
206
206
|
this.hr();
|
|
207
207
|
if (failed && failed.length > 0) {
|
|
208
208
|
for (const targetId of failed){
|
|
209
|
-
const
|
|
210
|
-
if (
|
|
211
|
-
const { packageName , task } =
|
|
209
|
+
const target = targetRuns.get(targetId)?.target;
|
|
210
|
+
if (target) {
|
|
211
|
+
const { packageName , task } = target;
|
|
212
212
|
const failureLogs = this.logEntries.get(targetId);
|
|
213
213
|
this.print(`[${colors.pkg(packageName ?? "<root>")} ${colors.task(task)}] ${colors[_logger.LogLevel.error]("ERROR DETECTED")}`);
|
|
214
214
|
if (failureLogs) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lage-run/reporters",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Log reporters for Lage",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/microsoft/lage"
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@lage-run/logger": "^1.2.2",
|
|
19
|
-
"@lage-run/scheduler-types": "^0.3.
|
|
20
|
-
"@lage-run/target-graph": "^0.6.
|
|
19
|
+
"@lage-run/scheduler-types": "^0.3.1",
|
|
20
|
+
"@lage-run/target-graph": "^0.6.2",
|
|
21
21
|
"@lage-run/format-hrtime": "^0.1.4",
|
|
22
22
|
"chalk": "^4.0.0",
|
|
23
23
|
"ansi-regex": "^5.0.1",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"react": "^18.2.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@types/react": "18.0.
|
|
29
|
+
"@types/react": "18.0.28",
|
|
30
30
|
"memory-streams": "0.1.3"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|