Skip to content

Commit

Permalink
Merge branch 'dev' into network-test
Browse files Browse the repository at this point in the history
  • Loading branch information
khoaguin committed Apr 1, 2024
2 parents 60e97e9 + 197a4f7 commit af23210
Show file tree
Hide file tree
Showing 40 changed files with 390 additions and 329 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.8.6-beta.1
current_version = 0.8.5-post.1
tag = False
tag_name = {new_version}
commit = True
Expand Down
2 changes: 1 addition & 1 deletion .bumpversion_stable.cfg
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.8.5
current_version = 0.8.5-post.1
tag = False
tag_name = {new_version}
commit = True
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-tests-hagrid.yml
Expand Up @@ -80,7 +80,7 @@ jobs:
if: steps.changes.outputs.hagrid == 'true'
run: |
bandit -r hagrid
safety check -i 42923 -i 54229 -i 54230 -i 54230 -i 54229 -i 62044 -i 65213
safety check -i 42923 -i 54229 -i 54230 -i 54230 -i 54229 -i 62044 -i 65213 -i 54564
- name: Run normal tests
if: steps.changes.outputs.hagrid == 'true'
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pr-tests-stack.yml
Expand Up @@ -293,11 +293,11 @@ jobs:
run: |
pip install --upgrade tox tox-uv==1.5.1
- name: Run syft backend base image building test
if: steps.changes.outputs.stack == 'true'
timeout-minutes: 60
run: |
tox -e backend.test.basecpu
# - name: Run syft backend base image building test
# if: steps.changes.outputs.stack == 'true'
# timeout-minutes: 60
# run: |
# tox -e backend.test.basecpu

pr-tests-notebook-stack:
strategy:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/pr-tests-syft.yml
Expand Up @@ -110,6 +110,7 @@ jobs:
python-version: ["3.12"]
deployment-type: ["python"]
notebook-paths: ["tutorials"]
bump-version: ["False"]
include:
- python-version: "3.11"
os: "ubuntu-latest"
Expand All @@ -119,6 +120,11 @@ jobs:
os: "ubuntu-latest"
deployment-type: "python"
notebook-paths: "tutorials"
- python-version: "3.12"
os: "ubuntu-latest"
deployment-type: "python"
notebook-paths: "tutorials"
bump-version: "True"

runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -183,6 +189,7 @@ jobs:
env:
ORCHESTRA_DEPLOYMENT_TYPE: "${{ matrix.deployment-type }}"
TEST_NOTEBOOK_PATHS: "${{ matrix.notebook-paths }}"
BUMP_VERSION: "${{ matrix.bump-version }}"
with:
timeout_seconds: 2400
max_attempts: 3
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -137,7 +137,7 @@ helm install ... --set ingress.class="gce"

`0.9.0` - Coming soon...
`0.8.6` (Beta) - `dev` branch 👈🏽 <a href="https://github.com/OpenMined/PySyft/tree/dev/notebooks/api/0.8">API</a> - Coming soon...
`0.8.5` (Stable) - <a href="https://github.com/OpenMined/PySyft/tree/0.8.5/notebooks/api/0.8">API</a>
`0.8.5-post.1` (Stable) - <a href="https://github.com/OpenMined/PySyft/tree/0.8.5-post.1/notebooks/api/0.8">API</a>

Deprecated:

Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1,5 +1,5 @@
# Mono Repo Global Version
__version__ = "0.8.6-beta.1"
__version__ = "0.8.5-post.1"
# elsewhere we can call this file: `python VERSION` and simply take the stdout

