realm / realm-kotlin

Kotlin Multiplatform and Android SDK for the Realm Mobile Database: Build Better Apps Faster.
Apache License 2.0
886 stars 52 forks source link

Remove centos 7 docker image #1791

Closed clementetb closed 19 hours ago

clementetb commented 3 days ago

Centos 7 has been deprecated as of 30th June 2024. Our CI job build-jvm-linux-native-lib used it in a docker image.

This PR removes the docker image and integrates this build job in GHA using a ubuntu-22.04 image.

This is the same image as used by core: https://github.com/realm/ci/blob/master/realm/docker/build-ubuntu/Dockerfile

This PR includes the changes from https://github.com/realm/realm-kotlin/pull/1782:

Some schema synchronization issues caused the app not being properly initialized. We have a workaround that addresses them, but unfortunately there are still some race conditions.

Tests now define the schema in the server via the admin API instead of relying on the development mode to do the synchronization. It allows to first set up the server, enable sync, and wait for sync to be enabled. Once enabled we wait to be ready to accept new clients.