Skip to content

Re-run cached spread-fit data prep when the fireSenseUtils functions it calls change - #47

Merged
eliotmcintire merged 1 commit into
developmentfrom
fix/harmonize-cache-inner-fns
Sep 28, 2026
Merged

eliotmcintire merged 1 commit into
developmentfrom
fix/harmonize-cache-inner-fns

Conversation

@eliotmcintire

Copy link
Copy Markdown
Collaborator

reproducible::Cache() digests only the called function's code, not the functions it calls. The run scripts cache the prepSpreadFitData event. Fixes in fireSenseUtils functions that event reaches were therefore invisible, and it returned the old spread-fit data. That includes makeMutuallyExclusive() (fireSenseUtils #92, merged), cleanUpSpreadFirePoints() (#96) and the coming change to fireSenseCovariatesCreate().

This adds a prepSpreadFitData entry to .useCacheArgs that names every LandR and fireSenseUtils function the event reaches. The inner harmonizeFireData() Cache call gets .cacheExtra = fireSenseUtils::harmonizeFireDataDeps(), as makeFireSenseLCCDeps() is used already. The new test walks the event through the module's own functions, and fails on development with three missing functions. Requires fireSenseUtils >= 0.2.3.9053, so merge fireSenseUtils #97 first. Version 1.2.0.9015.

Existing caches of prepSpreadFitData and of harmonizeFireData built before this should be cleared before refitting.

🤖 Generated with Claude Code

reproducible::Cache() digests only the called function's own code. The
run scripts cache prepSpreadFitData, so fixes in makeMutuallyExclusive(),
cleanUpSpreadFirePoints() and the rest returned the old spread-fit data.
Adds a prepSpreadFitData entry to .useCacheArgs and
harmonizeFireDataDeps() to the inner harmonizeFireData() Cache call. A
test fails if the event reaches an unkeyed LandR/fireSenseUtils function.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
eliotmcintire added a commit that referenced this pull request Sep 28, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CwcjqqK59FmTJscyi7xUqv
@eliotmcintire
eliotmcintire merged commit 10032d9 into development Sep 28, 2026
7 of 9 checks passed
@eliotmcintire
eliotmcintire deleted the fix/harmonize-cache-inner-fns branch September 28, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant