Debug Test Executorlib #812
Conversation
Bumps [executorlib](https://github.com/pyiron/executorlib) from 1.8.0 to 1.9.0. - [Release notes](https://github.com/pyiron/executorlib/releases) - [Commits](pyiron/executorlib@executorlib-1.8.0...executorlib-1.9.0) --- updated-dependencies: - dependency-name: executorlib dependency-version: 1.9.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
|
@liamhuber 1.8.1 works fine - I am going to start updating from here. |
|
|
Awesome, thanks @jan-janssen! If I'm reading that sed correctly, the patch in pyiron/executorlib#943 makes the tests pass here again |
|
Hmm, the coverage failure is a legitimate failure, not just a hiccup uploading. This line is causing a real problem, but at least the entire stack trace is inside pwf |
| shell: bash -l {0} | ||
| timeout-minutes: 8 | ||
| run: | | ||
| sed -i 's/if isinstance(self._process, Thread):/if wait and isinstance(self._process, Thread):/g' /home/runner/work/pyiron_workflow/pyiron_workflow/cached-miniforge/my-env/lib/python3.12/site-packages/executorlib/task_scheduler/base.py |
There was a problem hiding this comment.
@liamhuber How can I include this ugly patch in the coverage test?
There was a problem hiding this comment.
That's a good question. I see it and I'm looking around
There was a problem hiding this comment.
Here is where I mixin and override standard SlurmClusterExecutor behaviour...
There was a problem hiding this comment.
Perhaps in that class we could introduce an override to shutdown?
def shutdown(...):
if ...:
special new behaviour
else:
super().shutdown(...)
There was a problem hiding this comment.
It would be good to try something like that, as monkeypatching CacheOverride with the fix that will exist in future versions of BaseExecutor might resolve the coverage integration tests at the same time as the slurm tests...
Just to quickly note, it's only failing for the dummy test class: |
|
@liamhuber Just to write down what I understood so far. The |
That is fair. Is there any way of filtering the done callbacks to only trigger on certain types of "done-ness", i.e. in |
|
|
@liamhuber I just wanted to validate the tests work with 1.9.0 in addition to 1.8.2 |
|
With the patch the tests work fine - we are just not able to directly apply it to Test-and-Coverage test. So I am going to close this pull request in favor of the solution in #814 |
No description provided.