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

CBG-3764 update base implementation of XDCR in rosmar #6746

Closed
wants to merge 349 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
349 commits
Select commit Hold shift + click to select a range
b9a8ea2
CBG-3315: Add /_ping healthcheck API (#6375)
bbrks Aug 23, 2023
d1898fd
CBG-3273: Fix revocation feed loop (#6378)
mohammed-madi Aug 23, 2023
18f7420
Avoid a data race on writing db.PurgeInterval during test (#6363)
torcolvin Aug 23, 2023
36cf9a8
CBG-2455 fix race detector issue (#6380)
torcolvin Aug 23, 2023
a3f83b5
CBG-3316: Silence metrics requests (#6376)
bbrks Aug 24, 2023
c585e48
CBG-3288: Pass Context into NewSyncRunner for logging (#6382)
bbrks Aug 24, 2023
a45339d
CBG-3171: Fix rev cache multi node inconsistency (#6369)
mohammed-madi Aug 24, 2023
5288dbf
CBG-3324: Add startup cnf logging to DefaultDbConfig (#6381)
mohammed-madi Aug 24, 2023
aff7f54
CBG-3289 handle walrus databases as in memory rosmar databases (#6379)
torcolvin Aug 24, 2023
3b3d1a7
CBG-3288-import: Pass context to import filter function (#6383)
bbrks Aug 24, 2023
db4b182
CBG-3274: Pass context into Query/channel cache/Changes (#6384)
bbrks Aug 28, 2023
9c7cad0
DOC-11444 fix key name and add defaults for log rotation (#6385)
torcolvin Aug 29, 2023
ca81fa7
CBG-3283 Restore 3.0.x read buffer size for cbgt (#6386)
adamcfraser Aug 30, 2023
2689cf8
Make SubdocXattrStore work with Rosmar collections (#6374)
snej Aug 31, 2023
9290abe
Create 3.0.8.2 branch (#6389)
torcolvin Sep 6, 2023
246fde2
CBG-3352 remove invalid entries from revcache (#6390)
torcolvin Sep 6, 2023
8f49e36
Bump golang.org/x/crypto to latest version (#6397)
bbrks Sep 7, 2023
4c23519
CBG-3357: Change log levels for StartOnlineProcesses (#6388)
bbrks Sep 7, 2023
cf74d2e
CBG-3382: Catch invalid state transition in asyncDatabaseOnline (#6392)
bbrks Sep 7, 2023
94071f8
CBG-3352 switch Invalidate to Remove (#6399)
torcolvin Sep 7, 2023
132ec4e
CBG-3381 update rosmar to avoid data race (#6400)
torcolvin Sep 7, 2023
2bde1ea
CBG-3332 increase log information for documents not imported (#6391)
torcolvin Sep 7, 2023
c660b5a
CBG-3377: Set up builds for 3.1.2 (#6393)
bbrks Sep 8, 2023
3f1c066
CBG-3393: Bump to latest Go version (1.21.1) (#6407)
bbrks Sep 11, 2023
a5b25c3
CBG-3285 fix DefaultDbConfig CompactIntervalDays (#6409)
torcolvin Sep 11, 2023
b35e52e
CBG-3292: Handling for corrupt db config (#6377)
gregns1 Sep 11, 2023
e823439
Be more specific about errors during invalid response for BLIP GetAtt…
bbrks Sep 12, 2023
a76bb57
Update XattrStore, remove subdocXattrStore (#6412)
adamcfraser Sep 13, 2023
14c0eb9
Warn -> Debug for 'gap in revision list' log (#6416)
bbrks Sep 13, 2023
2da8f9c
CBG-3379 add missing context logging (#6408)
torcolvin Sep 13, 2023
b32b61c
add missing fix from a5b25c3bf03113376eb86eea55ebfa38fc824d3d (#6418)
torcolvin Sep 15, 2023
f761691
CBG-3277 add a stat for mismatched bucket names in dbconfigs (#6410)
torcolvin Sep 15, 2023
885ce22
Fix for incorrect value being logged for attempst to open dcp stream …
gregns1 Sep 18, 2023
741ee31
Proposal: Bump all dependencies to latest versions (#6398)
bbrks Sep 18, 2023
6fc4fe4
CBG-3385: link up the reset resync code to the api for a user to use …
gregns1 Sep 19, 2023
b8fcf9e
Lower test logging verbosity for non-flaky tests (#6433)
bbrks Sep 19, 2023
99f4522
Lower rosmar logging verbosity and remap rosmar's info to sg debug (#…
bbrks Sep 19, 2023
39b4659
Reenable TestMultiCollectionDCP and fix (#6431)
bbrks Sep 19, 2023
633580b
CBG-3379 add contexts for logging in interfaces that are supplied by …
torcolvin Sep 19, 2023
10882cd
Log with keyspace for viewsAndGSIBucketInit (#6435)
bbrks Sep 20, 2023
b97d25d
CBG-3196: Allow implicit to explicit _default scope config change (#6…
bbrks Sep 21, 2023
f098de5
CBG-3429: Move some log lines from KeyDCP to other keys (#6440)
mohammed-madi Sep 21, 2023
bd6c27f
CBG-3378 Switch some Debug statements to Info (#6423)
torcolvin Sep 21, 2023
d31af1f
CBG-3164: fix for flake where grant for channel was after the current…
gregns1 Sep 21, 2023
25fc3c5
CBG-3291 Define macro expansion in MutateInOpts (#6419)
adamcfraser Sep 21, 2023
e9b9618
CBG-3238 perform a length check on raw bytes (#6438)
torcolvin Sep 21, 2023
91a1cb3
CBG-3276 sort buckets deterministically (#6446)
torcolvin Sep 22, 2023
0b90e55
Add dependabot module updates (#6444)
bbrks Sep 22, 2023
4194409
Update dependabot.yml
bbrks Sep 22, 2023
9ffcf8b
Update dependabot.yml
bbrks Sep 22, 2023
e436c73
Update dependabot.yml
bbrks Sep 22, 2023
14d2987
Redo module updates (#6453)
bbrks Sep 22, 2023
ac740e8
CBG-3394 don't panic if user is deleted with active blip replication …
torcolvin Sep 22, 2023
9384a7b
Additional defensive checks in UpdateCalculatedStats (#6457)
adamcfraser Sep 25, 2023
626b62e
Switch test from go-couchbase to gocbcore cbgt (#6464)
torcolvin Sep 25, 2023
6bf6190
fix assertion mixup after using testify assertions (#6467)
torcolvin Sep 26, 2023
4987aa6
Make sure user doc is picked up first (#6466)
torcolvin Sep 26, 2023
408b47e
CBG-2579: TestReplicatorCheckpointOnStop test fix (#6460)
gregns1 Sep 26, 2023
1a2b934
CBG-3386 turn off failOnRollback for resync (#6463)
torcolvin Sep 26, 2023
f7b2ac8
Allow tests to work with couchbases:// (#6470)
torcolvin Sep 26, 2023
b025adf
CBG-3399: TestUserXattrDeleteWithRevCache flake fix (#6451)
gregns1 Sep 27, 2023
d0c71ac
CBG-3453: Per-db log settings should take precedence over bootstrap (…
bbrks Sep 27, 2023
621641f
CBG-2579: TestReplicatorCheckpointOnStop flake (#6474)
gregns1 Sep 27, 2023
ff0b88f
CBG-3395: pick up gocbcore patch for boostrap against non KV node (#6…
gregns1 Sep 28, 2023
1d5b909
CBG-3459: change import partitions on test to stop flake (#6481)
gregns1 Sep 29, 2023
ff3e1a0
CBG-3466 don't leak CBS server onto disk (#6483)
torcolvin Sep 29, 2023
3b6787a
CBG-3455 run tests without import feed (#6478)
torcolvin Sep 29, 2023
8a59a82
CBG-3449 Ensure metadata persistence on rollback (#6471)
adamcfraser Oct 2, 2023
c028acc
CBG-3353: Handle nil buckets in db config (#6482)
bbrks Oct 2, 2023
2a9ed02
Remove go couchbase (#6484)
torcolvin Oct 3, 2023
89e0d26
CBG-3448: alter WriteUpdateWithXattrFunc definitions in sync gateway …
gregns1 Oct 3, 2023
8549699
CBG-2997: Make `RedactableError` compatible with `%w` (#6489)
bbrks Oct 3, 2023
27aff8f
Restrict yamllint action to OpenAPI path (#6492)
bbrks Oct 4, 2023
3ec4e7a
CBG-3464 Delete legacy config when migrated config already exists (#6…
adamcfraser Oct 4, 2023
12f484d
CBG-3461 Fix handling for duplicate legacy and non-legacy database co…
adamcfraser Oct 4, 2023
ea958eb
Replace `%w` with `%s` inside log functions. Only `fmt.Errorf` suppor…
bbrks Oct 5, 2023
ce51e97
CBG-3507: Add unsupported.allow_dbconfig_env_vars (#6496)
bbrks Oct 5, 2023
7908d3c
CBG-3445 prevent N-1 downgrades by stamping db version into gateway r…
torcolvin Oct 5, 2023
cf8c3a4
CBG-3467 add verbose mode for _all_dbs (#6493)
torcolvin Oct 5, 2023
d183dbe
Remove walrus restriction from tests that now work with rosmar (#6495)
torcolvin Oct 6, 2023
f0aff4e
Avoid Groovy secret env var interpolation (#6505)
bbrks Oct 9, 2023
9cc10c8
Skip test under integration (#6506)
torcolvin Oct 9, 2023
e1bf484
Bump version of CBS for MasterIntegration pipeline (#6510)
torcolvin Oct 9, 2023
e3bb61d
Skip tests that only work under rosmar (#6509)
torcolvin Oct 9, 2023
e5a3b53
CBG-3518: Conditional logging for DocChanged based on collection ID (…
bbrks Oct 10, 2023
7816dc7
CBG-3464 Update TestMigratev30PersistentConfigCollision based on chan…
adamcfraser Oct 10, 2023
2e5a4cb
CBG-3520 make /keyspace/_config/import_filter work (#6512)
torcolvin Oct 11, 2023
a142ec8
Fix data race in AssertLogContains and functional race in TestDocChan…
bbrks Oct 11, 2023
53fafa8
Bump Go (1.21.1 -> 1.21.3) (#6516)
bbrks Oct 11, 2023
d2d9387
CBG-3512 skip known flaky test (#6521)
torcolvin Oct 13, 2023
78dbfe9
Remove unnessesary debug (#6520)
bbrks Oct 13, 2023
70b1825
CBG-3518 flush the log buffers collateBuffer is enabled (#6523)
torcolvin Oct 13, 2023
a85c1da
CBG-3522 add collection to import feed logic (#6518)
torcolvin Oct 13, 2023
6537f43
Upgrade golang.org/x/net and dependencies for https://github.com/advi…
torcolvin Oct 13, 2023
e768d62
CBG-3504 upgrade to cbgt v1.3.7 (#6525)
torcolvin Oct 13, 2023
03794e0
CBG-3384 Avoid triggering unnecessary resync when working with defaul…
adamcfraser Oct 13, 2023
0e8dd17
CBG-3533 remove implicit default of http console logging (#6530)
torcolvin Oct 13, 2023
ae41dc8
Bump go-blip (uptake EOF error checking) (#6537)
bbrks Oct 17, 2023
d41b0d2
CBG-3549 Move retry handling out of BucketSpec (#6538)
adamcfraser Oct 18, 2023
ee61916
CBG-3498 create function NewRestTesterPersistentConfig (#6511)
torcolvin Oct 18, 2023
2a2d835
Fixes test without xattrs (#6536)
torcolvin Oct 19, 2023
3472260
Skip import test without xattrs, fixup for 2a2d83 (#6542)
torcolvin Oct 19, 2023
a687eb1
CBG-3268 Create DocVersion to replace RevID in test to make HLV aware…
torcolvin Oct 19, 2023
5ef676e
CBG-3553 add bucket.Close() when opening the database (#6546)
torcolvin Oct 23, 2023
20e5e47
CBG-3516 Implement nextSequenceGreaterThan to reduce incr and unused …
adamcfraser Oct 23, 2023
61a63e3
CBG-3268 modify attachment_test.go to remove rev (#6543)
torcolvin Oct 23, 2023
343f8d4
makes golangci-lint more strict (#6507)
torcolvin Oct 24, 2023
a599119
CBG-3559: Inherited channels from roles are not checked when running …
gregns1 Oct 24, 2023
2e1590a
Skip all import tests when running without xattrs (#6545)
torcolvin Oct 24, 2023
acc14a3
Obey db scoped console logging when evaluating whether to log (#6553)
torcolvin Oct 25, 2023
ca0846c
Use newer version of golanci-lint to allow using standard library sli…
torcolvin Oct 25, 2023
aa4fcc1
changeCache updateStats only needs a read lock (#6558)
bbrks Oct 26, 2023
8b286bb
Wait for db offline before resyncing (#6559)
bbrks Oct 26, 2023
9ea438d
CBG-3268 replace WaitForRev with WaitForVersion (#6554)
torcolvin Oct 27, 2023
b8ba7f1
CBG-3268 remove RespRevID and prepare for HLV aware testing (#6560)
torcolvin Oct 30, 2023
69ea24b
Skip TestAssignSequenceReleaseLoop when running without xattrs (#6561)
bbrks Oct 30, 2023
1bef056
CBG-3577 Uptake cbgt fix for MB-59249 (#6562)
adamcfraser Oct 30, 2023
e8f9645
Refactor: Rename ComparableVersion to ComparableBuildVersion (#6566)
bbrks Nov 6, 2023
a9033a3
CBG-2979 remove unused fields and docs for GET /db/ (#6565)
torcolvin Nov 6, 2023
9daa699
CBG-1966 enable staticcheck (#6556)
torcolvin Nov 6, 2023
2fe011c
CBG-3585 log bucket and groupID during config search (#6564)
torcolvin Nov 7, 2023
4508380
CBG-3498 make test pass without named collections (#6568)
torcolvin Nov 8, 2023
6323ac9
Bump Go version to 1.21.4 (#6569)
bbrks Nov 8, 2023
a398881
CBG-3576: BlipTestClient support for HLV and rev tree modes (#6567)
gregns1 Nov 10, 2023
8fd554e
Revert "CBG-3576: BlipTestClient support for HLV and rev tree modes (…
gregns1 Nov 13, 2023
1db1763
put lint timeout in config (#6576)
torcolvin Nov 14, 2023
488fae4
CBG-3576: changes to BlipTesterClient to to run in VV and non VV prot…
gregns1 Nov 14, 2023
d75a09b
CBG-3589: Add 4.0.0 build (#6577)
bbrks Nov 15, 2023
5b97466
Ignore planPIndexes directory from cbgt (MB-59477) (#6580)
bbrks Nov 16, 2023
ea7eae7
Correctly put timeout in config, fixes #6576 (#6581)
torcolvin Nov 16, 2023
e287e05
CBG-3271 remove persistent rosmar buckets (#6570)
torcolvin Nov 17, 2023
3cec600
Refactor/Prereq: Numeric CBMobile BLIP Subprotocol version to allow f…
bbrks Nov 24, 2023
ad74e7e
CBG-3253: Add CBMobileReplicationV4 (#6583)
bbrks Nov 24, 2023
4c00dba
CBG-3615 escape sequence keyword in N1QL (#6586)
torcolvin Nov 29, 2023
5c90fa7
CBG-3271 update rosmar to include changes for expiry & tombstone CAS …
torcolvin Nov 29, 2023
47cbbc8
Test fix: TestImportFilterLogging improve assertions (#6589)
bbrks Nov 29, 2023
69adee0
CBG-3634: Fully escape JSON strings when using InjectJSONProperties (…
bbrks Nov 29, 2023
a6fe6ba
Revert "CBG-3271 update rosmar to include changes for expiry & tombst…
bbrks Nov 29, 2023
4a1e3fd
Update rosmar for CBG-3392/CBG-3291 (#6593)
torcolvin Nov 29, 2023
91db64f
CBG-3637: Stat definitions use a named object for each stat definitio…
IsaacLambat Nov 30, 2023
1cf9ac4
Make sure GetDatabase always refers to 1 database (#6594)
torcolvin Nov 30, 2023
349c93c
CBG-3271 Implement bootstrap connection for rosmar (#6584)
torcolvin Nov 30, 2023
db307f1
CBG-3616 add node cpu stat (#6595)
torcolvin Nov 30, 2023
d6f0006
Update rosmar to latest for https://github.com/couchbaselabs/rosmar/p…
torcolvin Nov 30, 2023
d6ff0a4
Fix a race condition in GetDatabase in adding Context (#6598)
torcolvin Nov 30, 2023
0024100
CBG-3612 Allow import to override existing expiry when set by Sync Fu…
torcolvin Dec 1, 2023
4230375
Create release/3.1.3 (#6599)
torcolvin Dec 1, 2023
ad26204
CBG-3609 Uptake gocbcore fix for verbose debug logging (#6604)
adamcfraser Dec 11, 2023
053f145
CBG-3584 Uptake cbgt fix for file system writes (#6606)
adamcfraser Dec 11, 2023
51d1f81
Bump 3.1.3 builds to use Go 1.21.4 (#6607)
bbrks Dec 11, 2023
d86b47e
CBG-3684 remove validation for max_age on a database level (#6608)
torcolvin Dec 11, 2023
fc3b741
CBG-3652 check Origin header on websocket (#6610)
torcolvin Dec 12, 2023
de85542
CBG-3642 make sure channelCache is closed correctly in case of DCP fa…
torcolvin Dec 13, 2023
e6fd3d3
VULN-3938 update golang.org/x/crypto to v0.16.0 (#6613)
torcolvin Dec 15, 2023
defab57
CBG-3513: flaky test fix for TestCorruptDbConfigHandling (#6616)
gregns1 Dec 15, 2023
dad81d0
standardize error reporting from persistent and non persistent config…
torcolvin Dec 19, 2023
74c5fea
Update golang.org/x/crypto to v0.17.0 (#6618)
torcolvin Dec 19, 2023
b3d3dfd
Remove logging due to potential Start/Stop race condition (#6620)
torcolvin Dec 19, 2023
66c0c2e
CBD-5711: Update 'build' SHA in 3.2.0 manifest (#6617)
ceejatec Dec 19, 2023
064ccb6
Correct NumReplicationsActive Prometheus stat description (#6621)
bbrks Dec 20, 2023
df5b764
CBG-3627 use bucket level HLC for cas in rosmar (#6623)
torcolvin Dec 20, 2023
0b60724
make resync tests run / delete irrelevant ones (#6619)
torcolvin Dec 21, 2023
bea26ef
Show documents that might be around after N1QL emptying fails (#6624)
torcolvin Jan 2, 2024
03fc9fc
CBG-3696: Allow user_xattr_key to be removed with an empty-string POS…
bbrks Jan 4, 2024
c57e4d0
Add general Coverage Jenkins plugin (allows pushing coverage results …
bbrks Jan 5, 2024
025d0ce
Add discoverGitReferenceBuild to infer base branch for PR coverage di…
bbrks Jan 5, 2024
8622d99
CBG_3645 Prereq: don't override http.DefaultClient (#6631)
torcolvin Jan 8, 2024
bd7e4f6
CBG-3638 make BootstrapStartupConfigForTest parallel safe (#6622)
torcolvin Jan 8, 2024
9ac976b
CBG-3701 lock on RegisterImportPindexImpl (#6634)
torcolvin Jan 9, 2024
ac8c7ae
Fix mispellings and enable misspell linter (#6635)
torcolvin Jan 10, 2024
2e37dac
CBG-3700 fix race conditions in server setup (#6633)
torcolvin Jan 10, 2024
d3cda06
fetchAndLoadDatabase wasn't acquiring the lock before falling into _f…
bbrks Jan 11, 2024
444f9b1
CBG-3697 make sure on demand import errors show up as 404 (#6637)
torcolvin Jan 11, 2024
57f5801
CBG-3713 skip test temporarily that will fail under -race and rosmar …
torcolvin Jan 12, 2024
be6f58c
CBG-3695 implement Couchbase Server bucket to bucket XDCR (#6628)
torcolvin Jan 12, 2024
49f66ef
Linting: Add ruleguard rule for logging errors with `%w` (suggest `%s…
bbrks Jan 17, 2024
76fd8bf
Use rt.Run so testing.T doesn't panic (#6644)
torcolvin Jan 17, 2024
a8c34c3
CBG-3645: Shuffle tests (#6632)
bbrks Jan 17, 2024
df6bbda
lint: gocritic: Enable ruleguard for non-strict lint config (#6645)
bbrks Jan 17, 2024
87cca79
CBG-3686 add idle kv ops stat (#6642)
torcolvin Jan 17, 2024
d00d704
implement body.Close checker (#6646)
torcolvin Jan 19, 2024
05a8a2c
CBG-3697 skip test without xattrs (#6649)
torcolvin Jan 19, 2024
9cc37dd
CBG-3704 add basic Couchbase Server stats for XDCR (#6643)
torcolvin Jan 22, 2024
c0f8532
Allow go mod tidy (#6652)
torcolvin Jan 24, 2024
b0114a4
CBG-3737 setup release/3.1.3.1 branch (#6653)
torcolvin Jan 26, 2024
11d2f09
Run CI like master for long running beryllium branch (#6656)
torcolvin Jan 26, 2024
772c33c
CBG-3665: Diagnostic API framework/routing (#6639)
mohammed-madi Jan 26, 2024
2226e72
CBG-3724 ensure import rollback works correctly (#6657)
torcolvin Jan 30, 2024
0f7cfd7
CBG-3739: change incorrect log key for log message in cache code (#6662)
gregns1 Feb 2, 2024
c22befb
Include BLIP context ID in _blipsync response with X-Correlation-ID… …
bbrks Feb 2, 2024
f315973
CBG-3591 stream request body from file (#6665)
torcolvin Feb 5, 2024
6091f81
CBG-3763: setup 3.1.4 builds (#6666)
gregns1 Feb 6, 2024
b5cabc0
Update to non deprecated actions to avoid use of node16. (#6664)
torcolvin Feb 6, 2024
8c89d1d
Put UserXattrStore into DataStore to avoid need to typecast (#6663)
torcolvin Feb 6, 2024
a7de2cd
Include trace logs with sgcollect_info (#6674)
bbrks Feb 6, 2024
dd1893a
CBG-3771 Update gocb to 2.7.1 (#6675)
torcolvin Feb 9, 2024
03a1274
Speed up `auth` package tests by setting lower test-only bcrypt cost …
bbrks Feb 13, 2024
335cfa2
CI: Add redoc.ly OpenAPI PR preview links (#6683)
bbrks Feb 14, 2024
9b78255
CI: Move OpenAPI commenting action to own workflow only for PRs (#6684)
bbrks Feb 15, 2024
4b7f45a
test cleanup in Collection tests (#6685)
torcolvin Feb 15, 2024
71fb19d
CBG-3741: Throttle concurrent revs per-replication (#6660)
bbrks Feb 15, 2024
db9d489
CBG-3641: Ignore read-only fields if values unchanged in User API (#6…
gregns1 Feb 15, 2024
6cd38f1
CBG-3688 make sure kv_pool_size is overriden correctly for DCP (#6680)
torcolvin Feb 15, 2024
16d46c8
OpenAPI: Update redocly cli in GH Actions and fix deprecated `lint` s…
bbrks Feb 16, 2024
6127bd9
CBG-3610: Fix regression on `PUT /_user/...` endpoint when sending `n…
bbrks Feb 16, 2024
00c6f8e
Add MustJSONMarshal helper function (#6693)
torcolvin Feb 16, 2024
5d1ab1d
Test fix: Make addChannelsToPrincipal test helper set nil channels (#…
bbrks Feb 16, 2024
05aab48
CBG-3741 test fix: Cherry-pick 3.1.4-fix to slow down rosmar tests (#…
bbrks Feb 20, 2024
1b14908
Update to go-1.21.7 (#6697)
torcolvin Feb 21, 2024
047c0c3
Update golang.org/x/crypto to 0.19.0 (#6698)
torcolvin Feb 21, 2024
346b785
Add new targets for generating internal apis (#6699)
torcolvin Feb 22, 2024
70a591b
CBG-3727: Diagnostic API: Get all doc channels (#6701)
mohammed-madi Feb 27, 2024
b0761bc
CBG-3463: stop error logs filling up with db under maintenance messag…
gregns1 Feb 29, 2024
76bb0a9
CBG-3237: hook CompactionTombstoneStartTime up (#6705)
gregns1 Feb 29, 2024
dbf6cdb
CBG-3279: Reduce compaction error logging volume (#6706)
gregns1 Feb 29, 2024
ef50569
CBG-3795: Deprecate enable_star_channel config option (#6708)
gregns1 Feb 29, 2024
4d3dfdc
CBG-3702: setup 7.6.1 buckets for integration tests (#6704)
gregns1 Mar 4, 2024
5bfdb17
CBG-3791: change getAuthScopeHandleCreateDB method to not expand envi…
gregns1 Mar 5, 2024
172ac73
CBG-3029 use matching regex replacement for go and python code (#6710)
torcolvin Mar 5, 2024
fe58465
CBG-3742: Allow registry rollbacks based on db config doc rollbacks (…
bbrks Mar 5, 2024
8f1f504
Bump Go to 1.21.8 (#6717)
bbrks Mar 6, 2024
dd3f092
CBG-3813 add insertion strings to capture stdout/stderr (#6719)
torcolvin Mar 7, 2024
f604e21
Test cleanup: Equal(len()) -> Len() (#6712)
bbrks Mar 7, 2024
8acc5cd
CBG-3745: Bail out of config updates when the registry write fails af…
bbrks Mar 8, 2024
67c3ab7
VULN-4422 update golang/x/crypto (#6725)
torcolvin Mar 13, 2024
0623c19
CBG-3278: move serverless stats behind serverless flag (#6711)
gregns1 Mar 13, 2024
40a3650
CBG-3820: drop logging volume for pending insertions and doc not foun…
gregns1 Mar 15, 2024
95722e3
Detect ghcr.io as a non dockerhub source (#6727)
torcolvin Mar 15, 2024
f9f6cc0
make test work with tls and not tls (#6726)
torcolvin Mar 15, 2024
d6c590f
Show error output (#6729)
torcolvin Mar 15, 2024
e3aed06
Skip failing tests on Couchbase 7.6 (#6731)
torcolvin Mar 15, 2024
57caa78
CBG-3804: Reset 3.2, make master 3.3 and rename 4.0 branch (#6732)
bbrks Mar 15, 2024
07367d2
Update dependabot.yml to pull from private registry (#6733)
torcolvin Mar 20, 2024
e2785a4
Bump github.com/gorilla/mux from 1.8.0 to 1.8.1 (#6736)
dependabot[bot] Mar 25, 2024
e243c5c
Bump golang.org/x/oauth2 from 0.14.0 to 0.18.0 (#6735)
dependabot[bot] Mar 25, 2024
ab3df1d
Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 (#6742)
dependabot[bot] Mar 25, 2024
8b976f5
CBG-3764 create multi-xattr subdoc APIs (#6739)
torcolvin Mar 27, 2024
3e3a268
CBG-3764 update base implementation of XDCR in rosmar
torcolvin Mar 28, 2024
cac16fb
CBG-3857 Mark database state of starting more clearly (#6743)
torcolvin Mar 28, 2024
9e53aac
refactor
torcolvin Apr 1, 2024
58a0a91
update go.mod
torcolvin Apr 1, 2024
5110a10
Make sure the tests are collections aware
torcolvin Apr 1, 2024
2344e0e
Fix test
torcolvin Apr 1, 2024
59c3286
make tests pass with 6.6 (#6751)
torcolvin Apr 2, 2024
ceef9cf
Bump github.com/elastic/gosigar from 0.14.2 to 0.14.3 (#6749)
dependabot[bot] Apr 2, 2024
405aa8e
make blip tests fail with stack traces using testify (#6748)
torcolvin Apr 2, 2024
4316e75
support golangci-lint 1.57.2 (#6754)
torcolvin Apr 3, 2024
a9811cd
Combine MutationStore2, Collection, DataStoreName into DataStore (#6752)
torcolvin Apr 4, 2024
aa7d0ab
Merge remote-tracking branch 'origin/master' into CBG-3764
torcolvin Apr 5, 2024
20840ba
update go.mod
torcolvin Apr 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
The Sync Gateway issue tracker is reserved for bug reports and enhancement
The Sync Gateway issue tracker is reserved for bug reports and enhancement
requests. For general questions, please use the Couchbase forums:
https://forums.couchbase.com/c/mobile/sync-gateway. Thank you!

### Sync Gateway version
Version information is written on startup to the Sync Gateway log, or can
be obtained by accessing the root endpoint (`/`) on the Sync Gateway Admin REST API.
Version information is written on startup to the Sync Gateway log, or can
be obtained by accessing the root endpoint (`/`) on the Sync Gateway Admin REST API.

### Operating system
The operating system you're running Sync Gateway on.
Expand All @@ -27,6 +27,6 @@ What should have happened?
What actually happened?

### Steps to reproduce
1.
2.
3.
1.
2.
3.
22 changes: 22 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2023-Present Couchbase, Inc.
#
# Use of this software is governed by the Business Source License included in
# the file licenses/BSL-Couchbase.txt. As of the Change Date specified in that
# file, in accordance with the Business Source License, use of this software
# will be governed by the Apache License, Version 2.0, included in the file
# licenses/APL2.txt.

version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
registries:
- gh-private
registries:
gh-private:
type: git
url: https://github.com
username: x-access-token
password: ${{secrets.GH_PERSONAL_ACCESS_TOKEN_CBROBOTSG}}
70 changes: 46 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,48 +13,52 @@ on:
branches:
- 'master'
- 'release/*'
- 'beryllium'
- 'CBG*'
- 'ci-*'
pull_request:
branches:
- 'master'
- 'release/*'
- 'beryllium'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.20.3
- uses: actions/checkout@v3
go-version: 1.21.8
- name: go-build
run: go build "./..."

addlicense:
name: addlicense
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.20.3
go-version: 1.21.8
- run: go install github.com/google/addlicense@latest
- uses: actions/checkout@v3
- run: addlicense -check -f licenses/addlicense.tmpl .

golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.20.3
- uses: actions/checkout@v3
go-version: 1.21.8
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: v1.52.0
args: --config=.golangci-strict.yml --timeout=3m
version: v1.57.2
args: --config=.golangci-strict.yml

test:
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -72,18 +76,18 @@ jobs:
MallocNanoZone: 0
name: test (${{ matrix.name }})
steps:
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.20.3
- uses: actions/checkout@v3
go-version: 1.21.8
- name: Build
run: go build -v "./..."
- name: Run Tests
run: go test -timeout=30m -count=1 -json -v "./..." | tee test.json | jq -s -jr 'sort_by(.Package,.Time) | .[].Output | select (. != null )'
run: go test -shuffle=on -timeout=30m -count=1 -json -v "./..." | tee test.json | jq -s -jr 'sort_by(.Package,.Time) | .[].Output | select (. != null )'
shell: bash
- name: Annotate Failures
if: always()
uses: guyarb/golang-test-annotations@v0.6.0
uses: guyarb/golang-test-annotations@v0.7.0
with:
test-results: test.json

Expand All @@ -92,34 +96,52 @@ jobs:
env:
GOPRIVATE: github.com/couchbaselabs
steps:
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.20.3
- uses: actions/checkout@v3
go-version: 1.21.8
- name: Run Tests
run: go test -race -timeout=30m -count=1 -json -v "./..." | tee test.json | jq -s -jr 'sort_by(.Package,.Time) | .[].Output | select (. != null )'
run: go test -race -shuffle=on -timeout=30m -count=1 -json -v "./..." | tee test.json | jq -s -jr 'sort_by(.Package,.Time) | .[].Output | select (. != null )'
shell: bash
- name: Annotate Failures
if: always()
uses: guyarb/[email protected]
with:
test-results: test.json

test-sgcollect:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-github-actions-annotate-failures
pip install pytest pytest-github-actions-annotate-failures pytest-httpserver trustme
- name: Run test
run: |
pytest

test-stats-definition-exporter:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21.8
- name: Build
run: go build -v "./tools/stats-definition-exporter"
- name: Run Tests
run: go test -shuffle=on -timeout=5m -count=1 -json -v "./tools/stats-definition-exporter" | tee test.json | jq -s -jr 'sort_by(.Package,.Time) | .[].Output | select (. != null )'
shell: bash
43 changes: 43 additions & 0 deletions .github/workflows/openapi-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Copyright 2024-Present Couchbase, Inc.
#
# Use of this software is governed by the Business Source License included in
# the file licenses/BSL-Couchbase.txt. As of the Change Date specified in that
# file, in accordance with the Business Source License, use of this software
# will be governed by the Apache License, Version 2.0, included in the file
# licenses/APL2.txt.

name: openapi-pr

on:
pull_request:
# Only run when we change an API spec
paths:
- 'docs/api/**'
branches:
- 'master'
- 'release/*'
- 'beryllium'

jobs:
redocly_preview_links:
runs-on: ubuntu-latest
steps:
- name: Find Comment
uses: peter-evans/find-comment@v3
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: Redocly previews
- name: Create or update comment
uses: peter-evans/create-or-update-comment@v4
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: |
## Redocly previews
- [Admin API](https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/couchbase/sync_gateway/${{ github.event.pull_request.head.sha }}/docs/api/admin.yaml)
- [Public API](https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/couchbase/sync_gateway/${{ github.event.pull_request.head.sha }}/docs/api/public.yaml)
- [Metric API](https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/couchbase/sync_gateway/${{ github.event.pull_request.head.sha }}/docs/api/metric.yaml)
- [Diagnostic API](https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/couchbase/sync_gateway/${{ github.event.pull_request.head.sha }}/docs/api/diagnostic.yaml)
edit-mode: replace
17 changes: 14 additions & 3 deletions .github/workflows/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ on:
# Only run when we change an API spec
paths:
- 'docs/api/**'
branches:
branches:
- 'master'
- 'release/*'
- 'beryllium'
- 'CBG*'
- 'ci-*'
- 'api-ci-*'
Expand All @@ -26,16 +27,26 @@ on:
branches:
- 'master'
- 'release/*'
- 'beryllium'

jobs:
api_validation:
runs-on: ubuntu-latest
name: OpenAPI Validation
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: r7kamura/redocly-problem-matchers@v1
- uses: mhiew/redoc-lint-github-action@v3
- uses: mhiew/redoc-lint-github-action@v4
with:
args: '--format stylish'
env:
NO_COLOR: '1'

yamllint:
name: 'yamllint'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: karancode/yamllint-github-action@master
with:
yamllint_file_or_dir: 'docs/api'
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ verbose*.xml
sync_gateway
*.pb.gz
__pycache__

### Couchbase Plugin ###
.cbcache/

planPIndexes/
47 changes: 35 additions & 12 deletions .golangci-strict.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,31 @@

# config file for golangci-lint

run:
timeout: 3m

linters:
enable:
#- bodyclose # checks whether HTTP response body is closed successfully
- bodyclose # checks whether HTTP response body is closed successfully
#- dupl # Tool for code clone detection
- errcheck # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases
#- goconst # Finds repeated strings that could be replaced by a constant
#- gocritic # The most opinionated Go source code linter
- gocritic # The most opinionated Go source code linter
- goimports # Goimports does everything that gofmt does. Additionally it checks unused imports
#- goprintffuncname # Checks that printf-like functions are named with `f` at the end
#- gosec # (gas) Inspects source code for security problems
#- gosimple # (megacheck) Linter for Go source code that specializes in simplifying a code
- govet # (vet, vetshadow) Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string
- ineffassign # Detects when assignments to existing variables are not used
- misspell # Finds commonly misspelled English words in comments
#- nakedret # Finds naked returns in functions greater than a specified function length
#- prealloc # Finds slice declarations that could potentially be preallocated
#- revive # Golint differs from gofmt. Gofmt reformats Go source code, whereas golint prints out style mistakes
#- staticcheck # (megacheck) Staticcheck is a go vet on steroids, applying a ton of static analysis checks
#- structcheck # Finds unused struct fields
- staticcheck # (megacheck) Staticcheck is a go vet on steroids, applying a ton of static analysis checks
- typecheck # Like the front-end of a Go compiler, parses and type-checks Go code
#- unconvert # Remove unnecessary type conversions
- unconvert # Remove unnecessary type conversions
#- unparam # Reports unused function parameters
#- unused # (megacheck) Checks Go code for unused constants, variables, functions and types
- unused # (megacheck) Checks Go code for unused constants, variables, functions and types
disable:
- asciicheck # Simple linter to check that your code does not contain non-ASCII identifiers
- depguard # Go linter that checks if package imports are in a list of acceptable packages
Expand All @@ -47,31 +50,25 @@ linters:
- gomodguard # Allow and block list linter for direct Go module dependencies.
- interfacer # Linter that suggests narrower interface types
- lll # Reports long lines
- misspell # Finds commonly misspelled English words in comments
- nestif # Reports deeply nested if statements
- nolintlint # Reports ill-formed or insufficient nolint directives
- rowserrcheck # checks whether Err of rows is checked successfully
- scopelint # Scopelint checks for unpinned variables in go programs
- stylecheck # Stylecheck is a replacement for golint
- testpackage # linter that makes you use a separate _test package
- unused # (megacheck) Checks Go code for unused constants, variables, functions and types
- whitespace # Tool for detection of leading and trailing whitespace
- wsl # Whitespace Linter - Forces you to use empty lines!
# Once fixed, should enable
- bodyclose # checks whether HTTP response body is closed successfully
- deadcode # Finds unused code
- dupl # Tool for code clone detection
- goconst # Finds repeated strings that could be replaced by a constant
- gocritic # The most opinionated Go source code linter
- goprintffuncname # Checks that printf-like functions are named with `f` at the end
- gosec # (gas) Inspects source code for security problems
- gosimple # (megacheck) Linter for Go source code that specializes in simplifying a code
- nakedret # Finds naked returns in functions greater than a specified function length
- prealloc # Finds slice declarations that could potentially be preallocated
- revive # Golint differs from gofmt. Gofmt reformats Go source code, whereas golint prints out style mistakes
- staticcheck # (megacheck) Staticcheck is a go vet on steroids, applying a ton of static analysis checks
- structcheck # Finds unused struct fields
- unconvert # Remove unnecessary type conversions
- unparam # Reports unused function parameters
- varcheck # Finds unused global variables and constants

Expand All @@ -88,3 +85,29 @@ issues:
- path: (_test\.go|utilities_testing\.go)
linters:
- goconst
- path: rest/debug.go
linters:
- unused

linters-settings:
gocritic:
enabled-checks:
- ruleguard
disabled-checks:
- appendAssign
- assignOp
- badCond
- captLocal
- commentFormatting
- deprecatedComment
- elseif
- ifElseChain
- regexpMust
- singleCaseSwitch
- sloppyLen
- unlambda
- valSwap
- wrapperFunc
settings:
ruleguard:
rules: '${configDir}/ruleguard/*.go'
Loading
Loading