Skip to content

Commit 5ad3368

Browse files
committed
merge
2 parents c51e144 + 2933921 commit 5ad3368

File tree

378 files changed

+13453
-6820
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

378 files changed

+13453
-6820
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.8.5-beta.1
2+
current_version = 0.8.5-beta.9
33
tag = False
44
tag_name = {new_version}
55
commit = True

.github/workflows/cd-docs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
cd-docs:
1717
strategy:
1818
matrix:
19-
python-version: ["3.11"]
19+
python-version: ["3.12"]
2020
runs-on: ubuntu-latest
2121
steps:
2222
- uses: actions/checkout@v4
@@ -27,7 +27,8 @@ jobs:
2727

2828
- name: Install tox
2929
run: |
30-
pip install -U tox
30+
pip install --upgrade pip uv==0.1.18 tox tox-uv==1.5.1
31+
uv --version
3132
3233
- name: Build the docs
3334
run: |

.github/workflows/cd-hagrid.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
- name: Set up Python
6868
uses: actions/setup-python@v5
6969
with:
70-
python-version: "3.11"
70+
python-version: "3.12"
7171

7272
- name: Install dependencies
7373
if: ${{needs.hagrid-deploy.outputs.current_hash}} != ${{needs.hagrid-deploy.outputs.previous_hash}}
File renamed without changes.

.github/workflows/cd-syft-dev.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
- name: Set up Python
6565
uses: actions/setup-python@v5
6666
with:
67-
python-version: "3.11"
67+
python-version: "3.12"
6868

6969
- name: Set up Docker Buildx
7070
id: buildx
@@ -121,6 +121,17 @@ jobs:
121121
${{ secrets.ACR_SERVER }}/openmined/grid-seaweedfs:dev-${{ github.sha }}
122122
${{ secrets.ACR_SERVER }}/openmined/grid-seaweedfs:${{ steps.grid.outputs.GRID_VERSION }}
123123
124+
- name: Build and push `grid-veilid` image to registry
125+
uses: docker/build-push-action@v5
126+
with:
127+
context: ./packages/grid/veilid
128+
file: ./packages/grid/veilid/veilid.dockerfile
129+
push: true
130+
tags: |
131+
${{ secrets.ACR_SERVER }}/openmined/grid-veilid:dev
132+
${{ secrets.ACR_SERVER }}/openmined/grid-veilid:dev-${{ github.sha }}
133+
${{ secrets.ACR_SERVER }}/openmined/grid-veilid:${{ steps.grid.outputs.GRID_VERSION }}
134+
124135
- name: Build Helm Chart & Copy to infra
125136
if: github.ref == 'refs/heads/dev' || github.event.inputs.deploy-helm == 'true'
126137
shell: bash

.github/workflows/cd-syft.yml

Lines changed: 40 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Set up Python
4141
uses: actions/setup-python@v5
4242
with:
43-
python-version: "3.11"
43+
python-version: "3.12"
4444

4545
# The steps ensure that the cron job is able to run only for
4646
# for beta releases and not for stable releases
@@ -100,7 +100,7 @@ jobs:
100100
if: ${{ !endsWith(matrix.runner, '-arm64') }}
101101
uses: actions/setup-python@v5
102102
with:
103-
python-version: "3.11"
103+
python-version: "3.12"
104104

