bulltrackers-module 1.0.289 → 1.0.290

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.
@@ -424,7 +424,15 @@ async function generateBuildReport(config, dependencies, manifest, daysBack = 90
424
424
  dateSummary.meta.totalIncluded = includedCount;
425
425
  dateSummary.meta.match = (includedCount === expectedCount);
426
426
 
427
- detailWrites.push({ ref: db.collection('computation_build_records').doc(buildId).collection('details').doc(dateStr), data: dateSummary });
427
+ // REMOVE THIS: Inefficient memory usage causes timeouts
428
+ // detailWrites.push({ ref: db.collection(...), data: dateSummary });
429
+
430
+ // ADD THIS (Write immediately):
431
+ await db.collection('computation_build_records')
432
+ .doc(buildId)
433
+ .collection('details')
434
+ .doc(dateStr)
435
+ .set(dateSummary);
428
436
 
429
437
  return { stats: { run: dateSummary.run.length, rerun: dateSummary.rerun.length, stable: dateSummary.stable.length } };
430
438
 
@@ -442,9 +450,9 @@ async function generateBuildReport(config, dependencies, manifest, daysBack = 90
442
450
 
443
451
  await db.collection('computation_build_records').doc(buildId).set(reportHeader);
444
452
 
445
- // Parallel write details
446
- const writeLimit = pLimit(15);
447
- await Promise.all(detailWrites.map(w => writeLimit(() => w.ref.set(w.data))));
453
+ // Parallel write details ---> Now redundant.
454
+ //const writeLimit = pLimit(15);
455
+ //await Promise.all(detailWrites.map(w => writeLimit(() => w.ref.set(w.data))));
448
456
 
449
457
  await db.collection('computation_build_records').doc('latest').set({ ...reportHeader, note: "Latest build report pointer." });
450
458
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bulltrackers-module",
3
- "version": "1.0.289",
3
+ "version": "1.0.290",
4
4
  "description": "Helper Functions for Bulltrackers.",
5
5
  "main": "index.js",
6
6
  "files": [