CI: Fix Building with rocksdb #213
Labels
No labels
Android
CS::needs customer feedback
CS::needs follow up
CS::needs on prem installation
CS::waiting
Chrome
Design:: Ready
Design:: in progress
Design::UX
E2EE
Edge
Firefox
GDPR
Iteration 13 IM
Linux
MacOS
Need::Discussion
Need::Steps to reproduce
Need::Upstream fix
Needs:: Planning
Needs::Dev-Team
Needs::More information
Needs::Priority
Needs::Product
Needs::Refinement
Needs::Severity
Priority::1-Critical
Priority::2-Max
Priority::3-Impending
Priority::4-High
Priority::5-Medium
Priority::6-Low
Priority::7-None
Progress::Backlog
Progress::Review
Progress::Started
Progress::Testing
Progress::Triage
Progress::Waiting
Reporter::Sentry
Safari
Target::Community
Target::Customer
Target::Internal
Target::PoC
Target::Security
Team:Customer-Success
Team:Design
Team:Infrastructure
Team:Instant-Messaging
Team:Product
Team:Workflows
Type::Bug
Type::Design
Type::Documentation
Type::Feature
Type::Improvement
Type::Support
Type::Tests
Windows
blocked
blocked-by-spec
cla-signed
conduit
contribution::advanced
contribution::easy
contribution::help needed
from::review
iOS
p::ti-tenant
performance
product::triage
proposal
refactor
release-blocker
s: dart_openapi_codegen
s::Famedly-Patient
s::Org-Directory
s::Passport-Generator
s::Requeuest
s:CRM
s:Famedly-App
s:Famedly-Web
s:Fhiroxide
s:Fhiroxide-cli
s:Fhiroxide-client
s:Fhirs
s:Hedwig
s:LISA
s:Matrix-Dart-SDK
s:Role-Manager
s:Synapse
s:User-Directory
s:WFS-Matrix
s:Workflow Engine
s:dtls
s:famedly-error
s:fcm-shared-isolate
s:matrix-api-lite
s:multiple-tab-detector
s:native-imaging
severity::1
severity::2
severity::3
severity::4
technical-debt
voip
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Matthias/conduit#213
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Since adding rocksdb, the CI fails to compile for arm, armv7 and aarch64.
Below, an log excerpt of the error (for armv7 in this case):
The relevant buildscript from rocksdb: https://github.com/rust-rocksdb/rust-rocksdb/blob/master/librocksdb-sys/build.rs#L37
I don't really know how to fix this.
changed the description
Related: https://github.com/rust-rocksdb/rust-rocksdb/issues/550
But I don't know, if something like this would solve our problem, since we want to use musl and not glibc
So what appears to fix it:
For armv7:
BINDGEN_EXTRA_CLANG_ARGS="-I/usr/arm-linux-gnueabihf/include/" cargo build --target $TARGET
But holy moly, the build script for rocksdb-sys is really slow.
Maybe we can remove some unused compression options @timokoesters ? https://github.com/rust-rocksdb/rust-rocksdb/blob/master/Cargo.toml#L20
Good idea, I believe we only need Zstd
It compiles without and creating an account works.
Any more tests needed?
Incremental debug build after setting minimal rocksdb features:
I think that's okay.
changed title from CI: Fix {-arm targets-} to CI: Fix {+Building with rocksdb+}
Update: Everything is broken.
Apparently the x86 builds included libstdc++.
Rainer provides:
Might be worth trying to set the
-static
clang flagNope,
-static
wasn't it.failed on Alpine.
Surprise! Disabling the snappy feature breaks all servers that currently run rocksdb.
Apparently snappy compression will be used even though we did not enable it. We have two options now: Actually use zstd compression and tell all current rocksdb users to do a migration (complicated, you have to migrate to sqlite and then back to a different rocksdb). The second option is to just use snappy compression, which is worse at compression.
Happy to see the good news stacking up in this issue :D
But in all seriousness: Upgrading from v0.2.0 already was or will be a switch from sqlite to rocksdb, so I would consider it okay to switch to zstd, if it is better.
mentioned in merge request !259
I pushed a breaking change to
next
nowmentioned in merge request !261
mentioned in commit
4a34d757d7