# stdlib
Expand Down
18 changes: 6 additions & 12 deletions notebooks/api/0.8/06-multiple-code-requests.ipynb
Expand Up @@ -478,7 +478,8 @@
"outputs": [],
"source": [
"datasets = ds_client.datasets.search(name=\"My Sample Dataset - II\")\n",
"dataset_ptr2 = datasets[0]"
"dataset_ptr2 = datasets[0]\n",
"dataset_ptr2"
]
},
{
Expand All @@ -489,7 +490,8 @@
"outputs": [],
"source": [
"# Validate if input policy is violated\n",
"sum_ptr = ds_client.code.calculate_sum(data=dataset_ptr2.assets[0])"
"sum_ptr = ds_client.code.calculate_sum(data=dataset_ptr2.assets[0])\n",
"sum_ptr"
]
},
{
Expand All @@ -499,7 +501,7 @@
"metadata": {},
"outputs": [],
"source": [
"assert isinstance(sum_ptr, sy.SyftError), sum_ptr"
"assert isinstance(sum_ptr, sy.SyftError), (sum_ptr, str(dataset_ptr2.assets[0]))"
]
},
{
Expand Down Expand Up @@ -547,17 +549,9 @@
},
"outputs": [],
"source": [
"if node.node_type.value == \"python\":\n",
"if node.deployment_type.value in [\"python\", \"single_container\"]:\n",
" node.land()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "40",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
12 changes: 6 additions & 6 deletions notebooks/api/0.8/10-container-images.ipynb
Expand Up @@ -131,8 +131,8 @@
"metadata": {},
"outputs": [],
"source": [
"custom_dockerfile_str = f\"\"\"\n",
"FROM openmined/grid-backend:{syft_base_worker_tag}\n",
"custom_dockerfile_str = \"\"\"\n",
"FROM openmined/grid-backend:0.8.5-beta.10\n",
"\n",
"RUN pip install pydicom\n",
"\n",
Expand Down Expand Up @@ -1108,8 +1108,8 @@
"metadata": {},
"outputs": [],
"source": [
"custom_dockerfile_str_2 = f\"\"\"\n",
"FROM openmined/grid-backend:{syft_base_worker_tag}\n",
"custom_dockerfile_str_2 = \"\"\"\n",
"FROM openmined/grid-backend:0.8.5-beta.10\n",
"\n",
"RUN pip install opendp\n",
"\"\"\".strip()\n",
Expand Down Expand Up @@ -1260,8 +1260,8 @@
"metadata": {},
"outputs": [],
"source": [
"custom_dockerfile_str_3 = f\"\"\"\n",
"FROM openmined/grid-backend:{syft_base_worker_tag}\n",
"custom_dockerfile_str_3 = \"\"\"\n",
"FROM openmined/grid-backend:0.8.5-beta.10\n",
"\n",
"RUN pip install recordlinkage\n",
"\"\"\".strip()\n",
Expand Down
2 changes: 1 addition & 1 deletion packages/grid/VERSION
@@ -1,5 +1,5 @@
# Mono Repo Global Version
__version__ = "0.8.6-beta.1"
__version__ = "0.8.5-post.1"
# elsewhere we can call this file: `python VERSION` and simply take the stdout

# stdlib
Expand Down
2 changes: 1 addition & 1 deletion packages/grid/backend/worker_cpu.dockerfile
Expand Up @@ -9,7 +9,7 @@
# Later we'd want to uninstall old python, and then install a new python runtime...
# ... but pre-built syft deps may break!

ARG SYFT_VERSION_TAG="0.8.6-beta.1"
ARG SYFT_VERSION_TAG="0.8.5-post.1"
FROM openmined/grid-backend:${SYFT_VERSION_TAG}

ARG PYTHON_VERSION="3.12"
Expand Down
2 changes: 1 addition & 1 deletion packages/grid/devspace.yaml
Expand Up @@ -25,7 +25,7 @@ vars:
DEVSPACE_ENV_FILE: "default.env"
CONTAINER_REGISTRY: "docker.io"
NODE_NAME: "mynode"
VERSION: "0.8.6-beta.1"
VERSION: "0.8.5-post.1"

# This is a list of `images` that DevSpace can build for this project
# We recommend to skip image building during development (devspace dev) as much as possible
Expand Down
2 changes: 1 addition & 1 deletion packages/grid/frontend/package.json
@@ -1,6 +1,6 @@
{
"name": "pygrid-ui",
"version": "0.8.6-beta.1",
"version": "0.8.5-post.1",
"private": true,
"scripts": {
"dev": "pnpm i && vite dev --host --port 80",
Expand Down

0 comments on commit af23210

Please sign in to comment.