Skip to content

Add onlymetadata flag to objects endpoint #4938

Add onlymetadata flag to objects endpoint

Add onlymetadata flag to objects endpoint #4938

Triggered via pull request February 16, 2024 15:23
Status Failure
Total duration 1m 52s
Artifacts

test.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 7 warnings
test (ubuntu-latest, 1.21)
4/89 tests failed
Test go.sia.tech/renterd/stores/TestObjectBasic failed in 0.06s: stores/metadata_test.go#L93
metadata_test.go:93: object mismatch   any( -  &object.Object{ -  Key: s"key:c24f31012c01b6914fdd3abae4078f746f73f44f9ad866db0beb3d6a20031954", -  Slabs: []object.SlabSlice{ -  {Slab: object.Slab{...}, Offset: 10, Length: 100}, -  {Slab: object.Slab{...}, Offset: 20, Length: 200}, -  }, -  }, +  object.Object{ +  Key: s"key:c24f31012c01b6914fdd3abae4078f746f73f44f9ad866db0beb3d6a20031954", +  Slabs: []object.SlabSlice{ +  {Slab: object.Slab{...}, Offset: 10, Length: 100}, +  {Slab: object.Slab{...}, Offset: 20, Length: 200}, +  }, +  },   )
Test go.sia.tech/renterd/stores/TestObjectMetadata failed in 0.06s: stores/metadata_test.go#L181
metadata_test.go:181: &{key:9cfa9eccf8aeb54177c9f0f4ad1b2f52abe406a809e4dc7b9ad1355419597011 [{{1 key:63cd58e40d8ef375da0267de0ffdaff31e4aa85018116f3f55adcd730da5aa16 1 [{map[ed25519:0100000000000000000000000000000000000000000000000000000000000000:[fcid:0100000000000000000000000000000000000000000000000000000000000000]] ed25519:0100000000000000000000000000000000000000000000000000000000000000 h:0100000000000000000000000000000000000000000000000000000000000000}]} 10 100} {{1 key:1815fd3a667ddcb681d4efca8a09c44d689ae6f8bb647d20627979731a252dc6 2 [{map[ed25519:0200000000000000000000000000000000000000000000000000000000000000:[fcid:0200000000000000000000000000000000000000000000000000000000000000]] ed25519:0200000000000000000000000000000000000000000000000000000000000000 h:0200000000000000000000000000000000000000000000000000000000000000}]} 20 200}]}
Test go.sia.tech/renterd/stores/TestObjectMetadata failed in 0.06s: stores/metadata_test.go#L182
metadata_test.go:182: {key:9cfa9eccf8aeb54177c9f0f4ad1b2f52abe406a809e4dc7b9ad1355419597011 [{{1 key:63cd58e40d8ef375da0267de0ffdaff31e4aa85018116f3f55adcd730da5aa16 1 [{map[ed25519:0100000000000000000000000000000000000000000000000000000000000000:[fcid:0100000000000000000000000000000000000000000000000000000000000000]] ed25519:0100000000000000000000000000000000000000000000000000000000000000 h:0100000000000000000000000000000000000000000000000000000000000000}]} 10 100} {{1 key:1815fd3a667ddcb681d4efca8a09c44d689ae6f8bb647d20627979731a252dc6 2 [{map[ed25519:0200000000000000000000000000000000000000000000000000000000000000:[fcid:0200000000000000000000000000000000000000000000000000000000000000]] ed25519:0200000000000000000000000000000000000000000000000000000000000000 h:0200000000000000000000000000000000000000000000000000000000000000}]} 20 200}]}
Test go.sia.tech/renterd/stores/TestObjectMetadata failed in 0.06s: stores/metadata_test.go#L183
metadata_test.go:183: object mismatch   any( -  &object.Object{ -  Key: s"key:9cfa9eccf8aeb54177c9f0f4ad1b2f52abe406a809e4dc7b9ad1355419597011", -  Slabs: []object.SlabSlice{ -  {Slab: object.Slab{...}, Offset: 10, Length: 100}, -  {Slab: object.Slab{...}, Offset: 20, Length: 200}, -  }, -  }, +  object.Object{ +  Key: s"key:9cfa9eccf8aeb54177c9f0f4ad1b2f52abe406a809e4dc7b9ad1355419597011", +  Slabs: []object.SlabSlice{ +  {Slab: object.Slab{...}, Offset: 10, Length: 100}, +  {Slab: object.Slab{...}, Offset: 20, Length: 200}, +  }, +  },   )
Test go.sia.tech/renterd/stores/TestSQLMetadataStore failed in 0.09s: stores/metadata_test.go#L1075
metadata_test.go:1075: object mismatch   any( -  api.Object{ -  Metadata: api.ObjectUserMetadata{"baz": "qux", "foo": "bar"}, -  ObjectMetadata: api.ObjectMetadata{ -  ETag: "d34db33f", -  Health: 1, -  ModTime: s"2024-02-16T15:24:38.407047087Z", -  Name: "key1", -  Size: 300, -  MimeType: "application/octet-stream", -  }, -  Object: &object.Object{ -  Key: s"key:07c5809132cf44010808a90bfe2da61c53b824b8302de76151810cc725f5"..., -  Slabs: []object.SlabSlice{{...}, {...}}, -  }, -  }, +  object.Object{ +  Key: s"key:07c5809132cf44010808a90bfe2da61c53b824b8302de76151810cc725f5907d", +  Slabs: []object.SlabSlice{ +  {Slab: object.Slab{...}, Offset: 10, Length: 100}, +  {Slab: object.Slab{...}, Offset: 20, Length: 200}, +  }, +  },   )
Test go.sia.tech/renterd/stores/TestPartialSlab failed in 0.07s: stores/metadata_test.go#L2665
metadata_test.go:2665: mismatch   any( -  object.Object{ -  Key: s"key:5402e9119e95c16e35c6d1a727bb94cc7130541973b5e3b75256b5d5fb72bf89", -  Slabs: []object.SlabSlice{{Slab: object.Slab{...}, Length: 4194304}, {Slab: object.Slab{...}, Length: 4}}, -  }, +  &object.Object{ +  Key: s"key:5402e9119e95c16e35c6d1a727bb94cc7130541973b5e3b75256b5d5fb72bf89", +  Slabs: []object.SlabSlice{{Slab: object.Slab{...}, Length: 4194304}, {Slab: object.Slab{...}, Length: 4}}, +  },   )
test (ubuntu-latest, 1.22)
The operation was canceled.
test (windows-latest, 1.22)
The operation was canceled.
test (windows-latest, 1.21)
The operation was canceled.
test (macos-latest, 1.21)
The operation was canceled.
test (macos-latest, 1.22)
The operation was canceled.
test (ubuntu-latest, 1.21)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v3, golangci/golangci-lint-action@v3, SiaFoundation/action-golang-analysis@HEAD, n8maninger/action-golang-test@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test (ubuntu-latest, 1.22)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v3, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test (windows-latest, 1.22)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v3, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test (windows-latest, 1.21)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v3, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test (macos-latest, 1.21)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v3, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test (macos-latest, 1.22)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v3, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test (macos-latest, 1.22)
Failed to save: "/usr/local/bin/gtar" failed with error: The process '/usr/local/bin/gtar' failed with exit code 1