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

Feature/chat #1467

Merged
merged 488 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
488 commits
Select commit Hold shift + click to select a range
970f864
GO-4147: Fix tests #2
deff7 Sep 30, 2024
be32516
GO-4147: Fix tests #3
deff7 Sep 30, 2024
94b1815
GO-3631 Update coordinator status after start
mcrakhman Sep 30, 2024
8e17f6c
Merge branch 'main' of github.com:anyproto/anytype-heart into feature…
deff7 Sep 30, 2024
6791776
Merge branch 'feature/chat' into go-4147-divide-any-store-indexes-per…
deff7 Sep 30, 2024
53db9fd
GO-3631 Close space after delete
mcrakhman Sep 30, 2024
3fab548
GO-3631 Fix delete
mcrakhman Sep 30, 2024
ddc1cc0
GO-4147 Merge branch 'GO-3631-personal-space' of github.com:anyproto/…
deff7 Sep 30, 2024
e040271
Merge branch 'main' of ssh://github.com/anyproto/anytype-heart into f…
requilence Sep 30, 2024
4339691
fix merge
requilence Sep 30, 2024
f0f7c7f
GO-4147: Rename method
deff7 Oct 1, 2024
c178202
GO-4147: Remove IgnoreWorkspace parameter
deff7 Oct 1, 2024
3a95adb
GO-4147: Move chats and account objects to according space stores
deff7 Oct 1, 2024
5176fdc
GO-4147: Introduce per space indexer
deff7 Oct 1, 2024
531a170
GO-3631 Merge remote-tracking branch 'origin/go-4147-divide-any-store…
mcrakhman Oct 1, 2024
3527d52
GO-4147: Fix closing of space stores
deff7 Oct 1, 2024
2c74407
Add time limits
fat-fellow Oct 1, 2024
4cc9757
kill properly
fat-fellow Oct 1, 2024
ce35860
GO-3631 Fix ownidentity_test
mcrakhman Oct 1, 2024
9acdab3
GO-4147: Rename to spaceindex
deff7 Oct 1, 2024
406ac75
GO-3631 Fix space service tests
mcrakhman Oct 1, 2024
a16bf3e
GO-3631 Fix techspace test
mcrakhman Oct 1, 2024
a2b5e95
GO-4147: Fix indexer task
deff7 Oct 1, 2024
ac8c026
GO-3631 Merge remote-tracking branch 'origin/go-4147-divide-any-store…
mcrakhman Oct 1, 2024
9b5799f
GO-3631 Change ownidentity for the sake of tests
mcrakhman Oct 1, 2024
bca1ce6
GO-4147 Merge branch 'feature/chat' of github.com:anyproto/anytype-he…
deff7 Oct 2, 2024
953c2c8
GO-4147: Fix after merge
deff7 Oct 2, 2024
ad12c47
GO-4147: Fix panic
deff7 Oct 2, 2024
e874547
GO-4147 Update account object, fix lint
mcrakhman Oct 2, 2024
2f02699
GO-4147: Split stores to directories
deff7 Oct 2, 2024
cd12c13
GO-4147 Merge remote-tracking branch 'origin/go-4147-divide-any-store…
deff7 Oct 2, 2024
1dbb42c
GO-4147: Refactor: fix ID -> Id
deff7 Oct 2, 2024
b66d3d4
GO-4147 Fix lint
mcrakhman Oct 2, 2024
28b9915
GO-4147: Use defer iter.Close()
deff7 Oct 2, 2024
add78f1
GO-4147 Merge remote-tracking branch 'origin/go-4147-divide-any-store…
deff7 Oct 2, 2024
6a24f37
GO-4147 Fix space is closed
mcrakhman Oct 2, 2024
c4dd9ca
GO-4147: Extract crdt store
deff7 Oct 2, 2024
e671203
GO-4147: Fix some linter complaints
deff7 Oct 2, 2024
77b84f1
Merge pull request #1619 from anyproto/go-4147-divide-any-store-index…
mcrakhman Oct 2, 2024
0adb42c
GO-3631 AccountObject tests
mcrakhman Oct 2, 2024
08aabe3
GO-4118: Speed up install query
deff7 Oct 4, 2024
2efaf23
GO-4118: WIP Split subs
deff7 Oct 4, 2024
b0dbe91
GO-4159 Get rid of private infos and fix queries
fat-fellow Oct 4, 2024
ac09a82
GO-4118: Improve startup time
deff7 Oct 4, 2024
4b97268
GO-3631 Merge branch 'feature/chat' into GO-3631-personal-space
mcrakhman Oct 7, 2024
8704c5d
GO-4136 fix too big query
fat-fellow Oct 4, 2024
b839d0c
GO-4118: Fix some tests
deff7 Oct 7, 2024
3768b29
Update GetVerificationEmail: for onboarding
AnthonyAkentiev Oct 7, 2024
cac169b
GO-4118: Refactor tests
deff7 Oct 7, 2024
a272ce6
GO-3631 Add profile migration tests
mcrakhman Oct 7, 2024
d52efc5
Merge pull request #1646 from anyproto/GO-4188-2
AnthonyAkentiev Oct 7, 2024
7dfef81
GO-4200 fix date mention
fat-fellow Oct 7, 2024
fe084b5
Merge pull request #1649 from anyproto/go-4200-date-finding-fix
fat-fellow Oct 7, 2024
2bc6be5
GO-4118: Try to fix flickering test
deff7 Oct 7, 2024
46e40f6
GO-4201: Preload space indexes
deff7 Oct 7, 2024
a7d2789
GO-4202 make AddToIndexQueue atomic
requilence Oct 7, 2024
dddf3ce
GO-4202 add tx rollback
requilence Oct 7, 2024
b880f20
Merge pull request #1650 from anyproto/go-4201-pre-load-spaceindexes
deff7 Oct 7, 2024
52db91a
Merge pull request #1651 from anyproto/go-4202-make-the-ft-reindex-lo…
requilence Oct 7, 2024
03c4f39
GO-4118: Fix tests
deff7 Oct 7, 2024
30a0110
GO-3997 fix list query
fat-fellow Oct 7, 2024
16a4f31
GO-3631 Revive space fixture
mcrakhman Oct 7, 2024
1ce9b78
GO-3631 Add more tests for space service
mcrakhman Oct 7, 2024
ffdb7da
GO-3631 Remove unused stuff
mcrakhman Oct 7, 2024
c4ae4b1
GO-3631 Remove unused mocks
mcrakhman Oct 7, 2024
b60cc67
GO-3631 Update smarttest
mcrakhman Oct 7, 2024
f86c535
GO-3631 Remove comments
mcrakhman Oct 7, 2024
516722c
GO-3631 Fix comments
mcrakhman Oct 8, 2024
6c5473e
Merge pull request #1652 from anyproto/GO-3631-personal-space
mcrakhman Oct 8, 2024
accfd19
Merge pull request #1638 from anyproto/go-4159-get-rid-of-private-inf…
fat-fellow Oct 8, 2024
ddc2aef
Merge pull request #1648 from anyproto/go-3997-composer-doesnt-show-u…
fat-fellow Oct 8, 2024
bd396b1
GO-3334 fix tests
fat-fellow Oct 8, 2024
a4caa92
Merge pull request #1654 from anyproto/go-3334-tagging-a-date-or-obje…
fat-fellow Oct 8, 2024
89b2575
GO-4211 Merge branch 'main' of github.com:anyproto/anytype-heart into…
deff7 Oct 8, 2024
6be496d
GO-4211: Fix after merge
deff7 Oct 8, 2024
218cdf2
GO-4211: Fix after merge
deff7 Oct 8, 2024
ad778c5
Merge pull request #1656 from anyproto/go-4211-merge-main-new
deff7 Oct 8, 2024
61a3622
GO-3631 WIP fixes
mcrakhman Oct 8, 2024
4d0a2d3
GO-4217: Refactor tests
deff7 Oct 9, 2024
4007934
GO-3631 Skip checking space view for accounts without space view
mcrakhman Oct 9, 2024
2f7beb2
Merge pull request #1657 from anyproto/go-4217-refactor-subscription-…
deff7 Oct 9, 2024
ac04f6f
GO-4218: Refactor objectsubscription: extract to package
deff7 Oct 9, 2024
fba28e6
GO-4118 Merge branch 'feature/chat' of github.com:anyproto/anytype-he…
deff7 Oct 9, 2024
fb2f435
GO-4218: Fix after merge
deff7 Oct 9, 2024
9f128a1
Merge pull request #1639 from anyproto/go-4118-research-performance-s…
deff7 Oct 9, 2024
2c20343
GO-4218: Clean up
deff7 Oct 9, 2024
c889c37
Merge pull request #1658 from anyproto/go-4218-refactor-objectsubscri…
deff7 Oct 9, 2024
5e0003b
GO-4214: Add ability to use own queue in internal subscriptions
deff7 Oct 9, 2024
09e4960
GO-3631 Add more test for account recover etc
mcrakhman Oct 9, 2024
6c78a1b
GO-3631 Fix lint
mcrakhman Oct 9, 2024
2a1a220
GO-3631 Fix comments
mcrakhman Oct 9, 2024
74cad12
Merge pull request #1660 from anyproto/GO-3631-fixes
mcrakhman Oct 9, 2024
93b6d9c
GO-3941 Filter flow links by spaceId
KirillSto Oct 9, 2024
cda4f34
GO-3977 Do not show deleted tags in kanban
KirillSto Oct 9, 2024
ac5d794
GO-4214: WIP Cross space subs
deff7 Oct 10, 2024
764a84c
GO-4118: Revert sync status reindexing
deff7 Oct 10, 2024
cd98daf
GO-4118: Fix tests
deff7 Oct 10, 2024
6780d3e
Merge pull request #1663 from anyproto/fix-sync-status
deff7 Oct 10, 2024
07598f6
GO-4214 Merge branch 'feature/chat' of github.com:anyproto/anytype-he…
deff7 Oct 10, 2024
71f2d34
GO-4214: Fix after merge
deff7 Oct 10, 2024
d190a71
GO-4214: Fix initial subscription
deff7 Oct 10, 2024
b463d1d
GO-4214: Add AsyncInit option to subscriptions
deff7 Oct 10, 2024
0c90d6d
GO-4214: Add API method
deff7 Oct 10, 2024
2a040a4
Merge pull request #1662 from anyproto/go-3977-deleted-tags-shown-in-…
KirillSto Oct 10, 2024
0d10d7f
GO-3941 Get space index
KirillSto Oct 10, 2024
b2d64da
Merge pull request #1661 from anyproto/go-3941-filter-flow-links-by-s…
KirillSto Oct 10, 2024
403752f
GO-4235 any-store: switth to anyenc
cheggaaa Oct 10, 2024
0a1c9a0
GO-4235 Merge branch 'feature/chat' of github.com:anyproto/anytype-he…
cheggaaa Oct 10, 2024
f66d0e0
GO-4192 app start improvements
requilence Oct 4, 2024
31a3ae1
GO-4192 fix
requilence Oct 10, 2024
e2c34c6
GO-4235 updatre any-sync
cheggaaa Oct 10, 2024
43efb1a
GO-4235 any-store: return bytes keys / fix tests
cheggaaa Oct 10, 2024
858931d
GO-4242 fix spaceIndexer deadlock on stop
requilence Oct 11, 2024
5eca194
GO-4240 fix paymentservice+filesync timeout on app close
requilence Oct 11, 2024
c9897e8
GO-4243 close spaces in parallel
requilence Oct 11, 2024
08a9349
Merge pull request #1669 from anyproto/go-4242-app-close-timeout-spac…
requilence Oct 11, 2024
34622ec
GO-4235 Merge branch 'feature/chat' of github.com:anyproto/anytype-he…
cheggaaa Oct 11, 2024
dd8e94a
GO-4192 fix ctx cancel for tech space
requilence Oct 11, 2024
31661ad
GO-4240 fix
requilence Oct 11, 2024
0756059
Merge pull request #1670 from anyproto/go-4240-app-close-timeout-paym…
requilence Oct 11, 2024
7def881
GO-4235 remove debug
cheggaaa Oct 11, 2024
df569f7
GO-4236 fix panic on close when techspace is not loaded
requilence Oct 11, 2024
478e4c2
Merge branch 'main' of github.com:anyproto/anytype-heart into merge-main
AnastasiaShemyakinskaya Oct 11, 2024
8ffdbbb
fix merge conflicts
AnastasiaShemyakinskaya Oct 11, 2024
6651ab1
remove filter
AnastasiaShemyakinskaya Oct 11, 2024
8095f0f
Merge pull request #1675 from anyproto/merge-main
requilence Oct 11, 2024
79f454e
GO-4192 fix codestyle
requilence Oct 11, 2024
ec2e584
GO-4258 Add private analytics id
mcrakhman Oct 14, 2024
883ef1c
GO-4258 Fix comment
mcrakhman Oct 14, 2024
8f5425e
GO-4258 Change to crypto/rand
mcrakhman Oct 14, 2024
79b8965
GO-4258 Update privateAnalyticsId on migration
mcrakhman Oct 14, 2024
8418e48
Merge pull request #1673 from anyproto/go-4236-panic-on-close-if-tech…
requilence Oct 14, 2024
e33a1e2
Merge pull request #1671 from anyproto/go-4243-app-close-many-spaces
requilence Oct 14, 2024
8697dec
Merge pull request #1680 from anyproto/GO-4258-private-analytics-id
mcrakhman Oct 14, 2024
0b37518
GO-4214: Remove ids from subscription when space is deleted
deff7 Oct 14, 2024
9ca96ab
GO-4214: Remove ability to sort in cross-space sub
deff7 Oct 14, 2024
f86dc77
GO-4192 fix codestyle
requilence Oct 14, 2024
cb38b4b
GO-4214: Add dependency subscription validation
deff7 Oct 14, 2024
e000554
GO-4214: Fix error handling
deff7 Oct 14, 2024
1f78729
GO-4214: Implement Unsubscribe
deff7 Oct 14, 2024
ebf3ef0
GO-4214: Add test for object update
deff7 Oct 14, 2024
961e335
GO-4235 merge
cheggaaa Oct 14, 2024
59af059
GO-4235 update any-store
cheggaaa Oct 14, 2024
5a2b489
GO-4214: Fix total counter
deff7 Oct 14, 2024
1186f49
GO-4235 remove any-store when version is incompatible
cheggaaa Oct 14, 2024
7385af4
GO-4214: Subscription service: Add some utility methods for cross-spa…
deff7 Oct 14, 2024
f55b14a
GO-4214: Subscription service: fix tests
deff7 Oct 14, 2024
ed7fba1
GO-4214 Merge branch 'go-4214-subscription-service-add-methods' into …
deff7 Oct 14, 2024
d50fd0c
fix-tests
AnastasiaShemyakinskaya Oct 14, 2024
3ed6854
GO-4235 update any-store
cheggaaa Oct 14, 2024
9dfec8e
Merge pull request #1683 from anyproto/fix-tests
AnastasiaShemyakinskaya Oct 14, 2024
a97156c
GO-4214: Fix linter
deff7 Oct 14, 2024
a3135ae
GO-4214 Merge branch 'feature/chat' of github.com:anyproto/anytype-he…
deff7 Oct 14, 2024
1fcb4bd
Merge pull request #1682 from anyproto/go-4214-subscription-service-a…
deff7 Oct 14, 2024
78371a1
GO-4214 Merge branch 'feature/chat' of github.com:anyproto/anytype-he…
deff7 Oct 14, 2024
9cdfd15
GO-4214: Add Unsubscribe method
deff7 Oct 14, 2024
cfd7b86
Merge pull request #1672 from anyproto/go-4192-load-improvements-rebase
requilence Oct 14, 2024
20fae57
GO-4156 Automate proper tantivy version downloading
fat-fellow Oct 14, 2024
702c266
GO-4271 Fix request not canceling when service is closed
mcrakhman Oct 14, 2024
29d59d7
GO-4271 Prevent new requests from being sent
mcrakhman Oct 14, 2024
4848a49
Merge pull request #1686 from anyproto/GO-4271-fix-get-subscription-s…
mcrakhman Oct 14, 2024
d988327
GO-4271 payments GetSubscriptionStatus: use limiter instead of mutex
requilence Oct 15, 2024
ebd0f5b
GO-4281 Close tantivy properly
fat-fellow Oct 15, 2024
da9c8a6
Merge pull request #1665 from anyproto/go-4214-cross-space-subsriptions
deff7 Oct 15, 2024
2e72c84
GO-4156 add docs for tantivy
fat-fellow Oct 15, 2024
03c70a3
Merge pull request #1667 from anyproto/GO-4235-any-store-encoding
cheggaaa Oct 15, 2024
dc3dfac
Merge pull request #1685 from anyproto/go-4156-improve-tantivy-use-an…
fat-fellow Oct 15, 2024
3ecaee9
GO-4271 use ContextWithCloseChan
requilence Oct 15, 2024
e224171
GO-4281 Close tantivy properly
fat-fellow Oct 15, 2024
34480fa
fix tantivy
fat-fellow Oct 15, 2024
9bd9328
GO-4282 fix FetchRelationByKeys method to return bundled objects
requilence Oct 15, 2024
6a957ed
GO-4171: fix cache
AnastasiaShemyakinskaya Oct 15, 2024
d8aabb6
GO-4171 Merge branch 'feature/chat' of github.com:anyproto/anytype-he…
AnastasiaShemyakinskaya Oct 16, 2024
5d06929
Merge pull request #1692 from anyproto/go-4282-reindex-invalid-partic…
requilence Oct 16, 2024
8f4983c
Merge pull request #1688 from anyproto/GO-4271-fix-get-subscription-s…
requilence Oct 16, 2024
7b96530
ci: fix go version
requilence Oct 16, 2024
9de2687
GO-4130 fix get started
requilence Oct 16, 2024
ff72b03
Merge pull request #1695 from anyproto/fix-ci-go-version
requilence Oct 16, 2024
37c6ae5
Merge pull request #1696 from anyproto/go-4130-substitute-current-get…
requilence Oct 16, 2024
9691c45
Merge pull request #1689 from anyproto/go-4281-fix-an-accountselect-t…
fat-fellow Oct 16, 2024
6e85c16
fix nil chan
requilence Oct 16, 2024
1739c01
fix ci
requilence Oct 16, 2024
685aee8
GO-4209 delete relation scope
requilence Oct 16, 2024
90adbdd
GO-4209 delete human type from system
requilence Oct 16, 2024
bd7f3c7
Merge pull request #1697 from anyproto/fix-chan
requilence Oct 16, 2024
66fc8c3
GO-4249: Remove indexing of sync status for spaceSettings object
deff7 Oct 16, 2024
33a942b
GO-4249: Fix comment
deff7 Oct 16, 2024
f643c0b
Merge pull request #1699 from anyproto/go-4249-the-first-deleted-obje…
deff7 Oct 16, 2024
26296a1
GO-4209 fix
requilence Oct 16, 2024
05dd8b9
GO-4209 run tests
requilence Oct 16, 2024
4c73869
Merge pull request #1698 from anyproto/go-4209-clean-up-relationstypes
requilence Oct 16, 2024
52d01c8
GO-4291 SpaceView fixes
mcrakhman Oct 16, 2024
93a298b
GO-4291 Add tests
mcrakhman Oct 16, 2024
a57c79d
GO-4291 Remove extra file
mcrakhman Oct 16, 2024
d5ade16
GO-4291 Remove println
mcrakhman Oct 16, 2024
1bfe39a
GO-4291 Rename test
mcrakhman Oct 16, 2024
8cf30da
GO-4171: fix comments
AnastasiaShemyakinskaya Oct 16, 2024
9f8a423
GO-4171: fix comments
AnastasiaShemyakinskaya Oct 17, 2024
34328a1
GO-4291 Handle error
mcrakhman Oct 17, 2024
1c14ff1
GO-4171: add tests
AnastasiaShemyakinskaya Oct 17, 2024
1f78c3a
Merge pull request #1700 from anyproto/GO-4291-fix-creator-in-space-view
mcrakhman Oct 17, 2024
7b99936
GO-4171: add close
AnastasiaShemyakinskaya Oct 17, 2024
6a44819
Merge pull request #1690 from anyproto/go-4171-fix-potential-race-in-…
AnastasiaShemyakinskaya Oct 17, 2024
7e0b34c
GO-3957 filter errors
fat-fellow Oct 15, 2024
2b02fa6
GO-3957 filter errors
fat-fellow Oct 17, 2024
8d871dd
GO-3957 Add transform
fat-fellow Oct 17, 2024
74fba0f
GO-3957 Fix error
fat-fellow Oct 17, 2024
3e42fa7
GO-3957 Fix style
fat-fellow Oct 17, 2024
309f542
Merge pull request #1691 from anyproto/go-3957-log-mess-cleanup
fat-fellow Oct 17, 2024
4486919
GO-4304 Update any-sync
mcrakhman Oct 18, 2024
8903f0a
GO-4304 Update any-sync
mcrakhman Oct 18, 2024
a0b6238
GO-4175: Add DebugChatChanges method
deff7 Oct 18, 2024
b85fbb1
GO-4175: Use HistoryTree
deff7 Oct 18, 2024
13a713b
GO-4175: Add WrongOrder indicator
deff7 Oct 18, 2024
f89343a
Merge pull request #1707 from anyproto/GO-4304-fix-error-handling-spaces
mcrakhman Oct 18, 2024
ee82597
GO-4310 objectstore: syncronous off
requilence Oct 21, 2024
5b569e6
GO-4310 fix pid killing
requilence Oct 21, 2024
fb01c40
GO-4310 rename
requilence Oct 21, 2024
678f455
GO-4311 Exculde WS from GetStarted
KirillSto Oct 21, 2024
a8ba897
GO-4310 fix config copy
requilence Oct 21, 2024
1e3e436
GO-4310 fix errors join
requilence Oct 21, 2024
9e0df9c
GO-4311 Fix widget
KirillSto Oct 21, 2024
ebac15f
GO-4175: Refactor
deff7 Oct 21, 2024
f7d02e8
GO-4310 fix tests
requilence Oct 21, 2024
e77b92a
Merge pull request #1714 from anyproto/go-4311-exclude-ws-from-get-st…
mcrakhman Oct 21, 2024
0f22102
Merge pull request #1708 from anyproto/go-4175-create-debugapi-for-or…
deff7 Oct 21, 2024
875668c
GO-4310 cleanup
requilence Oct 21, 2024
a632b13
GO-4310 fixes
requilence Oct 21, 2024
6bc12bb
GO-4310 preload stores dir only when needed
requilence Oct 21, 2024
7a3b7ee
GO-4310 fix
requilence Oct 21, 2024
31a74aa
GO-4310 fix log
requilence Oct 21, 2024
5ccd6dd
GO-4316: Fix dependency subscription for cross space links
deff7 Oct 21, 2024
651bf60
GO-4310 Merge branch 'feature/chat' of ssh://github.com/anyproto/anyt…
requilence Oct 21, 2024
7fdabc3
GO-4310 fix log error
requilence Oct 21, 2024
a17287e
GO-4260 Update tantivy to 0.1.3
fat-fellow Oct 18, 2024
8d1ead4
Merge pull request #1715 from anyproto/go-4260-fix-ios-tantivy
fat-fellow Oct 21, 2024
1e1563f
GO-4316: Add tests
deff7 Oct 21, 2024
8e0b744
Merge pull request #1713 from anyproto/go-4310-anystore-objectstore-i…
requilence Oct 21, 2024
d503f9e
Merge remote-tracking branch 'origin/main' into feature/chat
fat-fellow Oct 21, 2024
65c1f35
merge main
fat-fellow Oct 21, 2024
73c64a2
GO-4317 Fix created date for spaceview in personal space
mcrakhman Oct 21, 2024
841945a
GO-4297 Fix fts corruption
fat-fellow Oct 21, 2024
8be19ff
GO-4317 Update spaceview
mcrakhman Oct 21, 2024
0d135e5
GO-4317 Fix test
mcrakhman Oct 21, 2024
7310076
GO-4297 Fix fts corruption
fat-fellow Oct 21, 2024
31f7815
GO-4297 Add warning
fat-fellow Oct 21, 2024
ad68efd
Merge pull request #1718 from anyproto/GO-4317-date-created-fix
mcrakhman Oct 21, 2024
abd1b2e
GO-4297 Inline method
fat-fellow Oct 21, 2024
fe7768f
Merge pull request #1717 from anyproto/go-4297-fix-tantivy-corrupted-db
fat-fellow Oct 21, 2024
580bb51
Merge pull request #1716 from anyproto/go-4316-fix-dependency-subscri…
requilence Oct 21, 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
  •  
  •  
  •  
