Skip to content

Commit

Permalink
RCPP-63 Switch to using Baasaas for sync tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leemaguire committed Apr 2, 2024
1 parent 7e17faf commit 24dd2fd
Show file tree
Hide file tree
Showing 9 changed files with 631 additions and 629 deletions.
69 changes: 13 additions & 56 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
name: CMake Build

env:
REALM_ATLAS_ENDPOINT: ${{ secrets.ATLAS_QA_BASE_URL }}
REALM_BAAS_ENDPOINT: ${{ secrets.APPSERVICES_QA_BASE_URL }}
REALM_ATLAS_API_KEY: ${{ secrets.ATLAS_QA_API_KEY }}
REALM_ATLAS_PRIVATE_API_KEY: ${{ secrets.ATLAS_QA_PRIVATE_API_KEY }}
REALM_ATLAS_PROJECT_ID: ${{ secrets.ATLAS_QA_PROJECT_ID}}
APIKEY: ${{ secrets.REALM_BAASAAS_API_KEY }}
REALM_CI: true
REALM_DISABLE_ANALYTICS: true
on:
Expand All @@ -15,37 +11,26 @@ on:
pull_request:

jobs:
deploy-cluster:
stop-all-containers:
runs-on: ubuntu-latest
name: Deploy Cluster
outputs:
clusterName: ${{ steps.deploy-cluster.outputs.clusterName }}
steps:
- uses: realm/ci-actions/mdb-realm/deploy@28a12a22e135d56db2b678fbe6479c0e1b52f169
id: deploy-cluster
with:
atlasUrl: ${{ env.REALM_ATLAS_ENDPOINT }}
realmUrl: ${{ env.REALM_BAAS_ENDPOINT }}
projectId: ${{ env.REALM_ATLAS_PROJECT_ID }}
apiKey: ${{ env.REALM_ATLAS_API_KEY }}
privateApiKey: ${{ env.REALM_ATLAS_PRIVATE_API_KEY }}

delete-cluster:
runs-on: ubuntu-latest
name: Delete Cluster
name: Stop Stray Containers
if: always()
needs:
- build-macos-sync
- build-linux-sync
- build-windows-sync
steps:
- uses: realm/ci-actions/mdb-realm/cleanup@28a12a22e135d56db2b678fbe6479c0e1b52f169
- name: Checkout Repository
uses: actions/checkout@v3
with:
atlasUrl: ${{ env.REALM_ATLAS_ENDPOINT }}
realmUrl: ${{ env.REALM_BAAS_ENDPOINT }}
projectId: ${{ env.REALM_ATLAS_PROJECT_ID }}
apiKey: ${{ env.REALM_ATLAS_API_KEY }}
privateApiKey: ${{ env.REALM_ATLAS_PRIVATE_API_KEY }}
repository: 'https://github.com/10gen/baasaas.git'
ref: 'main'
- name: Execute CLI
run: |
chmod +x ./cli.sh
./cli.sh mine | grep '"id":' | awk -F '"' '{print $4}' | while read id; do
./cli.sh stop "$id"
done
build-macos-xcode13_1:
Expand All @@ -64,10 +49,6 @@ jobs:
- Release
exclude:
- configuration: ${{ (github.event_name == 'pull_request' && 'Release') || 'none' }}
needs:
- deploy-cluster
env:
REALM_ATLAS_CLUSTER_NAME: ${{ needs.deploy-cluster.outputs.clusterName }}
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -129,10 +110,6 @@ jobs:
- Release
exclude:
- configuration: ${{ (github.event_name == 'pull_request' && 'Release') || 'none' }}
needs:
- deploy-cluster
env:
REALM_ATLAS_CLUSTER_NAME: ${{ needs.deploy-cluster.outputs.clusterName }}
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -194,10 +171,6 @@ jobs:
- Release
exclude:
- configuration: ${{ (github.event_name == 'pull_request' && 'Release') || 'none' }}
needs:
- deploy-cluster
env:
REALM_ATLAS_CLUSTER_NAME: ${{ needs.deploy-cluster.outputs.clusterName }}
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -269,12 +242,8 @@ jobs:
configuration:
- Debug
- Release
needs:
- deploy-cluster
container:
image: ${{ matrix.compiler.name == 'clang' && 'silkeh/clang' || matrix.compiler.name }}:${{ matrix.compiler.version }}
env:
REALM_ATLAS_CLUSTER_NAME: ${{ needs.deploy-cluster.outputs.clusterName }}
steps:
- name: Install Linux Dependencies
run: |
Expand Down Expand Up @@ -341,10 +310,6 @@ jobs:
configuration:
- Debug
- Release
needs:
- deploy-cluster
env:
REALM_ATLAS_CLUSTER_NAME: ${{ needs.deploy-cluster.outputs.clusterName }}
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -414,10 +379,6 @@ jobs:
configuration:
- Debug
- Release
needs:
- deploy-cluster
env:
REALM_ATLAS_CLUSTER_NAME: ${{ needs.deploy-cluster.outputs.clusterName }}
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -459,10 +420,6 @@ jobs:
configuration:
- Debug
- Release
needs:
- deploy-cluster
env:
REALM_ATLAS_CLUSTER_NAME: ${{ needs.deploy-cluster.outputs.clusterName }}
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion src/cpprealm/analytics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ namespace realm {

return (info.kp_proc.p_flag & P_TRACED) != 0;
}
#elif __linux__
#elif __linux__ && ndef(__ANDROID__)

Check failure on line 131 in src/cpprealm/analytics.cpp

View workflow job for this annotation

GitHub Actions / Linux Sync Release (gcc 8)

missing binary operator before token "("

Check failure on line 131 in src/cpprealm/analytics.cpp

View workflow job for this annotation

GitHub Actions / Linux Sync Debug (gcc 8)

missing binary operator before token "("

Check failure on line 131 in src/cpprealm/analytics.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (clang 15)

function-like macro 'ndef' is not defined

Check failure on line 131 in src/cpprealm/analytics.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 8.3)

missing binary operator before token "("

Check failure on line 131 in src/cpprealm/analytics.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 8.3)

missing binary operator before token "("

Check failure on line 131 in src/cpprealm/analytics.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 12.1)

missing binary operator before token "("

Check failure on line 131 in src/cpprealm/analytics.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 11.1)

missing binary operator before token "("

Check failure on line 131 in src/cpprealm/analytics.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 9.1)

missing binary operator before token "("

Check failure on line 131 in src/cpprealm/analytics.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 9.1)

missing binary operator before token "("

Check failure on line 131 in src/cpprealm/analytics.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (clang 15)

function-like macro 'ndef' is not defined

Check failure on line 131 in src/cpprealm/analytics.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 12.1)

missing binary operator before token "("

Check failure on line 131 in src/cpprealm/analytics.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 10.1)

missing binary operator before token "("

Check failure on line 131 in src/cpprealm/analytics.cpp

View workflow job for this annotation

GitHub Actions / Linux Debug (gcc 10.1)

missing binary operator before token "("

Check failure on line 131 in src/cpprealm/analytics.cpp

View workflow job for this annotation

GitHub Actions / Linux Release (gcc 11.1)

missing binary operator before token "("
std::string print_hex(unsigned char *bs, unsigned int len) {
std::stringstream ss;
for (size_t i = 0; i < len; i++) {
Expand Down
Loading

0 comments on commit 24dd2fd

Please sign in to comment.