-
Notifications
You must be signed in to change notification settings - Fork 297
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
Enable Version Vectors #3329
Enable Version Vectors #3329
Conversation
EE Jenkins failing with the below, from LiteCore
|
Jim has a new mac mini that can install a new XCode that supports C++ 20. You can check with him about the agent name. |
@pasin I disabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
As discussed on slack, use C4STR or FLSTR instead.
-
do you know why all SG tests failed?
-
LiteCore is using this agent for iOS PR Validation. iOS can do the same here.
https://github.com/couchbase/couchbase-lite-core/blob/master/Jenkinsfile#L19
504c313
to
ca089a4
Compare
With the above in mind, this is ready to be merged. |
Objective-C/Tests/DocumentTest.m
Outdated
Assert(doc._getRevisionHistory); | ||
// Fails from LiteCore,only 1 rev, no rev history | ||
// doc = [[defaultCollection documentWithID: @"doc1" error: &err] toMutable]; | ||
// Assert(doc._getRevisionHistory); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this expected or failed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one change slipped when I resolved conflicts... by default, we only get current rev from LiteCore for a doc, so that would've failed. Now we grab using correct content flag, only for the revHist functionality
Swift/Document.swift
Outdated
@@ -33,6 +33,10 @@ public class Document : DictionaryProtocol, Equatable, Hashable, Sequence { | |||
return impl.revisionID | |||
} | |||
|
|||
public var timestamp: Double { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be NSTimeInterval instead of Double?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TimeInterval specifically for Swift.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, will change to TimeInterval
Objective-C/Tests/DatabaseTest.m
Outdated
@@ -598,70 +598,72 @@ - (void) testSavePurgedDoc { | |||
|
|||
#pragma mark Save Conflict Handler | |||
|
|||
- (NSTimeInterval) checkTimestampUpdated:(CBLDocument*) doc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this used anywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, removed
Swift/Document.swift
Outdated
@@ -33,6 +33,10 @@ public class Document : DictionaryProtocol, Equatable, Hashable, Sequence { | |||
return impl.revisionID | |||
} | |||
|
|||
public var timestamp: Double { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TimeInterval specifically for Swift.
Disabled |
generation
API which was used for tests