-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #133 from stardog-union/release/0.13.0
Release 0.13.0
- Loading branch information
Showing
38 changed files
with
2,031 additions
and
1,855 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,212 @@ | ||
--- | ||
version: 2.1 | ||
|
||
installs_supported_python_versions: &installs_supported_python_versions | ||
run: | ||
name: Install supported python versions | ||
no_output_timeout: 15m | ||
command: | | ||
set -x | ||
sudo apt-get update -y | ||
yes | sudo add-apt-repository ppa:deadsnakes/ppa || true | ||
sudo apt-get install python3.{8,9,10,11} -yq | ||
sudo apt-get install python3.{8,9}-distutils -yq | ||
run_basic_admin_suite: &run_basic_admin_suite | ||
run: | ||
name: Runs the basic admin suite | ||
no_output_timeout: 15m | ||
command: | | ||
set -x | ||
pytest test/test_admin_basic.py -s | ||
run_connection_suite: &run_connection_suite | ||
run: | ||
name: Runs the test_connection suite | ||
no_output_timeout: 15m | ||
command: | | ||
set -x | ||
pytest test/test_connection.py -s | ||
run_test_server_admin_suite: &run_test_server_admin_suite | ||
run: | ||
name: Runs the test_server_admin suite | ||
no_output_timeout: 15m | ||
command: | | ||
set -x | ||
pytest test/test_server_admin.py -s | ||
run_unit_tests: &run_unit_tests | ||
run: | ||
name: Runs the test_unit suite | ||
no_output_timeout: 15m | ||
command: | | ||
set -x | ||
pytest test/test_unit.py -s | ||
run_utils_tests: &run_utils_tests | ||
run: | ||
name: Runs the test_utils suite | ||
no_output_timeout: 15m | ||
command: | | ||
set -x | ||
pytest test/test_utils.py -s | ||
# See here for supported versions: https://devguide.python.org/versions/ | ||
# We should support everything that's not EOL. | ||
run_test_supported_python_versions: &run_test_supported_python_versions | ||
run: | ||
name: Runs the test_utils suite against all supported python versions. | ||
no_output_timeout: 15m | ||
command: | | ||
set -x | ||
tox | ||
setup_pytest: &setup_pytest | ||
run: | ||
name: Set up local env | ||
command: | | ||
# This is only required because circle might not keep their machine executor completetly up to date. | ||
# apt-get update is failing because of this, hence we add this workaround. We don't use any heroku cli at all in here. | ||
# Main issue here https://discuss.circleci.com/t/heroku-gpg-issues-in-ubuntu-images/43834/3 | ||
sudo rm -rf /etc/apt/sources.list.d/heroku.list | ||
sudo apt-get update -y | ||
sudo apt-get install python3-pip -y | ||
pip3 install -r test-requirements.txt -r requirements.txt | ||
pull_license: &pull_license | ||
run: | ||
name: Pull license | ||
command: | | ||
echo ${pystardog_license} | base64 --decode > ~/project/dockerfiles/stardog-license-key.bin | ||
jobs: | ||
format: | ||
static_analysis: | ||
docker: | ||
- image: python:3.9 | ||
- image: python:latest | ||
steps: | ||
- checkout | ||
- run: | ||
name: Formatter | ||
name: Install dependencies | ||
command: | | ||
pip install -r test-requirements.txt | ||
- run: | ||
name: Black | ||
command: | | ||
black --check . | ||
single_node_tests: | ||
docker: | ||
- image: cimg/base:2020.01 | ||
- run: | ||
# We fail hard if flake8 is not met. | ||
name: Flake8 | ||
command: | | ||
flake8 stardog | ||
- run: | ||
# We allow pylint to fail since it's too strict. | ||
# We should fix these slowly, and come up with a proper configuration to enable limited checks. | ||
name: pylint | ||
command: | | ||
pylint stardog --exit-zero | ||
basic_test_suite_single_node: | ||
machine: | ||
image: ubuntu-2204:2022.10.2 | ||
|
||
steps: | ||
- checkout | ||
|
||
- <<: *pull_license | ||
|
||
- run: | ||
name: Pull license | ||
name: Brings the single node and the required VGs up | ||
no_output_timeout: 15m | ||
command: | | ||
echo ${pystardog_license} | base64 --decode > ~/project/dockerfiles/stardog-license-key.bin | ||
set -x | ||
docker-compose -f docker-compose.single-node.yml up -d | ||
- setup_remote_docker | ||
- run: | ||
name: Waits for stardog stack to come up | ||
command: | | ||
source test/utils/wait.sh | ||
wait_for_start_single_node localhost 5820 | ||
- <<: *setup_pytest | ||
- <<: *run_basic_admin_suite | ||
- <<: *run_connection_suite | ||
- <<: *run_test_server_admin_suite | ||
- <<: *run_utils_tests | ||
- <<: *run_unit_tests | ||
|
||
- run: | ||
name: Start containers and run single node test that are not compatible with cluster | ||
name: Runs the single_node_only_test (These tests only work on single node Stardog instances) | ||
no_output_timeout: 15m | ||
command: | | ||
set -x | ||
docker-compose -f docker-compose.single-node.yml up --exit-code-from tests-single-node | ||
pytest test/test_single_node.py -s | ||
- <<: *installs_supported_python_versions | ||
- <<: *run_test_supported_python_versions | ||
- run: | ||
name: Runs the single_node_only_test against multiple python envs | ||
no_output_timeout: 15m | ||
command: | | ||
set -x | ||
tox -e single_node | ||
cluster_tests: | ||
docker: | ||
- image: cimg/base:2020.01 | ||
basic_test_cluster_mode: | ||
machine: | ||
image: ubuntu-2204:2022.10.2 | ||
|
||
steps: | ||
- checkout | ||
|
||
- <<: *pull_license | ||
|
||
- run: | ||
name: Pull license | ||
name: Start containers and cluster tests | ||
no_output_timeout: 15m | ||
command: | | ||
echo ${pystardog_license} | base64 --decode > ~/project/dockerfiles/stardog-license-key.bin | ||
set -x | ||
docker-compose -f docker-compose.cluster.yml up -d | ||
- setup_remote_docker | ||
- <<: *setup_pytest | ||
|
||
- run: | ||
name: Start containers and cluster tests | ||
name: Waits for stardog stack to come up | ||
command: | | ||
source test/utils/wait.sh | ||
wait_for_start_cluster localhost 5820 | ||
- <<: *run_basic_admin_suite | ||
- <<: *run_connection_suite | ||
- <<: *run_test_server_admin_suite | ||
- <<: *run_utils_tests | ||
- <<: *run_unit_tests | ||
|
||
- run: | ||
name: Runs the test the cluster only suite | ||
no_output_timeout: 15m | ||
command: | | ||
set -x | ||
pytest test/test_cluster.py -s | ||
- <<: *installs_supported_python_versions | ||
- run: | ||
name: Runs the cluster node only tests against multiple python envs | ||
no_output_timeout: 15m | ||
command: | | ||
set -x | ||
docker-compose -f docker-compose.cluster.yml up --exit-code-from tests | ||
tox -e cluster | ||
workflows: | ||
build_and_run_cluster_tests: | ||
build_and_test: | ||
jobs: | ||
- format | ||
- single_node_tests | ||
- cluster_tests | ||
- static_analysis | ||
- basic_test_suite_single_node | ||
- basic_test_cluster_mode | ||
# Have to reenable cache and standby tests | ||
# - cache_tests | ||
# - standby_tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,6 +105,7 @@ venv.bak/ | |
# macos stuff | ||
.idea/ | ||
.DS_Store | ||
.vscode | ||
|
||
# sd license files | ||
stardog-license-key.bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<urn:subj> <urn:pred> <urn:obj> . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
requests==2.22.0 | ||
requests==2.28.1 | ||
requests-toolbelt==0.9.1 | ||
contextlib2==0.5.5 | ||
recommonmark==0.5.0 |
Oops, something went wrong.