Skip to content

Commit

Permalink
Merge branch 'dev' into tests/add_mounted_data_test
Browse files Browse the repository at this point in the history
  • Loading branch information
yashgorana authored Feb 1, 2024
2 parents 0593baf + 901850b commit 608bf6e
Show file tree
Hide file tree
Showing 65 changed files with 2,438 additions and 393 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.8.4-beta.14
current_version = 0.8.4-beta.15
tag = False
tag_name = {new_version}
commit = True
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-tests-enclave.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
docker system prune --all --force
- name: Check for file changes
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v3
id: changes
with:
base: ${{ github.ref }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-tests-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@v4

- name: Check for file changes
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v3
id: changes
with:
base: ${{ github.ref }}
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
docker system prune --all --force
- name: Check for file changes
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v3
id: changes
with:
base: ${{ github.ref }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-tests-hagrid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- uses: actions/checkout@v4

- name: Check for file changes
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v3
id: changes
with:
base: ${{ github.ref }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-tests-stack-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
docker system prune --all --force
- name: Check for file changes
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v3
id: changes
with:
base: ${{ github.ref }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-tests-stack-public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- uses: actions/checkout@v4

- name: Check for file changes
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v3
id: changes
with:
base: ${{ github.ref }}
Expand Down
49 changes: 43 additions & 6 deletions .github/workflows/pr-tests-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
docker system prune --all --force
- name: Check for file changes
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v3
id: changes
with:
base: ${{ github.ref }}
Expand Down Expand Up @@ -251,7 +251,7 @@ jobs:
- uses: actions/checkout@v4

- name: Check for file changes
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v3
id: changes
with:
base: ${{ github.ref }}
Expand Down Expand Up @@ -333,7 +333,7 @@ jobs:
docker system prune --all --force
- name: Check for file changes
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v3
id: changes
with:
base: ${{ github.ref }}
Expand Down Expand Up @@ -531,7 +531,7 @@ jobs:
sudo chown -R $USER:$USER $HOME
- uses: actions/checkout@v4
- name: Check for file changes
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v3
id: changes
with:
base: ${{ github.ref }}
Expand All @@ -544,6 +544,10 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Add K3d Registry
run: |
sudo python ./scripts/patch_hosts.py --add-k3d-registry
# free 10GB of space
- name: Remove unnecessary files
if: matrix.os == 'ubuntu-latest'
Expand Down Expand Up @@ -616,18 +620,51 @@ jobs:
GITHUB_CI: true
shell: bash
run: |
# install k3d
K3D_VERSION=v5.6.0
DEVSPACE_VERSION=v6.3.10
# install k3d
wget https://github.com/k3d-io/k3d/releases/download/${K3D_VERSION}/k3d-linux-amd64
mv k3d-linux-amd64 k3d
chmod +x k3d
export PATH=`pwd`:$PATH
k3d version
DEVSPACE_VERSION=v6.3.3
curl -sSL https://github.com/loft-sh/devspace/releases/download/${DEVSPACE_VERSION}/devspace-linux-amd64 -o ./devspace
chmod +x devspace
devspace version
tox -e stack.test.integration.k8s
tox -e syft.build.helm
tox -e syft.package.helm
# tox -e syft.test.helm
- name: Get current timestamp
id: date
if: failure()
shell: bash
run: echo "date=$(date +%s)" >> $GITHUB_OUTPUT

- name: Collect logs from k3d
if: steps.changes.outputs.stack == 'true' && failure()
shell: bash
run: |
mkdir -p ./k8s-logs
kubectl describe all -A --context k3d-testgateway1 --namespace testgateway1 > ./k8s-logs/testgateway1-desc-${{ steps.date.outputs.date }}.txt
kubectl describe all -A --context k3d-testdomain1 --namespace testdomain1 > ./k8s-logs/testdomain1-desc-${{ steps.date.outputs.date }}.txt
kubectl logs -l app.kubernetes.io/name!=random --prefix=true --context k3d-testgateway1 --namespace testgateway1 > ./k8s-logs/testgateway1-logs-${{ steps.date.outputs.date }}.txt
kubectl logs -l app.kubernetes.io/name!=random --prefix=true --context k3d-testdomain1 --namespace testdomain1 > ./k8s-logs/testdomain1-logs-${{ steps.date.outputs.date }}.txt
ls -la ./k8s-logs
- name: Upload logs to GitHub
uses: actions/upload-artifact@master
if: steps.changes.outputs.stack == 'true' && failure()
with:
name: k8s-logs-${{ matrix.os }}-${{ steps.date.outputs.date }}
path: ./k8s-logs/

- name: Cleanup k3d
if: steps.changes.outputs.stack == 'true' && failure()
shell: bash
run: |
export PATH=`pwd`:$PATH
k3d cluster delete testgateway1 || true
k3d cluster delete testdomain1 || true
k3d registry delete k3d-registry.localhost || true
8 changes: 4 additions & 4 deletions .github/workflows/pr-tests-syft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- uses: actions/checkout@v4

- name: Check for file changes
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v3
id: changes
with:
base: ${{ github.ref }}
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
- uses: actions/checkout@v4

- name: Check for file changes
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v3
id: changes
with:
base: ${{ github.ref }}
Expand Down Expand Up @@ -214,7 +214,7 @@ jobs:
docker system prune --all --force
- name: Check for file changes
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v3
id: changes
with:
base: ${{ github.ref }}
Expand Down Expand Up @@ -312,7 +312,7 @@ jobs:
# sudo chown -R $USER:$USER $HOME
- uses: actions/checkout@v4
- name: Check for file changes
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v3
id: changes
with:
base: ${{ github.ref }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vm-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- uses: actions/checkout@v4

- name: Check for file changes
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v3
id: changes
with:
base: ${{ github.ref }}
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Mono Repo Global Version
__version__ = "0.8.4-beta.14"
__version__ = "0.8.4-beta.15"
# elsewhere we can call this file: `python VERSION` and simply take the stdout

# stdlib
Expand Down
10 changes: 5 additions & 5 deletions notebooks/api/0.8/10-container-images.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"\n",
"RUN pip install pydicom\n",
"\n",
"\"\"\""
"\"\"\".strip()"
]
},
{
Expand Down Expand Up @@ -205,7 +205,7 @@
"source": [
"workerimage: SyftWorkerImage = None\n",
"for image in dockerfile_list:\n",
" if image.config.dockerfile == custom_dockerfile_str:\n",
" if not image.is_prebuilt and image.config.dockerfile == custom_dockerfile_str:\n",
" workerimage = image\n",
" break\n",
"\n",
Expand Down Expand Up @@ -1051,7 +1051,7 @@
"FROM openmined/grid-backend:0.8.4-beta.12\n",
"\n",
"RUN pip install opendp\n",
"\"\"\"\n",
"\"\"\".strip()\n",
"\n",
"docker_config_2 = sy.DockerWorkerConfig(dockerfile=custom_dockerfile_str_2)"
]
Expand Down Expand Up @@ -1202,7 +1202,7 @@
"FROM openmined/grid-backend:0.8.4-beta.12\n",
"\n",
"RUN pip install recordlinkage\n",
"\"\"\"\n",
"\"\"\".strip()\n",
"\n",
"docker_config_3 = sy.DockerWorkerConfig(dockerfile=custom_dockerfile_str_3)\n",
"\n",
Expand Down Expand Up @@ -1406,7 +1406,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.2"
"version": "3.11.7"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 608bf6e

Please sign in to comment.