Skip to content

Feature / save long-running sim outputs to cache. Manager preempts sending identical work in favor of pulling from cache - #1585

Open
jlnav wants to merge 38 commits into
developfrom
feature/shelve_sims
Open

Feature / save long-running sim outputs to cache. Manager preempts sending identical work in favor of pulling from cache#1585
jlnav wants to merge 38 commits into
developfrom
feature/shelve_sims

Conversation

@jlnav

@jlnav jlnav commented Aug 29, 2025

Copy link
Copy Markdown
Member

Cache generated based on the hashed specs dicts + source codes of included callables

@jlnav jlnav changed the title [WIP] Feature/shelve sims Feature / save long-running sim outputs to cache. Manager preempts sending identical work in favor of pulling from cache Sep 19, 2025
@jlnav
jlnav marked this pull request as ready for review September 19, 2025 20:57
@jlnav
jlnav requested review from jmlarson1 and shuds13 September 19, 2025 20:57
@codecov

codecov Bot commented Oct 22, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.97338% with 29 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.07%. Comparing base (1bd1305) to head (68dbe87).
⚠️ Report is 5 commits behind head on develop.

Files with missing lines Patch % Lines
libensemble/history.py 84.90% 7 Missing and 9 partials ⚠️
libensemble/manager.py 91.11% 4 Missing and 4 partials ⚠️
libensemble/utils/misc.py 89.36% 2 Missing and 3 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           develop    #1585       +/-   ##
============================================
+ Coverage    76.88%   89.07%   +12.19%     
============================================
  Files           79       79               
  Lines         8340     8570      +230     
  Branches      1289     1341       +52     
============================================
+ Hits          6412     7634     +1222     
+ Misses        1672      727      -945     
+ Partials       256      209       -47     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

jlnav added 25 commits September 8, 2026 10:05
… and then seeing if values exist in that cache before sending sims...
…he cache being created. iterate over the cache_keys corresponding to those in gen_specs out, then check if they're close to a cache entry. grab those indexes so we can slot in the corresponding data into the manager's H later on
…istory_f on/with those indexes and the associated cache values, pretending that the array of cache-values are a worker message
…rrides .recv, and in _send_work_order that forms a buffer from corresponding cache entries
…hed work. increment a cache_index for slotting into local buffer
…volving gen hang. only if all sim work already in cache do we skip the send-stage. when processing cache entries, process them in the order in which they presumptively would've been received from that worker. additional logging.
… tiny refactors to worker.py to help reuse a method. add CACHE_RETRIEVE tag
…nce we're comparing to returned calc statuses
@jlnav
jlnav force-pushed the feature/shelve_sims branch from 8762847 to e88228e Compare September 8, 2026 15:48
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