Skip to content

Fix test failure with old annex#7159

Merged
yarikoptic merged 1 commit into
datalad:maintfrom
bpoldrack:fix-7157
Nov 9, 2022
Merged

Fix test failure with old annex#7159
yarikoptic merged 1 commit into
datalad:maintfrom
bpoldrack:fix-7157

Conversation

@bpoldrack
Copy link
Copy Markdown
Member

This test asserts that the push call will fail, because of read-only mode of the ORA remote. This is what happens, but with older annex we get an IncompleteResultsError rather than a CommandError. Not sure what changed for this to happen now, but in any case: IncompleteResultsError would be more desireable to begin with as we get an actual error result rather than a crash + if there's something to change to get this with all annex versions, it's in push or at a more generic layer when calling annex. The test, however, only is about testing that annex-copy and by extension datalad-push with the ORA remote fails under these circumstances.
Hence, accept both ways of failing from within this test. The difference warrants an investigation of push/Runner or whatever is causing the difference here, though.

Closes #7157

@bpoldrack bpoldrack added semver-tests Changes only affect tests, no impact on version CHANGELOG-missing When a PR's description does not contain a changelog item, yet. labels Nov 9, 2022
@github-actions github-actions Bot removed the CHANGELOG-missing When a PR's description does not contain a changelog item, yet. label Nov 9, 2022
This test asserts that the push call will fail, because of read-only
mode of the ORA remote. This is what happens, but with older annex we
get an `IncompleteResultsError` rather than a `CommandError`. Not sure
what changed for this to happen now, but in any case:
`IncompleteResultsError` would be more desireable to begin with as we
get an actual error result rather than a crash + if there's something to
change to get this with all annex versions, it's in `push` or at a more
generic layer when calling annex. The test, however, only is about
testing that annex-copy and by extension datalad-push with the ORA
remote fails under these circumstances.
Hence, accept both ways of failing from within this test. The difference
warrants an investigation of `push`/`Runner` or whatever is causing the
difference here, though.

Closes datalad#7157
@yarikoptic
Copy link
Copy Markdown
Member

Great, thank you @bpoldrack !

@yarikoptic yarikoptic merged commit 209bc31 into datalad:maint Nov 9, 2022
@yarikoptic-gitmate
Copy link
Copy Markdown
Collaborator

PR released in 0.17.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver-tests Changes only affect tests, no impact on version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 tests fail in cron travis run

3 participants