Skip to content

BF: No object tree in RIA w/o special remote#6495

Merged
mih merged 1 commit intodatalad:masterfrom
bpoldrack:bf-ria-no-sr
Feb 25, 2022
Merged

BF: No object tree in RIA w/o special remote#6495
mih merged 1 commit intodatalad:masterfrom
bpoldrack:bf-ria-no-sr

Conversation

@bpoldrack
Copy link
Member

@bpoldrack bpoldrack commented Feb 23, 2022

create-sibling-ria and the underlying helper created a dataset's annex/objects directory unconditionally.
However, only having the git repositories in store with no special remote and no data whatsoever is valid and supported usecase. The existence of that (empty) directory increases the inode count per dataset, is superfluous and leads to failures of annex commands being executed directly in store. While the latter is something to generally be very careful about, there are valid usecases and with the previous behavior we'd cause annex to pointlessly fail on discovery of that dir, indicating to annex that the repo is not annex-init'ed but was apparently used with annex before.

Changelog

🐛 Bug Fixes

  • create-sibling-ria no longer creates an annex/objects directory in-store, when called with --no-storage-sibling. #6495 (by @bpoldrack )

@bpoldrack bpoldrack added semver-patch Increment the patch version when merged team-gitannex git-annex interface (AnnexRepo, protocols, ...) (https://github.com/datalad/datalad/issues/6365) team-remotes (special) remote implementations (https://github.com/datalad/datalad/issues/6365) labels Feb 23, 2022
`create-sibling-ria` and the underlying helper created a dataset's
`annex/objects` directory unconditionally. However, only having the git
repositories in store with no special remote and no data whatsoever is
valid and supported usecase. The existence of that (empty) directory
increases the inode count per dataset, is superfluous and leads to
failures of annex commands being executed directly in store. While the
latter is something to generally be very careful about, there are valid
usecases and with the previous behavior we'd cause annex to pointlessly
fail on discovery of that dir, indicating to annex that the repo is
not annex-init'ed but was apparently used with annex before.
@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit b332555 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

View more on Code Climate.

Copy link
Member

@mih mih left a comment

Choose a reason for hiding this comment

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

LGTM

@mih
Copy link
Member

mih commented Feb 24, 2022

I restarted the failing travis test

@mih mih merged commit d80f018 into datalad:master Feb 25, 2022
@mih mih deleted the bf-ria-no-sr branch February 25, 2022 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver-patch Increment the patch version when merged team-gitannex git-annex interface (AnnexRepo, protocols, ...) (https://github.com/datalad/datalad/issues/6365) team-remotes (special) remote implementations (https://github.com/datalad/datalad/issues/6365)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants