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

test: Adjust testremote for expected failure amount #324

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

adswa
Copy link
Member

@adswa adswa commented Aug 23, 2024

Since Dataverse version 5.0, "storeKey when already present" of git-annex testremote will fail, as Dataverse forbade replacing files with identical names and checksums:
https://guides.dataverse.org/en/latest/user/dataset-management.html#duplicate-files Because we can't exclude any test from the test suite, but wouldn't want to disable the entire test suite, this change - rather ugly-ly - expects the check to fail, and tests for the right amount of failures in the test suite.

Note that it should hopefully be okay to only adjust the tests for this altered behavior of the remote - a checkpresent prior to transfer operations should AFAIK prevent upload/replace attempts of identical files.

see #320 for explorations.

Since Dataverse version 5.0, "storeKey when already present" of git-annex
testremote will fail, as Dataverse forbade replacing files with identical
names and checksums:
https://guides.dataverse.org/en/latest/user/dataset-management.html#duplicate-files
Because we can't exclude any test from the test suite, but wouldn't want
to disable the entire test suite, this change - rather ugly-ly - expects
the check to fail, and tests for the right amount of failures in the
test suite.

Note that it should hopefully be okay to only adjust the tests for this
altered behavior of the remote - a checkpresent prior to transfer
operations should AFAIK prevent upload/replace attempts of identical
files.
@adswa adswa merged commit bcf2347 into datalad:main Sep 13, 2024
3 of 4 checks passed
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.

1 participant