Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
  •  
  •  
  •  
82 changes: 41 additions & 41 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,21 +134,21 @@ commands:
steps:
- install-pip-requirements
- run: |
tool/test/start-community-server.sh
tool/test/start-core-server.sh
python3 -m pip install wheel
python3 -m pip install --extra-index-url https://repo.typedb.com/public/public-snapshot/python/simple typedb-driver==0.0.0+$(git rev-parse HEAD)
sleep 5
pushd python/tests/deployment/
python3 -m unittest test && export TEST_SUCCESS=0 || export TEST_SUCCESS=1
popd
tool/test/stop-community-server.sh
tool/test/stop-core-server.sh
exit $TEST_SUCCESS

test-pip-snapshot-mac-rosetta:
steps:
- install-brew-rosetta
- run: |
tool/test/start-community-server.sh
tool/test/start-core-server.sh
python3 -m pip install wheel
python3 -m pip install pip
python3 -m pip install -r python/requirements_dev.txt
Expand All @@ -157,7 +157,7 @@ commands:
pushd python/tests/deployment/
python3 -m unittest test && export TEST_SUCCESS=0 || export TEST_SUCCESS=1
popd
tool/test/stop-community-server.sh
tool/test/stop-core-server.sh
exit $TEST_SUCCESS

deploy-pip-release-unix:
Expand Down Expand Up @@ -207,20 +207,20 @@ commands:
test-maven-snapshot-unix:
steps:
- run: |
tool/test/start-community-server.sh
tool/test/start-core-server.sh
sed -i -e "s/DRIVER_JAVA_VERSION_MARKER/0.0.0-$CIRCLE_SHA1/g" java/test/deployment/pom.xml
cat java/test/deployment/pom.xml
(cd java/test/deployment && mvn test)
tool/test/stop-community-server.sh
tool/test/stop-core-server.sh

test-maven-snapshot-mac-rosetta:
steps:
- run: |
tool/test/start-community-server.sh
tool/test/start-core-server.sh
sed -i -e "s/DRIVER_JAVA_VERSION_MARKER/0.0.0-$CIRCLE_SHA1/g" java/test/deployment/pom.xml
cat java/test/deployment/pom.xml
(cd java/test/deployment && /usr/local/bin/mvn test)
tool/test/stop-community-server.sh
tool/test/stop-core-server.sh

deploy-maven-jni-release-unix:
steps:
Expand Down Expand Up @@ -262,12 +262,12 @@ commands:
cmake3 ../c/tests/assembly -DTYPEDB_ASSEMBLY=$(pwd)/$ASSEMBLY &&
cmake3 --build . --config release
popd
tool/test/start-community-server.sh
tool/test/start-core-server.sh
sleep 5
pushd test_assembly_clib
LD_LIBRARY_PATH=$ASSEMBLY/lib ./test_assembly && export TEST_SUCCESS=0 || export TEST_SUCCESS=1
popd
tool/test/stop-community-server.sh
tool/test/stop-core-server.sh
exit $TEST_SUCCESS

test-clib-assembly-mac:
Expand All @@ -285,12 +285,12 @@ commands:
cmake ../c/tests/assembly -DTYPEDB_ASSEMBLY=$(pwd)/$ASSEMBLY -DCMAKE_OSX_ARCHITECTURES=<<parameters.target-arch>> &&
cmake --build . --config release
popd
tool/test/start-community-server.sh
tool/test/start-core-server.sh
sleep 5
pushd test_assembly_clib
DYLD_LIBRARY_PATH=$ASSEMBLY/lib ./test_assembly && export TEST_SUCCESS=0 || export TEST_SUCCESS=1
popd
tool/test/stop-community-server.sh
tool/test/stop-core-server.sh
exit $TEST_SUCCESS

