gen3-dataops-toolkit 3.6.0__tar.gz → 3.6.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/PKG-INFO +6 -1
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/README.md +5 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/pyproject.toml +1 -1
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/cli/synth.py +14 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/services/synthetic_data/full_deploy_dd_and_synth.sh +25 -15
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/__init__.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/cli/__init__.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/cli/_internal/__init__.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/cli/_internal/dispatch.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/cli/_internal/registry.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/cli/_internal/resolve.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/cli/_internal/runner.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/cli/_internal/safety.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/cli/config_cmds.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/cli/delete_cmds.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/cli/dict_cmds.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/cli/ec2_cmds.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/cli/indexd_cmds.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/cli/jobs.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/cli/k8s.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/cli/main.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/cli/metadata.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/cli/pipeline_cmds.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/cli/release_cmds.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/config.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/indexd/__init__.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/indexd/file_access.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/indexd/indexd_registrar.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/ingest/ingest.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/resolver.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/services/delete/delete_all_metadata_for_project.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/services/delete/delete_metadata.sh +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/services/delete/delete_metadata_by_guid.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/services/dictionary/deploy_dd.sh +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/services/dictionary/pull_dict.sh +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/services/dictionary/upload_dictionary.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/services/indexd/register_indexd.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/services/indexd/verify_file_access.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/services/k8s_ops/argocd_restart_etl.sh +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/services/k8s_ops/argocd_restart_ms.sh +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/services/k8s_ops/argocd_restart_schema.sh +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/services/k8s_ops/login_to_pod.sh +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/services/k8s_ops/restart_etl_and_ms.sh +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/services/synthetic_data/delete_synth_metadata_sheepdog.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/services/synthetic_data/generate_synth_metadata.sh +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/services/synthetic_data/upload_synth_metadata_sheepdog.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/services/upload/metadata/upload_all_studies.sh +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/services/upload/metadata/upload_metadata.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/upload/__init__.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/upload/metadata_deleter.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/upload/metadata_submitter.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/upload/upload_synthdata_s3.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/utils/athena_utils.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/utils/dbt_utils.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/utils/release_writer.py +0 -0
- {gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/validate/validate.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gen3-dataops-toolkit
|
|
3
|
-
Version: 3.6.
|
|
3
|
+
Version: 3.6.1
|
|
4
4
|
Summary: Gen3 DataOps toolkit (g3dt): operate SSM-published Gen3 data pipeline environments
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Author: JoshuaHarris391
|
|
@@ -224,6 +224,11 @@ g3dt synth generate synthetic_dataset_1 --llm -n 100 -e test
|
|
|
224
224
|
g3dt synth deploy -e test --studies synthetic_dataset_1 -n 100 --prev-version v1.2.0
|
|
225
225
|
```
|
|
226
226
|
|
|
227
|
+
`deploy --skip-dict` runs the synthetic-data-only flow (delete previous
|
|
228
|
+
batch, generate, upload, ETL) without re-uploading the dictionary or
|
|
229
|
+
restarting the schema microservices — use it when the deployed dictionary is
|
|
230
|
+
already current.
|
|
231
|
+
|
|
227
232
|
`deploy` without `--studies` falls back to the original ACDC demo set
|
|
228
233
|
(`AusDiab_Simulated,Baker-Biobank_Simulated,BioHeart-CT_Simulated,CAUGHT-CAD_Simulated`
|
|
229
234
|
at 30,60,20,55 records, previous batch `v1.0.0`) — kept for continuity; any
|
|
@@ -190,6 +190,11 @@ g3dt synth generate synthetic_dataset_1 --llm -n 100 -e test
|
|
|
190
190
|
g3dt synth deploy -e test --studies synthetic_dataset_1 -n 100 --prev-version v1.2.0
|
|
191
191
|
```
|
|
192
192
|
|
|
193
|
+
`deploy --skip-dict` runs the synthetic-data-only flow (delete previous
|
|
194
|
+
batch, generate, upload, ETL) without re-uploading the dictionary or
|
|
195
|
+
restarting the schema microservices — use it when the deployed dictionary is
|
|
196
|
+
already current.
|
|
197
|
+
|
|
193
198
|
`deploy` without `--studies` falls back to the original ACDC demo set
|
|
194
199
|
(`AusDiab_Simulated,Baker-Biobank_Simulated,BioHeart-CT_Simulated,CAUGHT-CAD_Simulated`
|
|
195
200
|
at 30,60,20,55 records, previous batch `v1.0.0`) — kept for continuity; any
|
|
@@ -226,6 +226,12 @@ def deploy(
|
|
|
226
226
|
help="Dictionary version whose previously-uploaded synthetic batch is "
|
|
227
227
|
f"deleted before uploading the new one. Default: {DEPLOY_DEFAULT_PREV_VERSION}.",
|
|
228
228
|
),
|
|
229
|
+
skip_dict: bool = typer.Option(
|
|
230
|
+
False, "--skip-dict",
|
|
231
|
+
help="Skip the dictionary upload and schema restarts (steps 1-2) — "
|
|
232
|
+
"synthetic data only: delete previous batch, generate, upload, run "
|
|
233
|
+
"ETL. Use when the deployed dictionary is already current.",
|
|
234
|
+
),
|
|
229
235
|
) -> None:
|
|
230
236
|
"""Full end-to-end synthetic deploy: the whole cycle in one command.
|
|
231
237
|
|
|
@@ -240,6 +246,11 @@ def deploy(
|
|
|
240
246
|
5. upload the new batch to Gen3
|
|
241
247
|
6. run the ETL cronjob (env's SSM etl_cronjob)
|
|
242
248
|
|
|
249
|
+
With --skip-dict, steps 1-2 are skipped (the schema is still fetched
|
|
250
|
+
locally if missing — generation validates against it) and the flow is
|
|
251
|
+
synthetic-data only. Equivalent by hand: synth delete + synth generate +
|
|
252
|
+
synth upload + k8s restart-etl.
|
|
253
|
+
|
|
243
254
|
Provider/model, restart targets, and the ETL cronjob come from the env's
|
|
244
255
|
SSM tree unless overridden; the API key path comes from
|
|
245
256
|
--llm-api-key-file or the marker. Studies and record counts are batch
|
|
@@ -247,6 +258,7 @@ def deploy(
|
|
|
247
258
|
|
|
248
259
|
Examples:
|
|
249
260
|
g3dt synth deploy -e test --studies synthetic_dataset_1 -n 100
|
|
261
|
+
g3dt synth deploy -e test --studies synthetic_dataset_1 -n 100 --skip-dict
|
|
250
262
|
g3dt synth deploy -e test --studies "s1,s2" -n "100,50" --prev-version v1.2.0
|
|
251
263
|
"""
|
|
252
264
|
e = env_of(env)
|
|
@@ -265,6 +277,8 @@ def deploy(
|
|
|
265
277
|
env_vars["G3DT_SYNTH_NUM_RECORDS"] = num_records
|
|
266
278
|
if prev_version:
|
|
267
279
|
env_vars["G3DT_SYNTH_PREV_VERSION"] = prev_version
|
|
280
|
+
if skip_dict:
|
|
281
|
+
env_vars["G3DT_SYNTH_SKIP_DICT"] = "1"
|
|
268
282
|
runner.run(
|
|
269
283
|
runner.bash_script(
|
|
270
284
|
"services/synthetic_data/full_deploy_dd_and_synth.sh", env
|
|
@@ -84,22 +84,32 @@ if ! aws eks update-kubeconfig \
|
|
|
84
84
|
exit 1
|
|
85
85
|
fi
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
87
|
+
if [ -z "${G3DT_SYNTH_SKIP_DICT:-}" ]; then
|
|
88
|
+
echo "==== [1] Pulling dictionary for version ${VERSION} ===="
|
|
89
|
+
bash "${SERVICE_DIR}/dictionary/pull_dict.sh" "${DICT_URL}" "${DICT_FILENAME}"
|
|
90
|
+
|
|
91
|
+
echo "==== [2] Uploading dictionary to S3: s3://${SCHEMA_S3_URI} ===="
|
|
92
|
+
UPLOAD_DICT_ARGS=("${SCHEMA_DIR}/${DICT_FILENAME}" "s3://${SCHEMA_S3_URI}")
|
|
93
|
+
# The optional trailing positional is the AWS profile; omit it for ambient credentials.
|
|
94
|
+
if [ -n "${G3DT_AWS_PROFILE:-}" ]; then
|
|
95
|
+
UPLOAD_DICT_ARGS+=("${G3DT_AWS_PROFILE}")
|
|
96
|
+
fi
|
|
97
|
+
python3 "${SERVICE_DIR}/dictionary/upload_dictionary.py" "${UPLOAD_DICT_ARGS[@]}"
|
|
98
|
+
|
|
99
|
+
echo "==== [3] Restarting microservices (schema) ===="
|
|
100
|
+
bash "${ARGO_SCRIPT_DIR}/argocd_restart_schema.sh" \
|
|
101
|
+
-d "${DOMAIN}" \
|
|
102
|
+
-a "${APP_NAME}" \
|
|
103
|
+
-n "${NAMESPACE}"
|
|
104
|
+
else
|
|
105
|
+
echo "==== [1-3] Skipped dictionary upload + schema restarts (--skip-dict) ===="
|
|
106
|
+
# Generation still validates against the local schema copy — fetch it if
|
|
107
|
+
# it is missing (a local download only; the commons is not touched).
|
|
108
|
+
if [ ! -f "${SCHEMA_DIR}/${DICT_FILENAME}" ]; then
|
|
109
|
+
echo "Local schema missing; pulling ${VERSION}..."
|
|
110
|
+
bash "${SERVICE_DIR}/dictionary/pull_dict.sh" "${DICT_URL}" "${DICT_FILENAME}"
|
|
111
|
+
fi
|
|
95
112
|
fi
|
|
96
|
-
python3 "${SERVICE_DIR}/dictionary/upload_dictionary.py" "${UPLOAD_DICT_ARGS[@]}"
|
|
97
|
-
|
|
98
|
-
echo "==== [3] Restarting microservices (schema) ===="
|
|
99
|
-
bash "${ARGO_SCRIPT_DIR}/argocd_restart_schema.sh" \
|
|
100
|
-
-d "${DOMAIN}" \
|
|
101
|
-
-a "${APP_NAME}" \
|
|
102
|
-
-n "${NAMESPACE}"
|
|
103
113
|
|
|
104
114
|
echo "==== [4] Deleting old synthetic data (${STUDIES}) for version ${PREV_VERSION} ===="
|
|
105
115
|
DELETE_SYNTH_ARGS=(
|
|
File without changes
|
|
File without changes
|
{gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/cli/_internal/__init__.py
RENAMED
|
File without changes
|
{gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/cli/_internal/dispatch.py
RENAMED
|
File without changes
|
{gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/cli/_internal/registry.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/indexd/indexd_registrar.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/services/dictionary/deploy_dd.sh
RENAMED
|
File without changes
|
{gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/services/dictionary/pull_dict.sh
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/services/k8s_ops/login_to_pod.sh
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/upload/metadata_deleter.py
RENAMED
|
File without changes
|
{gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/upload/metadata_submitter.py
RENAMED
|
File without changes
|
{gen3_dataops_toolkit-3.6.0 → gen3_dataops_toolkit-3.6.1}/src/g3dt/upload/upload_synthdata_s3.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|