105105
# Currently psutil package requires gcc to be installed on arm
106106
# for building psutil from source
@@ -118,7 +118,12 @@ jobs:
118118
if: ${{ endsWith(matrix.runner, '-arm64') }}
119119
uses: deadsnakes/[email protected]
120120
with:
121-
python-version: "3.11"
121+
python-version: "3.12"
122+
123+
- name: Install Git
124+
run: |
125+
sudo apt-get update
126+
sudo apt-get install git -y
122127
123128
- name: Check python version
124129
run: |
@@ -128,8 +133,8 @@ jobs:
128133
129134
- name: Install dependencies
130135
run: |
131-
python -m pip install --upgrade pip
132-
pip install --upgrade bump2version tox
136+
pip install --upgrade pip uv==0.1.18 bump2version tox tox-uv==1.5.1
137+
uv --version
133138
134139
- name: Get Release tag
135140
id: get_release_tag
@@ -246,7 +251,24 @@ jobs:
246251
digest="${{ steps.grid-seaweedfs-build.outputs.digest }}"
247252
touch "/tmp/digests/grid-seaweedfs/${digest#sha256:}"
248253
249-
- name: Upload digest for grid-backend, grid-frontend and grid-seaweedfs
254+
- name: Build and push `grid-veilid` image to DockerHub
255+
id: grid-veilid-build
256+
uses: docker/build-push-action@v5
257+
with:
258+
context: ./packages/grid/veilid
259+
file: ./packages/grid/veilid/veilid.dockerfile
260+
platforms: ${{ steps.release_metadata.outputs.release_platform }}
261+
outputs: type=image,name=openmined/grid-veilid,push-by-digest=true,name-canonical=true,push=true
262+
cache-from: type=registry,ref=openmined/grid-veilid:cache-${{ steps.release_metadata.outputs.short_release_platform }}
263+
cache-to: type=registry,ref=openmined/grid-veilid:cache-${{ steps.release_metadata.outputs.short_release_platform}},mode=max
264+
265+
- name: Export digest for grid-veilid
266+
run: |
267+
mkdir -p /tmp/digests/grid-veilid
268+
digest="${{ steps.grid-veilid-build.outputs.digest }}"
269+
touch "/tmp/digests/grid-veilid/${digest#sha256:}"
270+
271+
- name: Upload digest for grid-backend, grid-frontend and grid-seaweedfs, grid-veilid
250272
uses: actions/upload-artifact@v4
251273
with:
252274
name: digests-${{ steps.release_metadata.outputs.grid_version }}-${{ steps.release_metadata.outputs.short_release_platform }}
@@ -305,6 +327,14 @@ jobs:
305327
-t openmined/grid-seaweedfs:${{ needs.build-and-push-docker-images.outputs.release_tag }} \
306328
$(printf 'openmined/grid-seaweedfs@sha256:%s ' *)
307329
330+
- name: Create manifest list and push for grid-veilid
331+
working-directory: /tmp/digests/grid-veilid
332+
run: |
333+
docker buildx imagetools create \
334+
-t openmined/grid-veilid:${{ needs.build-and-push-docker-images.outputs.grid_version }} \
335+
-t openmined/grid-veilid:${{ needs.build-and-push-docker-images.outputs.release_tag }} \
336+
$(printf 'openmined/grid-veilid@sha256:%s ' *)
337+
308338
deploy-syft:
309339
needs: [merge-docker-images]
310340
if: always() && needs.merge-docker-images.result == 'success'
@@ -337,11 +367,11 @@ jobs:
337367
- name: Set up Python
338368
uses: actions/setup-python@v5
339369
with:
340-
python-version: "3.11"
370+
python-version: "3.12"
341371
- name: Install dependencies
342372
run: |
343-
python -m pip install --upgrade pip
344-
pip install --upgrade tox setuptools wheel twine bump2version PyYAML
373+
pip install --upgrade pip uv==0.1.18 tox tox-uv==1.5.1 setuptools wheel twine bump2version PyYAML
374+
uv --version
345375
346376
- name: Bump the Version
347377
if: needs.merge-docker-images.outputs.release_tag == 'beta'
@@ -486,7 +516,7 @@ jobs:
486516
487517
- name: GitHub Release
488518
if: github.event.inputs.release_platform != 'TEST_PYPI'
489-
uses: softprops/action-gh-release@v1
519+
uses: softprops/action-gh-release@v2
490520
with:
491521
name: v${{ steps.release_checks.outputs.github_release_version }}
492522
generate_release_notes: true

.github/workflows/cd-syftcli.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- name: Set up Python
6161
uses: actions/setup-python@v5
6262
with:
63-
python-version: "3.11"
63+
python-version: "3.12"
6464

