Repository navigation
chore: merge main into workpackages - #977
Merged
Merged
Conversation
reva_upload_sessions_bytes_received counts upload sessions whose data has been fully received, before postprocessing, not bytes. Its name stays, for compatibility with existing dashboards; its help text and comment now say what it counts. Also fixes the comment of UploadSessionsFinalized, copied from the metric above it, and the typo "uploads sessions" in the other help texts. Fixes #930
Bumps [github.com/go-playground/validator/v10](https://github.com/go-playground/validator) from 10.30.3 to 10.30.5. - [Release notes](https://github.com/go-playground/validator/releases) - [Commits](go-playground/validator@v10.30.3...v10.30.5) --- updated-dependencies: - dependency-name: github.com/go-playground/validator/v10 dependency-version: 10.30.5 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
Add metrics for metadata locks, metadata IO and sync propagation
Remove deleted the tag but kept counting it towards the maximum number of tags, so Add on the same Tags object could refuse new tags after removing others although there was room. Decrement the count in Remove. Fixes #967 Assisted-by: Claude Code:claude-opus-5-5
fix(mime): map the m4b and azw3 extensions
fix(metrics): clarify the help texts of the upload session metrics
fix(tags): free a slot for each removed tag
main deleted pkg/storage/utils/decomposedfs together with the ocis and s3ng drivers, so the conflicts resolve in favour of the deletion. The upload coordinator changes workpackages made to that copy go with it, including the two specs it added there. The pkg fork keeps the same coverage. In pkg/storage/utils/middleware the tus data store methods stay removed, as the coordinator owns the upload flow now. go mod tidy drops shamaton/msgpack and kovidgoyal/imaging, only the deleted copy needed them. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
…ipynb fix(mime): map the 3mf, blend, fb2, ipynb and kra extensions
When Tree.Delete failed after creating the trash symlink, the symlink stayed behind and pointed at a node that was never moved, and a failed removal of the parent entry left the node renamed to its trash name. #927 fixed this in pkg/storage/utils/decomposedfs only, which main has since deleted, so the decomposed and decomposeds3 drivers still had the bug. We now remove the trash symlink on every failure path and, when the parent entry cannot be removed, rename the node and its metadata back. The os.Rename spec uses a 239 character node id instead of 248: the messagepack backend writes ".<name>.mpk<int64>" temp files, which have to stay within NAME_MAX while the trash name must not. related: #927 Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
The merge of main removed pkg/storage/utils/decomposedfs, and with it the specs for CommitUpload, MarkProcessing, InitNewNode and one RollbackUpload case that only existed there. The pkg fork has the same code, so we now cover it there: CommitUpload failing with NotFound, writing each overwrite to its own session's blob, propagating to the parent and deleting the blob after a failed write; MarkProcessing on an unmarked node, clearing its own mark, concurrent marks and a missing node; InitNewNode creating and linking a node, losing the name to another upload and failing the quota check. Two specs differ from the deleted ones. The pkg fork keeps the mlock files on purpose (opencloud-eu/opencloud#1793), so the InitNewNode specs check that the lock can be taken again instead of checking that the lock file is gone. And RollbackUpload rejects a reference without a space before looking up the node, so that spec expects the validation error. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Brings in the storage capabilities from #932. Its Capabilities method on pkg/storage/utils/decomposedfs goes with the deleted copy; the next commit declares it on the pkg fork. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
#932 declared decomposedfs fully writeable on pkg/storage/utils/decomposedfs only, which main has deleted. We now state it on the pkg fork, so the decomposed and decomposeds3 drivers report it as a decision rather than through the FullCapabilities fallback. posix embeds storage.FS, so it still gets the fallback, with the same result. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Brings in the mime type mappings from #970. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
butonic
requested review from
dragonchaser
and
a balanced review from Copilot
November 5, 2026 09:38
There was a problem hiding this comment.
🟡 Changes recommended
Repeated unlocks record duplicate lock-hold samples, including time after release, inflating both the histogram count and duration.
1 open issue
What changed in this PR
Merges main into workpackages, consolidating storage on the maintained decomposedfs implementation while preserving branch-specific behavior.
Changes:
- Removes legacy storage drivers and utilities, and updates their consumers.
- Adds metadata and propagation metrics, ports delete rollback handling and upload tests, and declares storage capabilities.
- Fixes tag-slot accounting, adds MIME mappings, clarifies upload metric descriptions, and updates dependencies.
| File | Description |
|---|---|
| tests/oc-integration-tests/local/storage-users-decomposeds3.toml | Aligns configuration sections with decomposeds3. |
| pkg/tags/tags.go | Frees capacity when removing tags. |
| pkg/tags/tags_test.go | Tests tag capacity after removals. |
| pkg/storage/utils/decomposedfs/usermapper/usermapper.go | Removes legacy user-mapping interfaces. |
| pkg/storage/utils/decomposedfs/usermapper/usermapper_linux.go | Removes legacy Linux user mapping. |
| pkg/storage/utils/decomposedfs/tree/tree_suite_test.go | Removes legacy tree test suite. |
| pkg/storage/utils/decomposedfs/tree/propagator/sync.go | Removes legacy synchronous propagation. |
| pkg/storage/utils/decomposedfs/tree/propagator/propagator.go | Removes legacy propagation interfaces. |
| pkg/storage/utils/decomposedfs/trashbin/trashbin.go | Removes legacy trash interface. |
| pkg/storage/utils/decomposedfs/timemanager/timemanager.go | Removes legacy timestamp management. |
| pkg/storage/utils/decomposedfs/spaceidindex/spaceidindex.go | Removes legacy space indexing. |
| pkg/storage/utils/decomposedfs/revisions_test.go | Removes legacy revision tests. |
| pkg/storage/utils/decomposedfs/permissions/spacepermissions.go | Removes legacy space permissions. |
| pkg/storage/utils/decomposedfs/permissions/mocks/PermissionsChecker.go | Removes legacy permission-checker mock. |
| pkg/storage/utils/decomposedfs/permissions/mocks/CS3PermissionsClient.go | Removes legacy permissions-client mock. |
| pkg/storage/utils/decomposedfs/options/options.go | Removes legacy storage options. |
| pkg/storage/utils/decomposedfs/options/options_test.go | Removes legacy option tests. |
| pkg/storage/utils/decomposedfs/options/options_suite_test.go | Removes legacy options test suite. |
| pkg/storage/utils/decomposedfs/node/xattrs.go | Removes legacy node attribute handling. |
| pkg/storage/utils/decomposedfs/node/permissions.go | Removes legacy node permissions. |
| pkg/storage/utils/decomposedfs/node/node_windows.go | Removes legacy Windows capacity lookup. |
| pkg/storage/utils/decomposedfs/node/node_unix.go | Removes legacy Unix capacity lookup. |
| pkg/storage/utils/decomposedfs/node/node_suite_test.go | Removes legacy node test suite. |
| pkg/storage/utils/decomposedfs/mtimesyncedcache/mtimesyncedcache.go | Removes legacy timestamp-based cache. |
| pkg/storage/utils/decomposedfs/mtimesyncedcache/mtimesyncedcache_test.go | Removes legacy cache tests. |
| pkg/storage/utils/decomposedfs/mtimesyncedcache/mtimesyncedcache_suite_test.go | Removes legacy cache test suite. |
| pkg/storage/utils/decomposedfs/mtimesyncedcache/map.go | Removes legacy concurrent map wrapper. |
| pkg/storage/utils/decomposedfs/migrator/migrator.go | Removes legacy migration runner. |
| pkg/storage/utils/decomposedfs/migrator/migrator_test.go | Removes legacy migration tests. |
| pkg/storage/utils/decomposedfs/migrator/migrator_suite_test.go | Removes legacy migration test suite. |
| pkg/storage/utils/decomposedfs/migrator/0005_fix_messagepack_space_index_format.go | Removes legacy index-format migration. |
| pkg/storage/utils/decomposedfs/migrator/0004_switch_to_messagepack_space_index.go | Removes legacy space-index conversion. |
| pkg/storage/utils/decomposedfs/migrator/0003_switch_to_messagepack_metadata.go | Removes legacy metadata conversion. |
| pkg/storage/utils/decomposedfs/migrator/0002_move_spacetypes_to_indexes.go | Removes legacy space-type migration. |
| pkg/storage/utils/decomposedfs/migrator/0001_create_spaces_directory_structure.go | Removes legacy directory migration. |
| pkg/storage/utils/decomposedfs/metadata/prefixes/prefixes.go | Removes legacy metadata keys. |
| pkg/storage/utils/decomposedfs/metadata/prefixes/ocis_prefix.go | Removes legacy default attribute prefix. |
| pkg/storage/utils/decomposedfs/metadata/prefixes/ocis_prefix_freebsd.go | Removes legacy FreeBSD attribute prefix. |
| pkg/storage/utils/decomposedfs/metadata/metadata.go | Removes legacy metadata interfaces. |
| pkg/storage/utils/decomposedfs/metadata/metadata_suite_test.go | Removes legacy metadata test suite. |
| pkg/storage/utils/decomposedfs/metadata/list.go | Removes legacy attribute-list retry helper. |
| pkg/storage/utils/decomposedfs/metadata/list_internal_test.go | Removes legacy attribute-list tests. |
| pkg/storage/utils/decomposedfs/metadata/errors.go | Removes legacy metadata error helpers. |
| pkg/storage/utils/decomposedfs/mark_processing_test.go | Removes legacy processing-state tests. |
| pkg/storage/utils/decomposedfs/lookup/lookup_test.go | Removes legacy lookup tests. |
| pkg/storage/utils/decomposedfs/grants_test.go | Removes legacy grant tests. |
| pkg/storage/utils/decomposedfs/decomposedfs_suite_test.go | Removes legacy filesystem test suite. |
| pkg/storage/utils/decomposedfs/decomposedfs_concurrency_test.go | Removes legacy concurrency tests. |
| pkg/storage/utils/decomposedfs/commit_upload_test.go | Removes legacy upload-commit tests. |
| pkg/storage/utils/decomposedfs/aspects/aspects.go | Removes legacy dependency container. |
| pkg/storage/pkg/decomposedfs/upload_test.go | Adds upload-commit and processing-state cases. |
| pkg/storage/pkg/decomposedfs/tree/tree.go | Adds cleanup and restoration on failed deletion. |
| pkg/storage/pkg/decomposedfs/tree/propagator/sync.go | Counts propagation changes, updates, and failures. |
| pkg/storage/pkg/decomposedfs/tree/propagator/metrics.go | Defines propagation counters. |
| pkg/storage/pkg/decomposedfs/testhelpers/metrics.go | Adds metric-value lookup helper. |
| pkg/storage/pkg/decomposedfs/rollback_upload_test.go | Tests rejection of references without a space. |
| pkg/storage/pkg/decomposedfs/metadata/xattrs_backend.go | Instruments attribute operations and locks. |
| pkg/storage/pkg/decomposedfs/metadata/metrics.go | Defines metadata and lock metrics. |
| pkg/storage/pkg/decomposedfs/metadata/metrics_test.go | Tests backend metrics and lock observations. |
| pkg/storage/pkg/decomposedfs/metadata/messagepack_backend.go | Instruments MessagePack operations and locks. |
| pkg/storage/pkg/decomposedfs/metadata/lock.go | Adds lock timing instrumentation. |
| pkg/storage/pkg/decomposedfs/metadata/hybrid_backend.go | Instruments hybrid metadata operations and locks. |
| pkg/storage/pkg/decomposedfs/decomposedfs.go | Explicitly declares full storage capabilities. |
| pkg/storage/fs/s3ng/s3ng.go | Removes legacy S3 driver. |
| pkg/storage/fs/s3ng/s3ng_test.go | Removes legacy S3 driver tests. |
| pkg/storage/fs/s3ng/s3ng_suite_test.go | Removes legacy S3 test suite. |
| pkg/storage/fs/s3ng/option.go | Removes legacy S3 configuration. |
| pkg/storage/fs/s3ng/option_test.go | Removes legacy S3 option tests. |
| pkg/storage/fs/s3ng/blobstore/blobstore.go | Removes legacy S3 blobstore. |
| pkg/storage/fs/ocis/ocis.go | Removes legacy ocis driver. |
| pkg/storage/fs/ocis/ocis_test.go | Removes legacy ocis driver tests. |
| pkg/storage/fs/ocis/ocis_suite_test.go | Removes legacy ocis test suite. |
| pkg/storage/fs/ocis/blobstore/blobstore.go | Removes legacy local blobstore. |
| pkg/storage/fs/ocis/blobstore/blobstore_test.go | Removes legacy blobstore tests. |
| pkg/storage/fs/ocis/blobstore/blobstore_suite_test.go | Removes legacy blobstore test suite. |
| pkg/storage/fs/ocis/blobstore/blobstore_copy_fallback_test.go | Removes legacy copy-fallback tests. |
| pkg/storage/fs/loader/loader.go | Stops registering removed drivers. |
| pkg/share/manager/jsoncs3/sharecache/sharecache.go | Uses maintained timestamp-based cache. |
| pkg/share/manager/jsoncs3/receivedsharecache/receivedsharecache.go | Uses maintained timestamp-based cache. |
| pkg/share/manager/jsoncs3/providercache/providercache.go | Uses maintained timestamp-based cache. |
| pkg/rhttp/datatx/metrics/metrics.go | Clarifies help text and comments without renaming metrics. |
| pkg/mime/mime.go | Adds seven file-extension mappings. |
| internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/shares_test.go | Uses maintained storage test helpers. |
| go.mod | Updates validator dependencies and removes unused requirements. |
| .mockery.yaml | Removes mock targets for deleted packages. |
Review effort: Balanced
micbar
approved these changes
Nov 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Brings main into workpackages: the removal of the legacy decomposed drivers (#954), the metadata lock and IO metrics (#953), the clearer upload metric help texts (#955), the tag slot fix (#968), the m4b and azw3 mime types (#965), the 3mf, blend, fb2, ipynb and kra mime types (#970) and the validator bump.
main deleted
pkg/storage/utils/decomposedfstogether with the ocis and s3ng drivers, so the conflicts resolve in favour of the deletion. Inpkg/storage/utils/middlewarethe tus data store methods stay removed, as in #949.Three things only existed in the deleted copy, and the commits after the merge add them to
pkg/storage/pkg/decomposedfs:Capabilitiesdeclaration from Per-provider storage capabilities #932.Review commit by commit.
Assisted by Claude Code (claude-opus-5-5): it prepared the merge, ported the fix, the specs and the capabilities declaration, and wrote this description.