deploy-clib-release-unix:
Expand Down Expand Up @@ -326,12 +326,12 @@ commands:
cmake3 ../cpp/test/assembly -DTYPEDB_ASSEMBLY=$(pwd)/$ASSEMBLY &&
cmake3 --build . --config release
popd
tool/test/start-community-server.sh
tool/test/start-core-server.sh
sleep 5
pushd test_assembly_cpp
LD_LIBRARY_PATH=$ASSEMBLY/lib ./test_assembly && export TEST_SUCCESS=0 || export TEST_SUCCESS=1
popd
tool/test/stop-community-server.sh
tool/test/stop-core-server.sh
exit $TEST_SUCCESS

test-cpp-assembly-mac:
Expand All @@ -349,12 +349,12 @@ commands:
cmake ../cpp/test/assembly -DTYPEDB_ASSEMBLY=$(pwd)/$ASSEMBLY -DCMAKE_OSX_ARCHITECTURES=<<parameters.target-arch>> &&
cmake --build . --config release
popd
tool/test/start-community-server.sh
tool/test/start-core-server.sh
sleep 5
pushd test_assembly_cpp
DYLD_LIBRARY_PATH=$ASSEMBLY/lib ./test_assembly && export TEST_SUCCESS=0 || export TEST_SUCCESS=1
popd
tool/test/stop-community-server.sh
tool/test/stop-core-server.sh
exit $TEST_SUCCESS

deploy-cpp-release-unix:
Expand Down Expand Up @@ -410,22 +410,22 @@ commands:
test-dotnet-snapshot-unix:
steps:
- run: |
tool/test/start-community-server.sh
tool/test/start-core-server.sh
sleep 5
sed -i -e "s/DRIVER_CSHARP_VERSION_MARKER/0.0.0-$CIRCLE_SHA1/g" csharp/Test/Deployment/NugetApplicationTest.csproj
cat csharp/Test/Deployment/NugetApplicationTest.csproj
(cd csharp/Test/Deployment && dotnet run NugetApplicationTest.csproj)
tool/test/stop-community-server.sh
tool/test/stop-core-server.sh

test-dotnet-snapshot-mac-rosetta:
steps:
- run: |
tool/test/start-community-server.sh
tool/test/start-core-server.sh
sleep 5
sed -i -e "s/DRIVER_CSHARP_VERSION_MARKER/0.0.0-$CIRCLE_SHA1/g" csharp/Test/Deployment/NugetApplicationTest.csproj
cat csharp/Test/Deployment/NugetApplicationTest.csproj
(cd csharp/Test/Deployment && /usr/local/bin/dotnet run NugetApplicationTest.csproj)
tool/test/stop-community-server.sh
tool/test/stop-core-server.sh

deploy-dotnet-runtime-release-unix:
steps:
Expand Down Expand Up @@ -486,13 +486,13 @@ commands:
test-npm-snapshot-unix:
steps:
- run: |
tool/test/start-community-server.sh
tool/test/start-core-server.sh
cd nodejs/test/deployment/
npm install --registry https://npm.cloudsmith.io/typedb/public-snapshot/ "typedb-driver@0.0.0-$CIRCLE_SHA1"
npm install jest --global
jest --detectOpenHandles application.test.js && export TEST_SUCCESS=0 || export TEST_SUCCESS=1
cd -
tool/test/stop-community-server.sh
tool/test/stop-core-server.sh
exit $TEST_SUCCESS

deploy-npm-release-unix:
Expand Down Expand Up @@ -793,7 +793,8 @@ jobs:
bazel-arch: amd64
- deploy-crate-release-unix
- deploy-maven-release-unix
- deploy-http-ts-npm-release-unix
# TODO: http-ts is disabled in the clustering branch
# - deploy-http-ts-npm-release-unix
# - deploy-npm-release-unix

deploy-release-dotnet-any:
Expand Down Expand Up @@ -845,32 +846,32 @@ workflows:
- deploy-snapshot-linux-arm64:
filters:
branches:
only: [master]
only: [master, cluster-support-feature-branch]

