celerity / celerity-runtime

High-level C++ for Accelerator Clusters
https://celerity.github.io
MIT License
139 stars 18 forks source link

Fix runtime test for task deletion on horizons #256

Closed fknorr closed 2 months ago

fknorr commented 2 months ago

This fixes a test by @PeterTh that got broken when epochs were introduced: The task manager must delete tasks behind the effective-epoch, and that condition was awaited in the main thread through slow_full_sync(). That function however inserts an epoch which force-deletes all tasks before it, making the test pass even if horizons never delete tasks at all.

This PR replaces the calls to slow_full_sync() with manual synchronization to ensure we still test the actual horizons behavior.

github-actions[bot] commented 2 months ago

Check-perf-impact results: (7b849de16ff11660b98988ab0b032db7)

:question: No new benchmark data submitted. :question:
Please re-run the microbenchmarks and include the results if your commit could potentially affect performance.

coveralls commented 2 months ago

Pull Request Test Coverage Report for Build 9646242015

Details


Files with Coverage Reduction New Missed Lines %
include/grid.h 1 96.81%
<!-- Total: 1 -->
Totals Coverage Status
Change from base Build 9549035557: -0.02%
Covered Lines: 7053
Relevant Lines: 7267

💛 - Coveralls
coveralls commented 2 months ago

Pull Request Test Coverage Report for Build 9646558638

Details


Files with Coverage Reduction New Missed Lines %
src/task.cc 1 87.58%
<!-- Total: 1 -->
Totals Coverage Status
Change from base Build 9549035557: -0.009%
Covered Lines: 7054
Relevant Lines: 7268

💛 - Coveralls
fknorr commented 2 months ago

🍰

coveralls commented 2 months ago

Pull Request Test Coverage Report for Build 9661283847

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details


Files with Coverage Reduction New Missed Lines %
include/grid.h 1 96.81%
<!-- Total: 1 -->
Totals Coverage Status
Change from base Build 9549035557: -0.02%
Covered Lines: 7053
Relevant Lines: 7265

💛 - Coveralls