6565
- name: Install dependencies
6666
if: ${{steps.get-hashes.outputs.current_hash != steps.get-hashes.outputs.previous_hash }}
@@ -117,7 +117,7 @@ jobs:
117117
- name: Set up Python
118118
uses: actions/setup-python@v5
119119
with:
120-
python-version: "3.11"
120+
python-version: "3.12"
121121

122122
- name: Install build dependencies for syftcli
123123
run: |
@@ -181,7 +181,7 @@ jobs:
181181

182182
- name: GitHub Release
183183
if: steps.check-pypi.outputs.released == 'true'
184-
uses: softprops/action-gh-release@v1
184+
uses: softprops/action-gh-release@v2
185185
with:
186186
name: syftcli-v${{ needs.deploy-syft-cli.outputs.deployed_version }}
187187
generate_release_notes: false

.github/workflows/container-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ jobs:
189189
- name: Set up Python
190190
uses: actions/setup-python@v5
191191
with:
192-
python-version: "3.11"
192+
python-version: "3.12"
193193

194194
#Generate SBOM
195195
- name: Generate SBOM
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
name: E2E - Notebook Tests
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
syft_version:
7+
description: "Syft version to test"
8+
required: true
9+
type: string
10+
node_url:
11+
description: "Node URL to use"
12+
required: true
13+
type: string
14+
node_port:
15+
description: "Node port"
16+
required: true
17+
type: number
18+
exclude_notebooks:
19+
description: "Notebooks to exclude ex: not 11-container-images-k8s.ipynb"
20+
required: false
21+
type: string
22+
23+
workflow_call:
24+
inputs:
25+
syft_version:
26+
description: "Syft version to test"
27+
required: true
28+
type: string
29+
node_url:
30+
description: "Node URL to use"
31+
required: true
32+
type: string
33+
node_port:
34+
description: "Node port"
35+
required: true
36+
type: number
37+
exclude_notebooks:
38+
description: "Notebooks to exclude ex: not 11-container-images-k8s.ipynb"
39+
required: false
40+
type: string
41+
42+
jobs:
43+
notebook-test-hagrid:
44+
strategy:
45+
max-parallel: 99
46+
matrix:
47+
os: [ubuntu-latest]
48+
python-version: ["3.12"]
49+
50+
runs-on: ${{ matrix.os }}
51+
steps:
52+
- uses: actions/checkout@v4
53+
54+
- name: Set up Python ${{ matrix.python-version }}
55+
uses: actions/setup-python@v5
56+
57+
with:
58+
python-version: ${{ matrix.python-version }}
59+
60+
- name: Upgrade pip
61+
run: |
62+
python -m pip install --upgrade --user pip
63+
64+
- name: Get pip cache dir
65+
id: pip-cache
66+
shell: bash
67+
run: |
68+
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
69+
70+
- name: pip cache
71+
uses: actions/cache@v4
72+
with:
73+
path: ${{ steps.pip-cache.outputs.dir }}
74+
key: ${{ runner.os }}-pip-py${{ matrix.python-version }}-${{ hashFiles('setup.cfg') }}
75+
restore-keys: |
76+
${{ runner.os }}-pip-py${{ matrix.python-version }}-
77+
78+
- name: Install tox
79+
run: |
80+
pip install tox
81+
82+
- name: Run Notebook tests
83+
env:
84+
SYFT_VERSION: ${{ inputs.syft_version }}
85+
NODE_URL: ${{ inputs.node_url }}
86+
NODE_PORT: ${{ inputs.node_port }}
87+
EXCLUDE_NOTEBOOKS: ${{ inputs.exclude_notebooks }}
88+
run: |
89+
tox -e e2e.test.notebook
90+

.github/workflows/manual-delete-buildjet-cache.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [ubuntu-latest]
14-
python-version: ["3.9", "3.10", "3.11"]
14+
python-version: ["3.10", "3.11", "3.12"]
1515

1616
runs-on: ${{ matrix.os }}
1717
steps:

0 commit comments

Comments
 (0)