- deploy-snapshot-linux-x86_64:
filters:
branches:
only: [master]
only: [master, cluster-support-feature-branch]

- deploy-snapshot-mac-arm64:
filters:
branches:
only: [master]
only: [master, cluster-support-feature-branch]

- deploy-snapshot-mac-x86_64:
filters:
branches:
only: [master]
only: [master, cluster-support-feature-branch]

- deploy-snapshot-windows-x86_64:
filters:
branches:
only: [master]
only: [master, cluster-support-feature-branch]

- deploy-snapshot-any:
filters:
branches:
only: [master]
only: [master, cluster-support-feature-branch]
requires:
- deploy-snapshot-linux-arm64
- deploy-snapshot-linux-x86_64
Expand All @@ -892,7 +893,7 @@ workflows:
- test-snapshot-linux-arm64:
filters:
branches:
only: [master]
only: [master, cluster-support-feature-branch]
requires:
- deploy-snapshot-linux-arm64
- deploy-snapshot-any
Expand All @@ -901,7 +902,7 @@ workflows:
- test-snapshot-linux-x86_64:
filters:
branches:
only: [master]
only: [master, cluster-support-feature-branch]
requires:
- deploy-snapshot-linux-x86_64
- deploy-snapshot-any
Expand All @@ -910,7 +911,7 @@ workflows:
- test-snapshot-mac-arm64:
filters:
branches:
only: [master]
only: [master, cluster-support-feature-branch]
requires:
- deploy-snapshot-mac-arm64
- deploy-snapshot-any
Expand All @@ -919,20 +920,19 @@ workflows:
- test-snapshot-mac-x86_64:
filters:
branches:
only: [master]
only: [master, cluster-support-feature-branch]
requires:
- deploy-snapshot-mac-x86_64
- deploy-snapshot-any
# - deploy-snapshot-dotnet-any

# TODO: Windows typedb artifact is not ready
# - test-snapshot-windows-x86_64:
# filters:
# branches:
# only: [master]
# requires:
# - deploy-snapshot-windows-x86_64
# - deploy-snapshot-any
- test-snapshot-windows-x86_64:
filters:
branches:
only: [master, cluster-support-feature-branch]
requires:
- deploy-snapshot-windows-x86_64
- deploy-snapshot-any
# - deploy-snapshot-dotnet-any

# TODO: npm is not ready
Expand Down
2 changes: 1 addition & 1 deletion .circleci/windows/clib/test_assembly.bat
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ cmake --build . --config release
popd
set PATH=%cd%\test_assembly_clib\typedb-driver-clib-windows-x86_64\lib;%PATH%;

START /B "" typedb-all-windows\typedb server --development-mode.enabled=true
START /B "" typedb-all-windows\typedb server --development-mode.enabled=true --server.http.enabled=false
powershell -Command "Start-Sleep -Seconds 10"

test_assembly_clib\Release\test_assembly.exe
Expand Down
2 changes: 1 addition & 1 deletion .circleci/windows/cpp/test_assembly.bat
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ cmake --build . --config release
popd
set PATH=%cd%\test_assembly_cpp\typedb-driver-cpp-windows-x86_64\lib;%PATH%;

START /B "" typedb-all-windows\typedb server --development-mode.enabled=true
START /B "" typedb-all-windows\typedb server --development-mode.enabled=true --server.http.enabled=false
powershell -Command "Start-Sleep -Seconds 10"

test_assembly_cpp\Release\test_assembly.exe
Expand Down
10 changes: 5 additions & 5 deletions .circleci/windows/csharp/test_deploy_snapshot.bat
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ choco install 7zip.portable --limit-output --yes --no-progress
CALL refreshenv