30 changes: 30 additions & 0 deletions .github/staging_fake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
networkId: N9DU6hLkTAbvcpji3TCKPPd3UQWKGyzUxGmgJEyvhByqAjfD
nodes:
- peerId: FAKE_PEER_ID1
addresses:
- lol1-any-sync-node1.somefakesite.com:6666
- lol1-any-sync-node1.somefakesite.com:6667
- quic://lol1.somefakesite.com:8888
types:
- tree
- peerId: FAKE_PEER_ID2
addresses:
- lol1-file13.somefakesite.com:6666
- lol1-file13.somefakesite.com:6667
- quic://lol1-file13.somefakesite.com:8888
types:
- file
- peerId: FAKE_PEER_ID3
addresses:
- lol1-coord1.somefakesite.com:6666
- lol1-coord1.somefakesite.com:6667
- quic://lol1-coord1.somefakesite.com:8888
types:
- coordinator
- peerId: FAKE_PEER_ID4
addresses:
- lol1-cons1.somefakesite.com:6666
- lol1-cons1.somefakesite.com:6667
- quic://lol1-cons1.somefakesite.com:8888
types:
- consensus
4 changes: 1 addition & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: 1.22
go-version: 1.22.8
if: github.event.inputs.run-on-runner != 'ARM64' && github.event_name != 'schedule'
- name: Setup GO
run: |
Expand Down Expand Up @@ -109,7 +109,6 @@ jobs:
which gomobile
- name: Cross-compile library mac/win/linux
run: |
make download-tantivy-all
echo $FLAGS
mkdir -p .release
echo $SDKROOT
Expand All @@ -123,7 +122,6 @@ jobs:
- name: run perf tests
run: |
echo "Running perf tests"
make download-tantivy-all
RUN_COUNT=${{ github.event.inputs.perf-test }}
if [[ "${{ github.event_name }}" == "schedule" ]]; then
RUN_COUNT=10
Expand Down
43 changes: 22 additions & 21 deletions .github/workflows/perftests.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#https://linear.app/anytype/issue/GO-3985/make-performance-report-on-the-stand
on:
workflow_dispatch:
inputs:
Expand All @@ -8,23 +9,24 @@ on:
perf-test:
description: 'Run perf test times'
required: true
default: '0'
default: '10'
schedule:
- cron: '0 0 * * *' # every day at midnight
- cron: '0 1 * * *' # every day at 1am
filters:
branches:
include:
- 'feature/chat'
- 'main'


