Skip to content

CBG-3203: Don't store channel history for non-leaf revisions #9577

CBG-3203: Don't store channel history for non-leaf revisions

CBG-3203: Don't store channel history for non-leaf revisions #9577

Triggered via pull request April 8, 2024 14:19
@bbrksbbrks
synchronize #6368
CBG-3203
Status Failure
Total duration 13m 33s
Artifacts

ci.yml

on: pull_request
Matrix: test-sgcollect
Matrix: test-stats-definition-exporter
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

46 errors and 4 warnings
lint: db/document.go#L1251
func `(*Document).currentChannels` is unused (unused)
lint
issues found
test (ubuntu)
Process completed with exit code 1.
test (ubuntu): database_test.go#L586
database_test.go:586: Error Trace: /home/runner/work/sync_gateway/sync_gateway/db/database_test.go:586 Error: Not equal: expected: db.Body{"_id":"doc1", "_rev":"2-98b0e58dd5e3d2c23bbcec36458559f1", "_revisions":db.Revisions{"ids":[]string{"98b0e58dd5e3d2c23bbcec36458559f1", "f8fd91d4024e824690d5dd4f20ffbf1c"}, "start":2}, "channels":[]string{"ABC"}, "k2":"v2"} actual : db.Body{"_id":"doc1", "_removed":true, "_rev":"2-98b0e58dd5e3d2c23bbcec36458559f1", "_revisions":db.Revisions{"ids":[]string{"98b0e58dd5e3d2c23bbcec36458559f1", "f8fd91d4024e824690d5dd4f20ffbf1c"}, "start":2}} Diff: --- Expected +++ Actual @@ -1,3 +1,4 @@ -(db.Body) (len=5) { +(db.Body) (len=4) { (string) (len=3) "_id": (string) (len=4) "doc1", + (string) (len=8) "_removed": (bool) true, (string) (len=4) "_rev": (string) (len=34) "2-98b0e58dd5e3d2c23bbcec36458559f1", @@ -9,7 +10,3 @@ (string) (len=5) "start": (int) 2 - }, - (string) (len=8) "channels": ([]string) (len=1) { - (string) (len=3) "ABC" - }, - (string) (len=2) "k2": (string) (len=2) "v2" + } } Test: TestGetRemovalMultiChannel ---
test (ubuntu): access_test.go#L63
access_test.go:63: Error Trace: /home/runner/work/sync_gateway/sync_gateway/db/access_test.go:63 Error: Received unexpected error: 403 forbidden Test: TestDynamicChannelGrant 2024-04-08T14:21:04.294Z
test (ubuntu): oidc_api_test.go#L2718
oidc_api_test.go:2718: Error Trace: /home/runner/work/sync_gateway/sync_gateway/rest/oidc_api_test.go:2718 Error: Not equal: expected: 200 actual : 403 Test: TestOpenIDConnectIssuerChange
test (ubuntu): rest/blip_api_crud_test.go#L2847
blip_api_crud_test.go:2847: Error Trace: /home/runner/work/sync_gateway/sync_gateway/rest/blip_api_crud_test.go:2847 /home/runner/work/sync_gateway/sync_gateway/rest/blip_client_test.go:615 Error: Not equal: expected: "{\"channel\":[\"PBS\"]}" actual : "{\"_removed\":true}" Diff: --- Expected +++ Actual @@ -1 +1 @@ -{"channel":["PBS"]} +{"_removed":true} Test: TestRequestPlusPullDbConfig/revTree 2024-04-08T14:21:28.252Z
test (ubuntu): rest/changes_api_test.go#L2219
changes_api_test.go:2219: Error Trace: /home/runner/work/sync_gateway/sync_gateway/rest/changestest/changes_api_test.go:2219 Error: Received unexpected error: Unexpected empty JSON input to body.Unmarshal Test: TestChangesIncludeDocs
test (ubuntu): rest/changes_api_test.go#L2219
changes_api_test.go:2219: Error Trace: /home/runner/work/sync_gateway/sync_gateway/rest/changestest/changes_api_test.go:2219 Error: Received unexpected error: Unexpected empty JSON input to body.Unmarshal Test: TestChangesIncludeDocs
test (ubuntu): rest/changes_api_test.go#L1961
changes_api_test.go:1961: Error Trace: /home/runner/work/sync_gateway/sync_gateway/rest/changestest/changes_api_test.go:1961 Error: Received unexpected error: unexpected end of JSON input Test: TestOneShotChangesWithExplicitDocIds
test (ubuntu): rest/changes_api_test.go#L1962
changes_api_test.go:1962: Error Trace: /home/runner/work/sync_gateway/sync_gateway/rest/changestest/changes_api_test.go:1962 Error: Not equal: expected: string("docD") actual : <nil>(<nil>) Test: TestOneShotChangesWithExplicitDocIds 2024-04-08T14:21:29.069Z
test (ubuntu): blip_api_crud_test.go#L1106
blip_api_crud_test.go:1106: Error Trace: /home/runner/work/sync_gateway/sync_gateway/rest/blip_api_crud_test.go:1106 /home/runner/go/pkg/mod/github.com/couchbase/[email protected]/context.go:304 /home/runner/go/pkg/mod/github.com/couchbase/[email protected]/receiver.go:276 /home/runner/go/pkg/mod/github.com/couchbase/[email protected]/message.go:381 /opt/hostedtoolcache/go/1.21.8/x64/src/runtime/asm_amd64.s:1650 Error: Should be false Test: TestConcurrentRefreshUser
test (ubuntu): blip_api_crud_test.go#L1106
blip_api_crud_test.go:1106: Error Trace: /home/runner/work/sync_gateway/sync_gateway/rest/blip_api_crud_test.go:1106 /home/runner/go/pkg/mod/github.com/couchbase/[email protected]/context.go:304 /home/runner/go/pkg/mod/github.com/couchbase/[email protected]/receiver.go:276 /home/runner/go/pkg/mod/github.com/couchbase/[email protected]/message.go:381 /opt/hostedtoolcache/go/1.21.8/x64/src/runtime/asm_amd64.s:1650 Error: Should be false Test: TestConcurrentRefreshUser
test-race
Process completed with exit code 1.
test-race: rest/blip_api_crud_test.go#L2199
blip_api_crud_test.go:2199: Error Trace: /home/runner/work/sync_gateway/sync_gateway/rest/blip_api_crud_test.go:2199 /home/runner/work/sync_gateway/sync_gateway/rest/blip_client_test.go:615 Error: "[[3 doc 2-be1091a5021df5c6d45011885d89fc96 4] [5 docmarker 1-7b361410bb628fcc490f1df46ddd0efa]]" should have 1 item(s), but has 2 Test: TestRemovedMessageWithAlternateAccessAndChannelFilteredReplication/revTree 2024-04-08T14:21:31.500Z
test-race: revocation_test.go#L145
revocation_test.go:145: Error Trace: /home/runner/work/sync_gateway/sync_gateway/rest/revocation_test.go:145 /home/runner/work/sync_gateway/sync_gateway/rest/revocation_test.go:1163 Error: Received unexpected error: RetryLoop for Wait for condition options giving up after 201 attempts Test: TestRevocationsWithQueryLimit2Channels
test-race: rest/changes_api_test.go#L2219
changes_api_test.go:2219: Error Trace: /home/runner/work/sync_gateway/sync_gateway/rest/changestest/changes_api_test.go:2219 Error: Received unexpected error: Unexpected empty JSON input to body.Unmarshal Test: TestChangesIncludeDocs
test-race: rest/changes_api_test.go#L2219
changes_api_test.go:2219: Error Trace: /home/runner/work/sync_gateway/sync_gateway/rest/changestest/changes_api_test.go:2219 Error: Received unexpected error: Unexpected empty JSON input to body.Unmarshal Test: TestChangesIncludeDocs
test-race: rest/changes_api_test.go#L1961
changes_api_test.go:1961: Error Trace: /home/runner/work/sync_gateway/sync_gateway/rest/changestest/changes_api_test.go:1961 Error: Received unexpected error: unexpected end of JSON input Test: TestOneShotChangesWithExplicitDocIds
test-race: rest/changes_api_test.go#L1962
changes_api_test.go:1962: Error Trace: /home/runner/work/sync_gateway/sync_gateway/rest/changestest/changes_api_test.go:1962 Error: Not equal: expected: string("docD") actual : <nil>(<nil>) Test: TestOneShotChangesWithExplicitDocIds 2024-04-08T14:21:39.431Z
test-race: rest/replicator_test.go#L2956
replicator_test.go:2956: Error Trace: /home/runner/work/sync_gateway/sync_gateway/rest/replicatortest/replicator_test.go:2956 Error: Received unexpected error: expecting 13 changes, got 0 Test: TestActiveReplicatorPullFromCheckpoint 2024-04-08T14:22:46.802Z
test-race: revocation_test.go#L2597
revocation_test.go:2597: Error Trace: /home/runner/work/sync_gateway/sync_gateway/rest/revocation_test.go:2597 Error: Received unexpected error: expecting 17 changes, got 0 Test: TestReplicatorSwitchPurgeNoReset 2024-04-08T14:23:01.849Z
test-race: rest/replicator_test.go#L5487
replicator_test.go:5487: Error Trace: /home/runner/work/sync_gateway/sync_gateway/rest/replicatortest/replicator_test.go:5487 Error: Received unexpected error: expecting 13 changes, got 0 Test: TestActiveReplicatorPullModifiedHash 2024-04-08T14:23:07.925Z
test-race: access_test.go#L63
access_test.go:63: Error Trace: /home/runner/work/sync_gateway/sync_gateway/db/access_test.go:63 Error: Received unexpected error: 403 forbidden Test: TestDynamicChannelGrant 2024-04-08T14:22:52.088Z
test (macos)
Process completed with exit code 1.
test (macos): rest/changes_api_test.go#L2219
changes_api_test.go:2219: Error Trace: /Users/runner/work/sync_gateway/sync_gateway/rest/changestest/changes_api_test.go:2219 Error: Received unexpected error: Unexpected empty JSON input to body.Unmarshal Test: TestChangesIncludeDocs
test (macos): rest/changes_api_test.go#L2219
changes_api_test.go:2219: Error Trace: /Users/runner/work/sync_gateway/sync_gateway/rest/changestest/changes_api_test.go:2219 Error: Received unexpected error: Unexpected empty JSON input to body.Unmarshal Test: TestChangesIncludeDocs
test (macos): revocation_test.go#L1798
revocation_test.go:1798: Error Trace: /Users/runner/work/sync_gateway/sync_gateway/rest/revocation_test.go:1798 Error: Received unexpected error: expecting 5 changes, got 0 Test: TestReplicatorRevocationsMultipleAlternateAccess 2024-04-08T14:22:39.815Z
test (macos): database_test.go#L586
database_test.go:586: Error Trace: /Users/runner/work/sync_gateway/sync_gateway/db/database_test.go:586 Error: Not equal: expected: db.Body{"_id":"doc1", "_rev":"2-98b0e58dd5e3d2c23bbcec36458559f1", "_revisions":db.Revisions{"ids":[]string{"98b0e58dd5e3d2c23bbcec36458559f1", "f8fd91d4024e824690d5dd4f20ffbf1c"}, "start":2}, "channels":[]string{"ABC"}, "k2":"v2"} actual : db.Body{"_id":"doc1", "_removed":true, "_rev":"2-98b0e58dd5e3d2c23bbcec36458559f1", "_revisions":db.Revisions{"ids":[]string{"98b0e58dd5e3d2c23bbcec36458559f1", "f8fd91d4024e824690d5dd4f20ffbf1c"}, "start":2}} Diff: --- Expected +++ Actual @@ -1,3 +1,4 @@ -(db.Body) (len=5) { +(db.Body) (len=4) { (string) (len=3) "_id": (string) (len=4) "doc1", + (string) (len=8) "_removed": (bool) true, (string) (len=4) "_rev": (string) (len=34) "2-98b0e58dd5e3d2c23bbcec36458559f1", @@ -9,7 +10,3 @@ (string) (len=5) "start": (int) 2 - }, - (string) (len=8) "channels": ([]string) (len=1) { - (string) (len=3) "ABC" - }, - (string) (len=2) "k2": (string) (len=2) "v2" + } } Test: TestGetRemovalMultiChannel ---
test (macos): rest/changes_api_test.go#L1961
changes_api_test.go:1961: Error Trace: /Users/runner/work/sync_gateway/sync_gateway/rest/changestest/changes_api_test.go:1961 Error: Received unexpected error: unexpected end of JSON input Test: TestOneShotChangesWithExplicitDocIds
test (macos): rest/changes_api_test.go#L1962
changes_api_test.go:1962: Error Trace: /Users/runner/work/sync_gateway/sync_gateway/rest/changestest/changes_api_test.go:1962 Error: Not equal: expected: string("docD") actual : <nil>(<nil>) Test: TestOneShotChangesWithExplicitDocIds 2024-04-08T14:22:34.103Z
test (macos): rest/replicator_test.go#L3731
replicator_test.go:3731: Error Trace: /Users/runner/work/sync_gateway/sync_gateway/rest/replicatortest/replicator_test.go:3731 Error: Received unexpected error: expecting 13 changes, got 0 Test: TestActiveReplicatorEdgeCheckpointNameCollisions 2024-04-08T14:23:04.963Z
test (macos): oidc_api_test.go#L2718
oidc_api_test.go:2718: Error Trace: /Users/runner/work/sync_gateway/sync_gateway/rest/oidc_api_test.go:2718 Error: Not equal: expected: 200 actual : 403 Test: TestOpenIDConnectIssuerChange
test (macos): rest/blip_api_delta_sync_test.go#L448
blip_api_delta_sync_test.go:448: Error Trace: /Users/runner/work/sync_gateway/sync_gateway/rest/blip_api_delta_sync_test.go:448 /Users/runner/work/sync_gateway/sync_gateway/rest/blip_client_test.go:615 Error: "{\"_removed\":true}" does not contain "\"channels\":[\"public\"]" Test: TestBlipDeltaSyncPullRemoved/revTree
test (macos): rest/blip_api_delta_sync_test.go#L449
blip_api_delta_sync_test.go:449: Error Trace: /Users/runner/work/sync_gateway/sync_gateway/rest/blip_api_delta_sync_test.go:449 /Users/runner/work/sync_gateway/sync_gateway/rest/blip_client_test.go:615 Error: "{\"_removed\":true}" does not contain "\"greetings\":[{\"hello\":\"world!\"}]" Test: TestBlipDeltaSyncPullRemoved/revTree 2024-04-08T14:22:48.645Z
test (windows): rest/changes_api_test.go#L2219
changes_api_test.go:2219: Error Trace: D:/a/sync_gateway/sync_gateway/rest/changestest/changes_api_test.go:2219 Error: Received unexpected error: Unexpected empty JSON input to body.Unmarshal Test: TestChangesIncludeDocs
test (windows): rest/changes_api_test.go#L2219
changes_api_test.go:2219: Error Trace: D:/a/sync_gateway/sync_gateway/rest/changestest/changes_api_test.go:2219 Error: Received unexpected error: Unexpected empty JSON input to body.Unmarshal Test: TestChangesIncludeDocs
test (windows): rest/changes_api_test.go#L1961
changes_api_test.go:1961: Error Trace: D:/a/sync_gateway/sync_gateway/rest/changestest/changes_api_test.go:1961 Error: Received unexpected error: unexpected end of JSON input Test: TestOneShotChangesWithExplicitDocIds
test (windows): rest/changes_api_test.go#L1962
changes_api_test.go:1962: Error Trace: D:/a/sync_gateway/sync_gateway/rest/changestest/changes_api_test.go:1962 Error: Not equal: expected: string("docD") actual : <nil>(<nil>) Test: TestOneShotChangesWithExplicitDocIds 2024-04-08T14:25:09.563Z
test (windows): revocation_test.go#L145
revocation_test.go:145: Error Trace: D:/a/sync_gateway/sync_gateway/rest/revocation_test.go:145 D:/a/sync_gateway/sync_gateway/rest/revocation_test.go:1163 Error: Received unexpected error: RetryLoop for Wait for condition options giving up after 201 attempts Test: TestRevocationsWithQueryLimit2Channels
test (windows): rest/replicator_test.go#L5391
replicator_test.go:5391: Error Trace: D:/a/sync_gateway/sync_gateway/rest/replicatortest/replicator_test.go:5391 Error: Received unexpected error: expecting 2 changes, got 1 Test: TestActiveReplicatorIgnoreNoConflicts 2024-04-08T14:25:44.922Z
test (windows): access_test.go#L63
access_test.go:63: Error Trace: D:/a/sync_gateway/sync_gateway/db/access_test.go:63 Error: Received unexpected error: 403 forbidden Test: TestDynamicChannelGrant 2024-04-08T14:25:28.910Z
test (windows): database_test.go#L514
database_test.go:514: Error Trace: D:/a/sync_gateway/sync_gateway/db/database_test.go:514 Error: Not equal: expected: db.Body{"_id":"doc1", "_rev":"2-887ae37ab268774730645af84ac149bb", "_revisions":db.Revisions{"ids":[]string{"887ae37ab268774730645af84ac149bb", "b980f8ee1b0cc306ce1e6556bfb33ac3"}, "start":2}, "channels":[]string{"ABC"}, "k2":"v2"} actual : db.Body{"_id":"doc1", "_removed":true, "_rev":"2-887ae37ab268774730645af84ac149bb", "_revisions":db.Revisions{"ids":[]string{"887ae37ab268774730645af84ac149bb", "b980f8ee1b0cc306ce1e6556bfb33ac3"}, "start":2}} Diff: --- Expected +++ Actual @@ -1,3 +1,4 @@ -(db.Body) (len=5) { +(db.Body) (len=4) { (string) (len=3) "_id": (string) (len=4) "doc1", + (string) (len=8) "_removed": (bool) true, (string) (len=4) "_rev": (string) (len=34) "2-887ae37ab268774730645af84ac149bb", @@ -9,7 +10,3 @@ (string) (len=5) "start": (int) 2 - }, - (string) (len=8) "channels": ([]string) (len=1) { - (string) (len=3) "ABC" - }, - (string) (len=2) "k2": (string) (len=2) "v2" + } } Test: TestUncachedOldRevisionChannel ---
test (windows): database_test.go#L586
database_test.go:586: Error Trace: D:/a/sync_gateway/sync_gateway/db/database_test.go:586 Error: Not equal: expected: db.Body{"_id":"doc1", "_rev":"2-98b0e58dd5e3d2c23bbcec36458559f1", "_revisions":db.Revisions{"ids":[]string{"98b0e58dd5e3d2c23bbcec36458559f1", "f8fd91d4024e824690d5dd4f20ffbf1c"}, "start":2}, "channels":[]string{"ABC"}, "k2":"v2"} actual : db.Body{"_id":"doc1", "_removed":true, "_rev":"2-98b0e58dd5e3d2c23bbcec36458559f1", "_revisions":db.Revisions{"ids":[]string{"98b0e58dd5e3d2c23bbcec36458559f1", "f8fd91d4024e824690d5dd4f20ffbf1c"}, "start":2}} Diff: --- Expected +++ Actual @@ -1,3 +1,4 @@ -(db.Body) (len=5) { +(db.Body) (len=4) { (string) (len=3) "_id": (string) (len=4) "doc1", + (string) (len=8) "_removed": (bool) true, (string) (len=4) "_rev": (string) (len=34) "2-98b0e58dd5e3d2c23bbcec36458559f1", @@ -9,7 +10,3 @@ (string) (len=5) "start": (int) 2 - }, - (string) (len=8) "channels": ([]string) (len=1) { - (string) (len=3) "ABC" - }, - (string) (len=2) "k2": (string) (len=2) "v2" + } } Test: TestGetRemovalMultiChannel ---
test (windows): blip_api_crud_test.go#L1106
blip_api_crud_test.go:1106: Error Trace: D:/a/sync_gateway/sync_gateway/rest/blip_api_crud_test.go:1106 C:/Users/runneradmin/go/pkg/mod/github.com/couchbase/[email protected]/context.go:304 C:/Users/runneradmin/go/pkg/mod/github.com/couchbase/[email protected]/receiver.go:276 C:/Users/runneradmin/go/pkg/mod/github.com/couchbase/[email protected]/message.go:381 C:/hostedtoolcache/windows/go/1.21.8/x64/src/runtime/asm_amd64.s:1650 Error: Should be false Test: TestConcurrentRefreshUser
test (windows)
Process completed with exit code 1.
test (ubuntu)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: guyarb/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test-race
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: guyarb/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test (macos)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: guyarb/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test (windows)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: guyarb/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.