bazel --output_user_root=C:\b build --config=ci @typedb_artifact_windows-x86_64//file
powershell -Command "Move-Item -Path bazel-typedb-driver\external\typedb_artifact_windows-x86_64\file\typedb-server-windows* -Destination typedb-server-windows.zip"
7z x typedb-server-windows.zip
RD /S /Q typedb-server-windows
powershell -Command "Move-Item -Path typedb-server-windows-* -Destination typedb-server-windows"
START /B "" typedb-server-windows\typedb server --development-mode.enable=true
powershell -Command "Move-Item -Path bazel-typedb-driver\external\typedb_artifact_windows-x86_64\file\typedb-all-windows* -Destination typedb-all-windows.zip"
7z x typedb-all-windows.zip
RD /S /Q typedb-all-windows
powershell -Command "Move-Item -Path typedb-all-windows-* -Destination typedb-all-windows"
START /B "" typedb-all-windows\typedb server --development-mode.enabled=true --server.http.enabled=false

powershell -Command "(gc csharp\Test\Deployment\NugetApplicationTest.csproj) -replace 'DRIVER_CSHARP_VERSION_MARKER', '0.0.0-%CIRCLE_SHA1%' | Out-File -encoding ASCII csharp\Test\Deployment\NugetApplicationTest.csproj"
type csharp\Test\Deployment\NugetApplicationTest.csproj
Expand Down
10 changes: 5 additions & 5 deletions .circleci/windows/java/test_deploy_snapshot.bat
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ choco install 7zip.portable --limit-output --yes --no-progress
CALL refreshenv

bazel --output_user_root=C:\b build --config=ci @typedb_artifact_windows-x86_64//file
powershell -Command "Move-Item -Path bazel-typedb-driver\external\typedb_artifact_windows-x86_64\file\typedb-server-windows* -Destination typedb-server-windows.zip"
7z x typedb-server-windows.zip
RD /S /Q typedb-server-windows
powershell -Command "Move-Item -Path typedb-server-windows-* -Destination typedb-server-windows"
START /B "" typedb-server-windows\typedb server --development-mode.enable=true
powershell -Command "Move-Item -Path bazel-typedb-driver\external\typedb_artifact_windows-x86_64\file\typedb-all-windows* -Destination typedb-all-windows.zip"
7z x typedb-all-windows.zip
RD /S /Q typedb-all-windows
powershell -Command "Move-Item -Path typedb-all-windows-* -Destination typedb-all-windows"
START /B "" typedb-all-windows\typedb server --development-mode.enabled=true --server.http.enabled=false

powershell -Command "(gc java\test\deployment\pom.xml) -replace 'DRIVER_JAVA_VERSION_MARKER', '0.0.0-%CIRCLE_SHA1%' | Out-File -encoding ASCII java\test\deployment\pom.xml"
type java\test\deployment\pom.xml
Expand Down
10 changes: 5 additions & 5 deletions .circleci/windows/python/test_deploy_snapshot.bat
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ git rev-parse HEAD > version_temp.txt
set /p VER=<version_temp.txt

bazel --output_user_root=C:\b build --config=ci @typedb_artifact_windows-x86_64//file
powershell -Command "Move-Item -Path bazel-typedb-driver\external\typedb_artifact_windows-x86_64\file\typedb-server-windows* -Destination typedb-server-windows.zip"
7z x typedb-server-windows.zip
RD /S /Q typedb-server-windows
powershell -Command "Move-Item -Path typedb-server-windows-* -Destination typedb-server-windows"
START /B "" typedb-server-windows\typedb server --development-mode.enable=true
powershell -Command "Move-Item -Path bazel-typedb-driver\external\typedb_artifact_windows-x86_64\file\typedb-all-windows* -Destination typedb-all-windows.zip"
7z x typedb-all-windows.zip
RD /S /Q typedb-all-windows
powershell -Command "Move-Item -Path typedb-all-windows-* -Destination typedb-all-windows"
START /B "" typedb-all-windows\typedb server --development-mode.enabled=true --server.http.enabled=false

python3 -m pip install --extra-index-url https://repo.typedb.com/public/public-snapshot/python/simple typedb-driver==0.0.0+%VER%
cd python/tests/deployment
Expand Down
Loading
Loading