Skip to content

Conversation

@mih
Copy link
Member

@mih mih commented Jul 4, 2025

No description provided.

mih added 4 commits July 4, 2025 12:48
with those of other modules, like `datalad_next.gitpathspec`.
…ess`

with those of other modules, like `datalad_next.gitpathspec`.
All non-deprecated content of this module has been migrated to
`datalad_core` (and some to `datasalad`).

A deprecation warning it added to the module. All consuming code here
has been adjusted to the new imports.
In an effort to trim dependencies on legacy datalad.
@mih mih mentioned this pull request Jul 4, 2025
Comment on lines -17 to -24
def iter_subproc(
args: List[str],
*,
input: Iterable[bytes] | None = None,
chunk_size: int = COPY_BUFSIZE,
cwd: Path | None = None,
bufsize: int = -1,
):
Copy link
Member

@adswa adswa Jul 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a few test failures in this PR:

E       TypeError: iter_subproc() got an unexpected keyword argument 'input'

I tried to dig into them a bit, and found datalad/datasalad@4b44891, where the "input" parameter of the now used iter_subproc() implementation in datasalad was renamed to "inputs".

I will try to push a change that adjusts to the different parameter name, but I suspect that the problem is that different runners either expect "input" or "inputs"? Let's see...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sadly, yes, if I adjust the parameter name, while previously failing tests pass, I get tons of

FAILED datalad_next/gitremotes/tests/test_datalad_annex.py::test_submodule_url - datalad.runner.exception.CommandError: CommandError: 'git -c diff.ignoreSubmodules=none -c core.quotepath=false push -u dla dl-test-branch' failed with exitcode 128 [err: 'fatal: TypeError(call_git_oneline() got an unexpected keyword argument 'input')

So this would mean we either homogenize the parameter name across runners (but thus also across several different datalad extensions), revert the renaming in datasalad, or keep the separate runner implementation.

Previously, tests failed with
TypeError: iter_subproc() got an unexpected keyword argument 'input'

because a previously used implementation of iter_git_subproc
had input as a parameter name. The now used implementation
in datasalad renamed this parameter to inputs.

I'm not sure if this causes other problems down the line
because I believe different runners not inconsistently
expect either input or inputs...
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.

2 participants