datagrok-tools 4.14.60 → 4.14.62

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.
@@ -358,6 +358,7 @@ async function runTests(testsParams, stopOnFail) {
358
358
  continue;
359
359
  }
360
360
  let row = df.rows.get(0);
361
+ console.log(`DEBUG: runTests: IN A LOOP: rows in df ${df.rowCount}`);
361
362
  if (df.rowCount > 1) {
362
363
  const unhandledErrorRow = df.rows.get(1);
363
364
  if (!unhandledErrorRow.get('success')) {
@@ -378,7 +379,13 @@ async function runTests(testsParams, stopOnFail) {
378
379
  if (df.col('widgetsDifference')) df.changeColumnType('widgetsDifference', window.DG.COLUMN_TYPE.STRING);
379
380
  // df.changeColumnType('memoryDelta', (<any>window).DG.COLUMN_TYPE.BIG_INT);
380
381
 
381
- if (resultDF === undefined) resultDF = df;else resultDF = resultDF.append(df);
382
+ if (resultDF === undefined) resultDF = df;else {
383
+ console.log(`DEBUG: COLUMN NAMES IN RESULT_DF: ${resultDF.columns.names()}`);
384
+ console.log(`DEBUG: COLUMN TYPES IN RESULT_DF: ${resultDF.columns.names().map(c => `${c}: ${resultDF.col(c)?.type}`)}`);
385
+ console.log(`DEBUG: COLUMN NAMES IN DF: ${df.columns.names()}`);
386
+ console.log(`DEBUG: COLUMN TYPES IN DF: ${df.columns.names().map(c => `${c}: ${df.col(c)?.type}`)}`);
387
+ resultDF = resultDF.append(df);
388
+ }
382
389
  if (row['skipped']) {
383
390
  verboseSkipped += `Test result : Skipped : ${time} : ${category}: ${testName} : ${result}\n`;
384
391
  countSkipped += 1;
@@ -390,13 +397,16 @@ async function runTests(testsParams, stopOnFail) {
390
397
  countFailed += 1;
391
398
  failed = true;
392
399
  }
393
- if (success !== true && skipped !== true && stopOnFail) break;
400
+ if (success !== true && skipped !== true && stopOnFail) {
401
+ break;
402
+ }
394
403
  }
395
404
  if (window.DG.Test.isInDebug) {
396
405
  console.log('on browser closing debug point');
397
406
  debugger;
398
407
  }
399
408
  res = '';
409
+ console.log(`DEBUG: runTests: AFTER THE LOOP: rows in resultDF ${resultDF?.rowCount}`);
400
410
  if (resultDF) {
401
411
  const bs = window.DG.BitSet.create(resultDF.rowCount);
402
412
  bs.setAll(true);
@@ -404,12 +414,16 @@ async function runTests(testsParams, stopOnFail) {
404
414
  if (resultDF.rows.get(i).get('category') === 'Unhandled exceptions') bs.set(i, false);
405
415
  }
406
416
  resultDF = resultDF.clone(bs);
417
+ console.log(`DEBUG: runTests: IN IF CONDITION: rows in resultDF ${resultDF.rowCount}`);
407
418
  res = resultDF.toCsv();
419
+ console.log(`DEBUG: runTests: IN IF CONDITION: csv length ${res?.length}`);
408
420
  }
409
421
  } catch (e) {
410
422
  failed = true;
423
+ console.log(`DEBUG: runTests: IN CATCH: ERROR: ${e}`);
411
424
  error = lastTest ? `category: ${lastTest.params.category}, name: ${lastTest.params.test}, error: ${e}, ${await window.DG.Logger.translateStackTrace(e.stack)}` : `test: null, error: ${e}, ${await window.DG.Logger.translateStackTrace(e.stack)}`;
412
425
  }
426
+ console.log(`DEBUG: runTests: BEFORE RETURN: RES: ${res.length}, FAILED: ${failed}, ERROR: ${error}`);
413
427
  return {
414
428
  failed: failed,
415
429
  verbosePassed: verbosePassed,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datagrok-tools",
3
- "version": "4.14.60",
3
+ "version": "4.14.62",
4
4
  "description": "Utility to upload and publish packages to Datagrok",
5
5
  "homepage": "https://github.com/datagrok-ai/public/tree/master/tools#readme",
6
6
  "dependencies": {