Skip to content

Conversation

jlnav
Copy link
Member

@jlnav jlnav commented Aug 29, 2025

Please check the docstrings of new functions for descriptions. I'm happy to explain anything.

TODO:

  • Add LibeSpecs.enable_cache
  • Perhaps new message_number, WORKER_SATISFIED_BY_CACHE or something
  • Tests
  • Documentation
  • Better way to correspond a cache file to a workflow than "".join(sys.argv) (user specifies name)

I'd appreciate local tests/feedback!

jlnav added 18 commits June 26, 2025 17:00
… 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.
@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
Copy link

codecov bot commented Oct 22, 2025

Codecov Report

❌ Patch coverage is 98.21429% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.35%. Comparing base (beb9b88) to head (019b82e).

Files with missing lines Patch % Lines
libensemble/manager.py 97.29% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1585      +/-   ##
===========================================
- Coverage    93.36%   93.35%   -0.01%     
===========================================
  Files           76       76              
  Lines         7580     7677      +97     
  Branches      1119     1141      +22     
===========================================
+ Hits          7077     7167      +90     
- Misses         329      331       +2     
- Partials       174      179       +5     

☔ View full report in Codecov by Sentry.
📢 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.

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