Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A generator-runner developer guide #476

Conversation

christian-monch
Copy link
Contributor

@christian-monch christian-monch commented Oct 10, 2023

This PR adds a first version of a developer guide to the generator-runner.

TODO:

  • add programming examples

@codecov
Copy link

codecov bot commented Oct 11, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f0b0fc7) 92.33% compared to head (bbdf2a4) 92.37%.
Report is 30 commits behind head on main.

❗ Current head bbdf2a4 differs from pull request most recent head 102d4cf. Consider uploading reports for the commit 102d4cf to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #476      +/-   ##
==========================================
+ Coverage   92.33%   92.37%   +0.03%     
==========================================
  Files         125      125              
  Lines        9530     9530              
  Branches     1025     1025              
==========================================
+ Hits         8800     8803       +3     
+ Misses        708      705       -3     
  Partials       22       22              

see 1 file with indirect coverage changes

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

This commit adds code examples that illustrate
how to use mainly the generator-based runner
execution.

It also adds a section on terminating and
killing processes.
The example code for unified processing
contained a bug (an additional
for-statement). This commit fixes
the issue.
This commit removes an explanation and code
that makes use of functionality that is
introduced in the run-context-manager
branch.

The run-context-manager branch will
extend the document appropriately.
This commit adds a description of the
`exception_on_error`-keyword argument.
It also details the behavior that a
non-None `timeout`-keyword argument
will trigger.
This commit improves the runner
developers handbook:

- unify wording
- improve description clarity
- put every sentence on a single line
- fix typos
@christian-monch christian-monch changed the title Add first version of generator-runner developer guide A generator-runner developer guide Oct 20, 2023
@christian-monch christian-monch marked this pull request as ready for review October 20, 2023 08:42
@adswa
Copy link
Member

adswa commented Oct 20, 2023

christian-monch and others added 2 commits October 20, 2023 13:21
Co-authored-by: Adina Wagner <adina.wagner@t-online.de>
This commit addresses comment
datalad#476 (comment).

It modifies the explanation to describe:

 a) what needs to be done, and
 b) what is done in provided generator-protocols

That should help to comprehend what
a user has to do, when implementing
a new protocol.
This commit contains only small
changes, which do not change the
content, but just fix errors.
@mih
Copy link
Member

mih commented Nov 23, 2023

If we follow through with #541, it would be suboptimal to include this documentation in datalad-next. I suggest to repost the PR against datalad-core. I believe that even if we stop using that runner implementation over here, it will continue to live for a long time in datalad-core.

I think a document in the set of design docs (or next to it) would be best.

@mih mih closed this Nov 23, 2023
@christian-monch christian-monch deleted the generator-runner-users-guide branch July 16, 2024 10:12
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.

3 participants