Skip to content

Commit 9225547

Browse files
committed
fix protocol json, finalize test
1 parent cd4d05f commit 9225547

2 files changed

Lines changed: 8 additions & 14 deletions

File tree

packages/syft/src/syft/protocol/protocol_version.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@
3737
"hash": "b087d0c62b7d304c6ca80e4fb0e8a7f2a444be8f8cba57490dc09aeb98033105",
3838
"action": "add"
3939
}
40-
},
41-
"EnclaveMetadata": {}
40+
}
4241
}
4342
}
4443
}

tox.ini

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,18 +1201,13 @@ allowlist_externals =
12011201
k3d
12021202
echo
12031203
commands =
1204-
# - create migration data on local 0.8.6 server
1205-
# - dump the data to a file on a local dev server
1206-
# - migrate the data to a new cluster
1207-
# NOTE This is only needed because our previous deployed version
1208-
# does not have the migration feature, once it does we can create
1209-
# the migration data on a k8s deployment as well.
1210-
; tox -e migration.prepare
1204+
# create migration data files on previous syft version
1205+
tox -e migration.prepare
12111206

12121207
# Make migration.yaml available for devspace migration
12131208
bash -c 'cp ${MIGRATION_DATA_DIR}/migration.yaml packages/grid/helm/examples/dev/migration.yaml'
12141209

1215-
# Start the cluster
1210+
# Start the new cluster on syft version we're migrating to
12161211
# set env variable for orchestra deployment type
12171212
bash -c "echo Running with GITHUB_CI=$GITHUB_CI; date"
12181213
python -c 'import syft as sy; sy.stage_protocol_changes()'
@@ -1256,11 +1251,11 @@ commands =
12561251
; # Checking logs generated & startup of test-datasite 1
12571252
bash -c '(kubectl logs service/backend --context k3d-${DATASITE_CLUSTER_NAME} --namespace syft -f &) | grep -q "Application startup complete" || true'
12581253

1259-
# Run Notebook tests
1254+
# Run migration tests
12601255
bash -c 'python -c "import syft as sy; print(\"Migrating to syft version:\", sy.__version__)"'
12611256
pytest -x --nbmake --nbmake-timeout=1000 notebooks/tutorials/version-upgrades/2-migrate-from-file.ipynb -vvvv
12621257

12631258
commands_post =
1264-
; bash -c "CLUSTER_NAME=${DATASITE_CLUSTER_NAME} tox -e dev.k8s.destroy || true"
1265-
; bash -c 'rm -f notebooks/tutorials/version-upgrades/migration.blob'
1266-
; bash -c 'rm -f notebooks/tutorials/version-upgrades/migration.yaml'
1259+
bash -c "CLUSTER_NAME=${DATASITE_CLUSTER_NAME} tox -e dev.k8s.destroy || true"
1260+
bash -c 'rm -f ${MIGRATION_DATA_DIR}/migration.blob'
1261+
bash -c 'rm -f ${MIGRATION_DATA_DIR}/migration.yaml'

0 commit comments

Comments
 (0)