Skip to content

Commit

Permalink
Local only (#6879)
Browse files Browse the repository at this point in the history
* Delete the baas test server

* Delete realm-web

* Delete realm-app-importer

* Deleted sync code and tests

* Updated root package.json

* Removing sync features from @realm/react

* Updating workflows to reflect the missing packages

* Removed dependency on app-importer

* Checkout realm-core at je/local-only

* Updated SDK to reflect changes in Core

* Checkout realm-core at v20.0.0

* Remove OpenSSL link from node.cmake

* Prepare for a new major version

* Adding a note to the changelog

* Remove use of baas test server

* Removing realm_jsi_close_sync_sessions

* Remove sync specifics from logger.hpp

* Remove more sync specifics from build scripts

* Removed call to clear_cached_apps in jsi template

* Removed mention of ZLIB::ZLIB from NodeJSTargets.cmake

* Checkout realm-core at kh/no-zlib
  • Loading branch information
kraenhansen authored Sep 9, 2024
1 parent 7bcad9d commit b69dd1f
Show file tree
Hide file tree
Showing 285 changed files with 1,468 additions and 42,604 deletions.
5 changes: 0 additions & 5 deletions .github/actions/baas-test-server/.eslintrc.json

This file was deleted.

22 changes: 0 additions & 22 deletions .github/actions/baas-test-server/action.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .github/actions/baas-test-server/package.json

This file was deleted.

21 changes: 0 additions & 21 deletions .github/actions/baas-test-server/start-server.js

This file was deleted.

21 changes: 0 additions & 21 deletions .github/actions/baas-test-server/stop-server.js

This file was deleted.

14 changes: 0 additions & 14 deletions .github/workflows/package-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ jobs:
- realm
- '@realm/babel-plugin'
- '@realm/react'
include:
- workspace: '@realm/react'
use-baas: true
name: ${{ matrix.workspace }} unit tests
runs-on: ubuntu-latest
steps:
Expand All @@ -53,15 +50,4 @@ jobs:
# (--ignore-scripts to avoid downloading or building the native module)
- run: npm ci --ignore-scripts

- name: Start BaaS test server
id: baas
if: ${{matrix.use-baas}}
uses: ./.github/actions/baas-test-server
with:
branch: ${{ env.BAAS_BRANCH }}
env:
BAASAAS_KEY: ${{ secrets.BAASAAS_KEY }}

- run: npm test --workspace ${{ matrix.workspace }}
env:
REALM_BASE_URL: ${{ steps.baas.outputs.baas-url }}
10 changes: 1 addition & 9 deletions .github/workflows/pr-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,11 @@ jobs:
# Ignoring scripts to prevent a prebuilt from getting fetched / built
run: npm ci --ignore-scripts

- name: Start BaaS test server
id: baas
uses: ./.github/actions/baas-test-server
with:
branch: ${{ env.BAAS_BRANCH }}
env:
BAASAAS_KEY: ${{ secrets.BAASAAS_KEY }}

- name: Run tests with coverage
timeout-minutes: 60
run: npm run ci:coverage --workspace @realm/integration-tests -- --reporter mocha-github-actions-reporter --timeout ${{ env.MOCHA_TIMEOUT }}
env:
CONTEXT: syncLogLevel=warn,longTimeoutMs=${{ env.LONG_TIMEOUT }},baseUrl=${{ steps.baas.outputs.baas-url }}
CONTEXT: longTimeoutMs=${{ env.LONG_TIMEOUT }}

- name: Coveralls
uses: coverallsapp/github-action@v2
34 changes: 3 additions & 31 deletions .github/workflows/pr-realm-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
paths-ignore:
- "**.md"
- "**.png"
- "packages/realm-web/**"
- "packages/realm-web-integration-tests/**"
- "packages/realm-react/**"
- "packages/realm-tools/**"
pull_request:
Expand All @@ -19,8 +17,6 @@ on:
paths-ignore:
- "**.md"
- "**.png"
- "packages/realm-web/**"
- "packages/realm-web-integration-tests/**"
- "packages/realm-react/**"
- "packages/realm-tools/**"
workflow_dispatch:
Expand Down Expand Up @@ -463,17 +459,9 @@ jobs:
# Ensure we install the prebuild built in the previous job
npm_config_realm_local_prebuilds: ${{github.workspace}}/packages/realm/prebuilds

- name: Start BaaS test server
id: baas
uses: ./.github/actions/baas-test-server
with:
branch: ${{ env.BAAS_BRANCH }}
env:
BAASAAS_KEY: ${{ secrets.BAASAAS_KEY }}

- name: Create Mocha Remote Context
id: mocha-env
run: echo "context=syncLogLevel=warn,longTimeoutMs=${{ env.LONG_TIMEOUT }},baseUrl=${{ steps.baas.outputs.baas-url }}" >> $GITHUB_OUTPUT
run: echo "context=longTimeoutMs=${{ env.LONG_TIMEOUT }}" >> $GITHUB_OUTPUT

- name: Run tests
env:
Expand Down Expand Up @@ -570,17 +558,9 @@ jobs:
echo "Simulator booted with UDID = $SIMULATOR_UDID"
echo "SIMULATOR_UDID=$SIMULATOR_UDID" >> $GITHUB_ENV
- name: Start BaaS test server
id: baas
uses: ./.github/actions/baas-test-server
with:
branch: ${{ env.BAAS_BRANCH }}
env:
BAASAAS_KEY: ${{ secrets.BAASAAS_KEY }}

- name: Create Mocha Remote Context
id: mocha-env
run: echo "context=syncLogLevel=warn,longTimeoutMs=${{ env.LONG_TIMEOUT }},baseUrl=${{ steps.baas.outputs.baas-url }}" >> $GITHUB_OUTPUT
run: echo "longTimeoutMs=${{ env.LONG_TIMEOUT }}" >> $GITHUB_OUTPUT

# Because the Xcode project injects its own CCACHE_CONFIGPATH,
# the configuration set by the ccache action doesn't propagate.
Expand Down Expand Up @@ -681,17 +661,9 @@ jobs:
# Ignoring scripts to prevent a prebuild from getting fetched / built
run: npm ci --ignore-scripts

- name: Start BaaS test server
id: baas
uses: ./.github/actions/baas-test-server
with:
branch: ${{ env.BAAS_BRANCH }}
env:
BAASAAS_KEY: ${{ secrets.BAASAAS_KEY }}

- name: Create Mocha Remote Context
id: mocha-env
run: echo "context=syncLogLevel=warn,longTimeoutMs=${{ env.LONG_TIMEOUT }},baseUrl=${{ steps.baas.outputs.baas-url }}" >> $GITHUB_OUTPUT
run: echo "context=longTimeoutMs=${{ env.LONG_TIMEOUT }}" >> $GITHUB_OUTPUT

- name: Setup Java Gradle cache for android test app
uses: actions/cache@v4
Expand Down
55 changes: 0 additions & 55 deletions .github/workflows/pr-realm-web.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/test-server.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ integration-tests/tests/src/bench/rolledup.js
# TODO: Solve .lock files are produced in "throws when called with an empty string"
integration-tests/**/.lock

# Credentials for the BaaS test server
integration-tests/baas-test-server/.env

# Test coverage artifacts
coverage/
.nyc_output/
Expand Down
Loading

0 comments on commit b69dd1f

Please sign in to comment.