permissions:
actions: 'write'
contents: 'write'


name: Build
name: Perf tests
jobs:
build:
timeout-minutes: 60
runs-on: 'ARM64'
steps:
- name: Setup GO
Expand All @@ -35,13 +37,6 @@ jobs:
echo $(go env GOPATH)/bin >> $GITHUB_PATH
- name: Checkout
uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ matrix.go-version }}-
- name: Set env vars
env:
UNSPLASH_KEY: ${{ secrets.UNSPLASH_KEY }}
Expand Down Expand Up @@ -78,24 +73,30 @@ jobs:
- name: run perf tests
run: |
echo "Running perf tests"
make download-tantivy-all
RUN_COUNT=${{ github.event.inputs.perf-test }}
if [[ "${{ github.event_name }}" == "schedule" ]]; then
RUN_COUNT=100
fi
echo $PERF_CONFIG_STAGING > config.json
mv .github/staging_fake.yml staging_fake.yml
PERF_CONFIG=$PWD/config.json
cd cmd/perfstand/account_create
CGO_ENABLED="1" go run main.go $PERF_CONFIG $RUN_COUNT
cd ../account_select
CGO_ENABLED="1" go run main.go $PERF_CONFIG $RUN_COUNT
cd ../../..
echo $PERF_CONFIG_LOCAL > ./config.json
cd cmd/perfstand/account_create
CGO_ENABLED="1" go run main.go $RUN_COUNT
CGO_ENABLED="1" go run main.go $PERF_CONFIG $RUN_COUNT
cd ../account_select
CGO_ENABLED="1" go run main.go $RUN_COUNT
CGO_ENABLED="1" go run main.go $PERF_CONFIG $RUN_COUNT
env:
TEST_MNEMONIC: ${{ secrets.TEST_MNEMONIC_30000 }}
CH_API_KEY: ${{ secrets.CH_API_KEY }}
ACCOUNT_HASH: ${{ secrets.ACCOUNT_HASH_30000 }}
ACCOUNT_SPACE: ${{ secrets.ACCOUNT_SPACE_30000 }}
ROOT_FOLDER: ${{ secrets.ROOT_FOLDER }}
PERF_CONFIG_STAGING: ${{ secrets.PERF_CONFIG_STAGING }}
PERF_CONFIG_LOCAL: ${{ secrets.PERF_CONFIG_LOCAL }}
CH_API_KEY: ${{ secrets.CH_PERF_API_KEY }}
- name: Archive perf tests results
uses: actions/upload-artifact@v4
with:
name: pprofs
name: traces
path: |
*.pprof
*.log
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
- main
pull_request:
branches:
- '*'
- '**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
Expand Down
25 changes: 14 additions & 11 deletions .mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,12 @@ packages:
dir: "{{.InterfaceDir}}"
outpkg: "{{.PackageName}}"
inpackage: true
github.com/anyproto/anytype-heart/core/block/editor/lastused:
interfaces:
ObjectUsageUpdater:
github.com/anyproto/anytype-heart/core/block/import/common:
interfaces:
Converter:
github.com/anyproto/anytype-heart/pkg/lib/database:
interfaces:
ObjectStore:
config:
dir: "{{.InterfaceDir}}"
outpkg: "{{.PackageName}}"
inpackage: true
github.com/anyproto/anytype-heart/pkg/lib/localstore/objectstore:
interfaces:
ObjectStore:
github.com/anyproto/anytype-heart/core/block/restriction:
interfaces:
Service:
Expand Down Expand Up @@ -102,6 +95,7 @@ packages:
interfaces:
TechSpace:
SpaceView:
AccountObject:
github.com/anyproto/anytype-heart/space/spacefactory:
interfaces:
SpaceFactory:
Expand All @@ -112,6 +106,9 @@ packages:
github.com/anyproto/anytype-heart/space/internal/components/spaceloader:
interfaces:
SpaceLoader:
github.com/anyproto/anytype-heart/space/internal/components/personalmigration:
interfaces:
fileObjectGetter:
github.com/anyproto/anytype-heart/space/internal/components/participantwatcher:
interfaces:
ParticipantWatcher:
Expand All @@ -132,6 +129,8 @@ packages:
github.com/anyproto/anytype-heart/space:
interfaces:
Service:
coordinatorStatusUpdater:
NotificationSender:
github.com/anyproto/anytype-heart/space/clientspace:
interfaces:
Space:
Expand Down Expand Up @@ -165,6 +164,7 @@ packages:
github.com/anyproto/anytype-heart/core/block/source:
interfaces:
Service:
Store:
github.com/anyproto/anytype-heart/core/block/object/idresolver:
interfaces:
Resolver:
Expand Down Expand Up @@ -218,4 +218,7 @@ packages:
Downloader:
github.com/anyproto/anytype-heart/core/block/detailservice:
interfaces:
Service:
Service:
github.com/anyproto/anytype-heart/core/kanban:
interfaces:
Service:
14 changes: 13 additions & 1 deletion .run/Run.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,26 @@
<configuration default="false" name="Run" type="GoApplicationRunConfiguration" factoryName="Go Application">
<module name="anytype-heart" />
<working_directory value="$PROJECT_DIR$" />
<go_parameters value="-tags &quot;nomutexdeadlockdetector noauth nographviz&quot;" />
<go_parameters value="-tags &quot;nomutexdeadlockdetector noauth nographviz&quot; -ldflags=&quot;-extldflags=-Wl,-ld_classic&quot;" />
<envs>
<env name="ANYDEBUG" value=":6061" />
<env name="ANYPROF" value=":6060" />
<env name="ANYTYPE_GATEWAY_ADDR" value="127.0.0.1:31006" />
<env name="ANYTYPE_GRPC_ADDR" value="127.0.0.1:31007" />
<env name="ANYTYPE_GRPCWEB_ADDR" value="127.0.0.1:31008" />
<env name="CC" value="/usr/bin/cc" />
<env name="CXX" value="/usr/bin/c++" />
</envs>
<EXTENSION ID="net.ashald.envfile">
<option name="IS_ENABLED" value="false" />
<option name="IS_SUBST" value="false" />
<option name="IS_PATH_MACRO_SUPPORTED" value="false" />
<option name="IS_IGNORE_MISSING_FILES" value="false" />
<option name="IS_ENABLE_EXPERIMENTAL_INTEGRATIONS" value="false" />
<ENTRIES>
<ENTRY IS_ENABLED="true" PARSER="runconfig" IS_EXECUTABLE="false" />
</ENTRIES>
</EXTENSION>
<kind value="PACKAGE" />
<package value="github.com/anyproto/anytype-heart/cmd/grpcserver" />
<directory value="$PROJECT_DIR$" />
Expand Down
23 changes: 17 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ CLIENT_ANDROID_PATH ?= ../anytype-kotlin
CLIENT_IOS_PATH ?= ../anytype-swift
TANTIVY_GO_PATH ?= ../tantivy-go
BUILD_FLAGS ?=
TANTIVY_VERSION := $(shell cat go.mod | grep github.com/anyproto/tantivy-go | cut -d' ' -f2)

