Skip to content

Discontinue usage of Runner functionality for Git calls #632

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

Merged
merged 5 commits into from
Feb 7, 2024

Conversation

mih
Copy link
Member

@mih mih commented Feb 7, 2024

Elevates the call_git..() helpers to have enough functionality to replace the observed usage patterns for GitRepo.call_git..() and other Repo centric runner call pattern.

All these are replaced with call_git..() utility from datalad-next.

Closes #541

mih added 5 commits February 7, 2024 10:47
- `call_git_success()` learned to capture, but withold, outputs
- `call_git_[one]line[s]()` learned to accept command input
The new implementation uses the lean `call_git...()` utilities directly.
It also avoids the relatively heavy-handed environment patching
mechanism in the runner, in favor of the new lean `patched_env`
context manager. This is OK, because the git remote helper runs in its
own process.

Ping datalad#541
Copy link

codecov bot commented Feb 7, 2024

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (7a08a58) 93.01% compared to head (6c2005e) 93.02%.

Files Patch % Lines
datalad_next/gitremotes/datalad_annex.py 96.29% 0 Missing and 1 partial ⚠️
datalad_next/utils/tests/test_patch.py 92.30% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #632      +/-   ##
==========================================
+ Coverage   93.01%   93.02%   +0.01%     
==========================================
  Files         170      171       +1     
  Lines       11907    11932      +25     
  Branches     1795     1805      +10     
==========================================
+ Hits        11075    11100      +25     
+ Misses        644      643       -1     
- Partials      188      189       +1     

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

@mih mih merged commit ebd1548 into datalad:main Feb 7, 2024
@mih mih deleted the rf-runner branch February 7, 2024 12:48
@mih mih added this to the 1.3 milestone Mar 19, 2024
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.

Discontinue (direct) usage of any runner implementations
1 participant