datagrok-tools 4.13.45 → 4.13.46
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.md +7 -0
- package/bin/commands/test.js +20 -5
- package/bin/grok.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Datagrok-tools changelog
|
|
2
2
|
|
|
3
|
+
## 4.13.46 (2024-12-23)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* Improved error handling:
|
|
8
|
+
- Different exit codes for package errors / grok script errors
|
|
9
|
+
- Graceful error handling when testing non-existing packages
|
|
3
10
|
|
|
4
11
|
## 4.13.45 (2024-12-12)
|
|
5
12
|
|
package/bin/commands/test.js
CHANGED
|
@@ -102,6 +102,21 @@ function _runTesting() {
|
|
|
102
102
|
testsObj = _context3.sent;
|
|
103
103
|
console.log(testsObj);
|
|
104
104
|
parsed = (0, _orderFunctions.setAlphabeticalOrder)(testsObj, 1, 1);
|
|
105
|
+
if (!(parsed.length == 0)) {
|
|
106
|
+
_context3.next = 8;
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
return _context3.abrupt("return", {
|
|
110
|
+
failed: true,
|
|
111
|
+
verbosePassed: 'Package not found',
|
|
112
|
+
verboseSkipped: 'Package not found',
|
|
113
|
+
verboseFailed: 'Package not found',
|
|
114
|
+
passedAmount: 0,
|
|
115
|
+
skippedAmount: 0,
|
|
116
|
+
failedAmount: 0,
|
|
117
|
+
csv: ''
|
|
118
|
+
});
|
|
119
|
+
case 8:
|
|
105
120
|
organized = parsed[0].map(function (testObj) {
|
|
106
121
|
return {
|
|
107
122
|
"package": testObj.packageName,
|
|
@@ -135,7 +150,7 @@ function _runTesting() {
|
|
|
135
150
|
color.info('Starting tests...');
|
|
136
151
|
testsResults = [];
|
|
137
152
|
workerId = 1;
|
|
138
|
-
_context3.next =
|
|
153
|
+
_context3.next = 16;
|
|
139
154
|
return (0, _testUtils.timeout)( /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
140
155
|
var _args$benchmark, _args$catchUnhandled, _args$gui, _args$record, _args$report, _args$verbose, _args$ciCd, testsLeft, testsToReproduce, _iterator2, _step2, testData, reproduced, _iterator3, _step3, _test2, _reproducedTest2;
|
|
141
156
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
@@ -225,12 +240,12 @@ function _runTesting() {
|
|
|
225
240
|
}
|
|
226
241
|
}, _callee2, null, [[12, 25, 28, 31]]);
|
|
227
242
|
})), testInvocationTimeout);
|
|
228
|
-
case 14:
|
|
229
|
-
_context3.next = 16;
|
|
230
|
-
return (0, _testUtils.mergeWorkersResults)(testsResults);
|
|
231
243
|
case 16:
|
|
244
|
+
_context3.next = 18;
|
|
245
|
+
return (0, _testUtils.mergeWorkersResults)(testsResults);
|
|
246
|
+
case 18:
|
|
232
247
|
return _context3.abrupt("return", _context3.sent);
|
|
233
|
-
case
|
|
248
|
+
case 19:
|
|
234
249
|
case "end":
|
|
235
250
|
return _context3.stop();
|
|
236
251
|
}
|
package/bin/grok.js
CHANGED
package/package.json
CHANGED