export GOLANGCI_LINT_VERSION=1.58.1
export CGO_CFLAGS=-Wno-deprecated-non-prototype -Wno-unknown-warning-option -Wno-deprecated-declarations -Wno-xor-used-as-pow -Wno-single-bit-bitfield-constant-conversion
Expand Down Expand Up @@ -46,7 +47,7 @@ endif
cp $$ANY_SYNC_NETWORK $(CUSTOM_NETWORK_FILE); \
fi

setup-go: setup-network-config
setup-go: setup-network-config check-tantivy-version
@echo 'Setting up go modules...'
@go mod download
@go install github.com/ahmetb/govvv@v0.2.0
Expand Down Expand Up @@ -280,10 +281,10 @@ protos-java:
@echo 'Generating protobuf packages (Java)...'
@protoc -I ./ --java_out=./dist/android/pb pb/protos/*.proto pkg/lib/pb/model/protos/*.proto

build-server: setup-network-config
build-server: setup-network-config check-tantivy-version
@echo 'Building anytype-heart server...'
@$(eval FLAGS += $$(shell govvv -flags -pkg github.com/anyproto/anytype-heart/util/vcs))
@$(eval TAGS := nosigar nowatchdog)
@$(eval TAGS := $(TAGS) nosigar nowatchdog)
ifdef ANY_SYNC_NETWORK
@$(eval TAGS := $(TAGS) envnetworkcustom)
endif
Expand Down Expand Up @@ -339,7 +340,6 @@ endif
### Tantivy Section

REPO := anyproto/tantivy-go
VERSION := v0.1.0
OUTPUT_DIR := deps/libs
SHA_FILE = tantivity_sha256.txt

Expand All @@ -356,7 +356,7 @@ TANTIVY_LIBS := android-386.tar.gz \
windows-amd64.tar.gz

define download_tantivy_lib
curl -L -o $(OUTPUT_DIR)/$(1) https://github.com/$(REPO)/releases/download/$(VERSION)/$(1)
curl -L -o $(OUTPUT_DIR)/$(1) https://github.com/$(REPO)/releases/download/$(TANTIVY_VERSION)/$(1)
endef

define remove_arch
Expand All @@ -366,6 +366,9 @@ endef
remove-libs:
@rm -rf deps/libs/*

write-tantivy-version:
@echo "$(TANTIVY_VERSION)" > $(OUTPUT_DIR)/.verified

download-tantivy: remove-libs $(TANTIVY_LIBS)

$(TANTIVY_LIBS):
Expand All @@ -381,13 +384,21 @@ download-tantivy-all-force: download-tantivy
done
@rm -rf deps/libs/*.tar.gz
@echo "SHA256 checksums generated."
$(MAKE) write-tantivy-version

download-tantivy-all: download-tantivy
@echo "Validating SHA256 checksums..."
@shasum -a 256 -c $(SHA_FILE) --status || { echo "Hash mismatch detected."; exit 1; }
@shasum -a 256 -c $(SHA_FILE) --status || { echo "Hash mismatch detected. Call make download-tantivy-all-force"; exit 1; }
@echo "All files are valid."
@rm -rf deps/libs/*.tar.gz
$(MAKE) write-tantivy-version

download-tantivy-local: remove-libs
@mkdir -p $(OUTPUT_DIR)
@cp -r $(TANTIVY_GO_PATH)/libs/* $(OUTPUT_DIR)

check-tantivy-version:
$(eval OLD_VERSION := $(shell [ -f $(OUTPUT_DIR)/.verified ] && cat $(OUTPUT_DIR)/.verified || echo ""))
@if [ "$(TANTIVY_VERSION)" != "$(OLD_VERSION)" ]; then \
$(MAKE) download-tantivy-all; \
fi
Loading
Loading