Skip to content

Commit

Permalink
fix path hopefully
Browse files Browse the repository at this point in the history
  • Loading branch information
teo-milea committed Sep 23, 2024
1 parent 9627de8 commit 145c0dc
Show file tree
Hide file tree
Showing 8 changed files with 122 additions and 117 deletions.

Large diffs are not rendered by default.

120 changes: 60 additions & 60 deletions notebooks/scenarios/bigquery/upgradability/0.9.1_notebooks/jobs.json
Original file line number Diff line number Diff line change
@@ -1,174 +1,174 @@
{
"william-thompson[email protected]": [
"michael-adams[email protected]": [
{
"user_email": "william-thompson[email protected]",
"func_name": "simple_query_5aeaf1",
"query": "SELECT table_id, AVG(colname) AS average_score\n FROM dataset_1.table_1\n GROUP BY table_id\n LIMIT 108441",
"user_email": "michael-adams[email protected]",
"func_name": "simple_query_e92e5a",
"query": "SELECT table_id, AVG(colname) AS average_score\n FROM dataset_2.table_1\n GROUP BY table_id\n LIMIT 717808",
"job_type": "simple_query",
"settings": {
"dataset": "dataset_1",
"dataset": "dataset_2",
"table": "table_1",
"groupby_col": "table_id",
"score_col": "colname",
"limit": 108441
"limit": 717808
},
"should_succeed": true,
"should_submit": true,
"code_path": "simple_query_5aeaf1",
"code_path": "simple_query_e92e5a",
"admin_reviewed": true,
"result_as_expected": true
},
{
"user_email": "william-thompson[email protected]",
"func_name": "simple_query_e283cd",
"query": "SELECT table_id, AVG(colname) AS average_score\n FROM dataset_2.table_2\n GROUP BY table_id\n LIMIT 919780",
"user_email": "michael-adams[email protected]",
"func_name": "simple_query_4e10ab",
"query": "SELECT table_id, AVG(colname) AS average_score\n FROM dataset_1.table_1\n GROUP BY table_id\n LIMIT 512806",
"job_type": "simple_query",
"settings": {
"dataset": "dataset_2",
"table": "table_2",
"dataset": "dataset_1",
"table": "table_1",
"groupby_col": "table_id",
"score_col": "colname",
"limit": 919780
"limit": 512806
},
"should_succeed": true,
"should_submit": true,
"code_path": "simple_query_e283cd",
"code_path": "simple_query_4e10ab",
"admin_reviewed": true,
"result_as_expected": true
}
],
"eric-hahn[email protected]": [
"lisa-clark[email protected]": [
{
"user_email": "eric-hahn[email protected]",
"func_name": "simple_query_ae1579",
"query": "SELECT table_id, AVG(colname) AS average_score\n FROM dataset_2.table_1\n GROUP BY table_id\n LIMIT 429598",
"user_email": "lisa-clark[email protected]",
"func_name": "simple_query_5374dd",
"query": "SELECT table_id, AVG(colname) AS average_score\n FROM dataset_1.table_1\n GROUP BY table_id\n LIMIT 55958",
"job_type": "simple_query",
"settings": {
"dataset": "dataset_2",
"dataset": "dataset_1",
"table": "table_1",
"groupby_col": "table_id",
"score_col": "colname",
"limit": 429598
"limit": 55958
},
"should_succeed": true,
"should_submit": true,
"code_path": "simple_query_ae1579",
"code_path": "simple_query_5374dd",
"admin_reviewed": true,
"result_as_expected": true
},
{
"user_email": "eric-hahn[email protected]",
"func_name": "wrong_syntax_query_7e9ca8",
"user_email": "lisa-clark[email protected]",
"func_name": "wrong_syntax_query_cf08ee",
"query": "SELECT * FROM table INCORRECT SYNTAX",
"job_type": "wrong_syntax_query",
"settings": {},
"should_succeed": false,
"should_submit": true,
"code_path": "wrong_syntax_query_7e9ca8",
"code_path": "wrong_syntax_query_cf08ee",
"admin_reviewed": true,
"result_as_expected": true
}
],
"paul-lloyd[email protected]": [
"anthony-simpson[email protected]": [
{
"user_email": "paul-lloyd[email protected]",
"func_name": "simple_query_56749f",
"query": "SELECT table_id, AVG(colname) AS average_score\n FROM dataset_1.table_2\n GROUP BY table_id\n LIMIT 117335",
"user_email": "anthony-simpson[email protected]",
"func_name": "simple_query_e46828",
"query": "SELECT table_id, AVG(colname) AS average_score\n FROM dataset_2.table_2\n GROUP BY table_id\n LIMIT 346093",
"job_type": "simple_query",
"settings": {
"dataset": "dataset_1",
"dataset": "dataset_2",
"table": "table_2",
"groupby_col": "table_id",
"score_col": "colname",
"limit": 117335
"limit": 346093
},
"should_succeed": true,
"should_submit": true,
"code_path": "simple_query_56749f",
"code_path": "simple_query_e46828",
"admin_reviewed": true,
"result_as_expected": true
},
{
"user_email": "paul-lloyd[email protected]",
"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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"job_type": "job_too_much_text",
"settings": {},
"should_succeed": false,
"should_submit": true,
"code_path": "job_too_much_text_c8e01e",
"code_path": "job_too_much_text_47c92e",
"admin_reviewed": true,
"result_as_expected": true
}
],
"john-garrett[email protected]": [
"ian-ray[email protected]": [
{
"user_email": "john-garrett[email protected]",
"func_name": "simple_query_89f22a",
"query": "SELECT table_id, AVG(colname) AS average_score\n FROM dataset_2.table_2\n GROUP BY table_id\n LIMIT 443373",
"user_email": "ian-ray[email protected]",
"func_name": "simple_query_57f511",
"query": "SELECT table_id, AVG(colname) AS average_score\n FROM dataset_1.table_1\n GROUP BY table_id\n LIMIT 199607",
"job_type": "simple_query",
"settings": {
"dataset": "dataset_2",
"table": "table_2",
"dataset": "dataset_1",
"table": "table_1",
"groupby_col": "table_id",
"score_col": "colname",
"limit": 443373
"limit": 199607
},
"should_succeed": true,
"should_submit": true,
"code_path": "simple_query_89f22a",
"code_path": "simple_query_57f511",
"admin_reviewed": true,
"result_as_expected": true
},
{
"user_email": "john-garrett[email protected]",
"func_name": "job_long_name_c7c6acaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"query": "SELECT table_id, AVG(colname) AS average_score\n FROM dataset_2.table_1\n GROUP BY table_id\n LIMIT 138346",
"job_type": "job_long_name",
"settings": {
"dataset": "dataset_2",
"table": "table_1",
"groupby_col": "table_id",
"score_col": "colname",
"limit": 66724
"limit": 138346
},
"should_succeed": true,
"should_submit": true,
"code_path": "job_long_name_c7c6acaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"admin_reviewed": true,
"result_as_expected": true
}
],
"anthony-escobar[email protected]": [
"marie-russo[email protected]": [
{
"user_email": "anthony-escobar[email protected]",
"func_name": "simple_query_953d04",
"query": "SELECT table_id, AVG(colname) AS average_score\n FROM dataset_2.table_2\n GROUP BY table_id\n LIMIT 442633",
"user_email": "marie-russo[email protected]",
"func_name": "simple_query_079c08",
"query": "SELECT table_id, AVG(colname) AS average_score\n FROM dataset_1.table_1\n GROUP BY table_id\n LIMIT 381248",
"job_type": "simple_query",
"settings": {
"dataset": "dataset_2",
"table": "table_2",
"dataset": "dataset_1",
"table": "table_1",
"groupby_col": "table_id",
"score_col": "colname",
"limit": 442633
"limit": 381248
},
"should_succeed": true,
"should_submit": true,
"code_path": "simple_query_953d04",
"code_path": "simple_query_079c08",
"admin_reviewed": true,
"result_as_expected": true
},
{
"user_email": "anthony-escobar[email protected]",
"func_name": "job_funcname_xss_2a6679<script>alert('XSS in funcname')</script>",
"query": "SELECT table_id, AVG(colname) AS average_score\n FROM dataset_1.table_2\n GROUP BY table_id\n LIMIT 455945",
"user_email": "marie-russo[email protected]",
"func_name": "job_funcname_xss_d77c1a<script>alert('XSS in funcname')</script>",
"query": "SELECT table_id, AVG(colname) AS average_score\n FROM dataset_1.table_1\n GROUP BY table_id\n LIMIT 640290",
"job_type": "job_funcname_xss",
"settings": {
"dataset": "dataset_1",
"table": "table_2",
"table": "table_1",
"groupby_col": "table_id",
"score_col": "colname",
"limit": 455945
"limit": 640290
},
"should_succeed": true,
"should_submit": false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
[
{
"name": "William Thompson",
"email": "william-thompson[email protected]",
"password": "H&4TFK4nd1",
"name": "Michael Adams",
"email": "michael-adams[email protected]",
"password": "qRPt9Ua0_6",
"role": "ServiceRole.DATA_SCIENTIST",
"new_password": null,
"email_disabled": true,
"reset_password": false,
"reset_token": null
},
{
"name": "Eric Hahn",
"email": "eric-hahn[email protected]",
"password": "iqeU$Fme@4",
"name": "Lisa Clark",
"email": "lisa-clark[email protected]",
"password": "tC9fZrku_o",
"role": "ServiceRole.DATA_SCIENTIST",
"new_password": null,
"email_disabled": false,
"reset_password": true,
"reset_token": "2o2tvKn3HVYt"
"reset_token": "D9893xYYM1HO"
},
{
"name": "Paul Lloyd",
"email": "paul-lloyd[email protected]",
"password": "O7c9DBMh!b",
"name": "Anthony Simpson",
"email": "anthony-simpson[email protected]",
"password": ")@28JBEb4c",
"role": "ServiceRole.DATA_SCIENTIST",
"new_password": null,
"email_disabled": false,
"reset_password": false,
"reset_token": null
},
{
"name": "John Garrett",
"email": "john-garrett[email protected]",
"password": ")pDQ4r%PX8",
"name": "Ian Ray",
"email": "ian-ray[email protected]",
"password": "rA9miV^sX$",
"role": "ServiceRole.DATA_SCIENTIST",
"new_password": null,
"email_disabled": false,
"reset_password": false,
"reset_token": null
},
{
"name": "Anthony Escobar",
"email": "anthony-escobar[email protected]",
"password": "3J6uWe25a%",
"name": "Marie Russo",
"email": "marie-russo[email protected]",
"password": "$4Asq)sSVb",
"role": "ServiceRole.DATA_SCIENTIST",
"new_password": null,
"email_disabled": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"outputs": [],
"source": [
"server = sy.orchestra.launch(\n",
" name=\"bigquery-high\",\n",
" name=\"bigquery-high-migrations\",\n",
" dev_mode=True,\n",
" server_side_type=\"high\",\n",
" port=\"8080\",\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@
"metadata": {},
"outputs": [],
"source": [
"# migration_data_dir = Path(os.getenv(\"MIGRATION_DATA_DIR\", \".\"))\n",
"migration_data_dir = Path(\".\")\n",
"migration_data_dir = Path(os.getenv(\"MIGRATION_DATA_DIR\", \".\"))\n",
"blob_path = migration_data_dir / \"migration.blob\"\n",
"yaml_path = migration_data_dir / \"migration.yaml\"\n",
"\n",
Expand Down
Binary file modified notebooks/scenarios/bigquery/upgradability/migration.blob
Binary file not shown.
4 changes: 2 additions & 2 deletions notebooks/scenarios/bigquery/upgradability/migration.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
server:
env:
- name: SERVER_UID
value: fbdf5a287e58454cbbd3fac4ad744d37
value: c1bdbee427ff4068ad8a9ebc151c75a2
- name: SERVER_PRIVATE_KEY
value: fcfd09deed32e3574558b6719fed46e0b8fd957d59608e9d8b42ef07c6080d3e
value: 3d9252d25b8c78ddd64915e580016b0a88c5d6372fa138b88a5aaf61bfbb806e
10 changes: 3 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1610,7 +1610,7 @@ commands =
[testenv:migration.scenarios.test]
description = Migration Test
setenv =
MIGRATION_DATA_DIR = {env:MIGRATION_DATA_DIR:notebooks/scenarios/bigquery/upgradability}
MIGRATION_DATA_DIR = {env:MIGRATION_DATA_DIR:.}
ORCHESTRA_DEPLOYMENT_TYPE = {env:ORCHESTRA_DEPLOYMENT_TYPE:python}
DEV_MODE = {env:DEV_MODE:True}
TEST_NOTEBOOK_PATHS = {env:TEST_NOTEBOOK_PATHS:notebooks/scenarios/bigquery/upgradability/0.9.1_notebooks}
Expand All @@ -1625,16 +1625,12 @@ deps =
db-dtypes
google-cloud-bigquery
aiosmtpd
; changedir = {toxinidir}/packages/syft
changedir = {toxinidir}/notebooks
allowlist_externals =
bash
tox
pytest
commands =
; tox -e migration.prepare
; basc -c 'echo ${MIGRATION_DATA_DIR}'
bash -c 'python -c "import syft as sy; print(\"Migrating to syft version:\", sy.__version__)"'
pytest -x --nbmake --nbmake-timeout=1000 notebooks/scenarios/bigquery/upgradability/2-migrate-for-scenarios.ipynb -vvvv --log-cli-level=DEBUG
; commands_post =
; bash -c 'rm -f ${MIGRATION_DATA_DIR}/migration.blob'
; bash -c 'rm -f ${MIGRATION_DATA_DIR}/migration.yaml'
pytest -x --nbmake --nbmake-timeout=1000 scenarios/bigquery/upgradability/2-migrate-for-scenarios.ipynb -vvvv --log-cli-level=DEBUG

0 comments on commit 145c0dc

Please sign in to comment.