bulltrackers-module 1.0.321 → 1.0.323

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.
@@ -121,7 +121,8 @@ function analyzeDateExecution(dateStr, calcsInPass, rootDataStatus, dailyStatus,
121
121
  }
122
122
 
123
123
  if (missingDeps.length > 0) {
124
- const isImpossible = missingDeps.some(d => simulationStatus[normalizeName(d)]?.hash?.startsWith(STATUS_IMPOSSIBLE_PREFIX));
124
+ // Cast to string to solve some weird null bug
125
+ const isImpossible = missingDeps.some(d => String(simulationStatus[normalizeName(d)]?.hash).startsWith(STATUS_IMPOSSIBLE_PREFIX));
125
126
  if (isImpossible) {
126
127
  report.impossible.push({ name: cName, reason: 'Upstream Impossible' });
127
128
  simulationStatus[cName] = { hash: `${STATUS_IMPOSSIBLE_PREFIX}:UPSTREAM` };
@@ -3,4 +3,4 @@
3
3
  * PURPOSE: Master override for BuildReporter.
4
4
  * Increment this string to force a full re-analysis regardless of code or data stability.
5
5
  */
6
- module.exports = "reporter-epoch-1";
6
+ module.exports = "reporter-epoch-2";
@@ -6,7 +6,7 @@
6
6
 
7
7
  const { analyzeDateExecution } = require('../WorkflowOrchestrator');
8
8
  const { fetchComputationStatus, updateComputationStatus } = require('../persistence/StatusRepository');
9
- const { normalizeName, getExpectedDateStrings, DEFINITIVE_EARLIEST_DATES } = require('../utils/utils');
9
+ const { normalizeName, getExpectedDateStrings, DEFINITIVE_EARLIEST_DATES, getEarliestDataDates } = require('../utils/utils');
10
10
  const { checkRootDataAvailability } = require('../data/AvailabilityChecker');
11
11
  const SimRunner = require('../simulation/SimRunner');
12
12
  const SYSTEM_EPOCH = require('../system_epoch');
@@ -173,6 +173,9 @@ async function verifyBehavioralStability(candidates, manifestMap, dailyStatus, l
173
173
  */
174
174
  async function generateBuildReport(config, dependencies, manifest) {
175
175
  const { db, logger } = dependencies;
176
+
177
+ // FIX: Populate the global date registry before using it
178
+ await getEarliestDataDates(config, dependencies);
176
179
 
177
180
  const currentFingerprint = getSystemFingerprint(manifest);
178
181
  const latestBuildDoc = await db.collection(BUILD_RECORDS_COLLECTION).doc('latest').get();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bulltrackers-module",
3
- "version": "1.0.321",
3
+ "version": "1.0.323",
4
4
  "description": "Helper Functions for Bulltrackers.",
5
5
  "main": "index.js",
6
6
  "files": [