Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions acceptance/bundle/templates/default-python/classic/script
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ trace $CLI bundle plan -t dev -o json | nostamp > ../../out.plan_after_deploy_de
$CLI bundle deploy -t prod $(readplanarg ../../out.plan_prod.json) 2>&1 | grep -vE '^Building python_artifact|^Uploading dist'
print_requests.py --sort '^//import-file/' '^//telemetry-ext' > ../../out.requests.prod.txt
read_id.py -t prod sample_job > /dev/null
# Extracted with python, not jq: the id exceeds 2^53 and jq 1.6 rounds it.
root_dir_id=$(MSYS_NO_PATHCONV=1 $CLI workspace get-status "/Workspace/Users/${CURRENT_USER_NAME}/.bundle/my_default_python/prod" -o json | python3 -c 'import sys, json; print(json.load(sys.stdin)["object_id"])')
add_repl "$root_dir_id" PROD_ROOT_DIR_ID
trace $CLI bundle plan -t prod # check if there is drift
trace $CLI bundle plan -t prod -o json | nostamp > ../../out.plan_after_deploy_prod.json

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Phase = 1
RecordRequests = true
EnvMatrix.READPLAN = ["", "1"]

[[Repls]]
# The prod deploy sets permissions on its root directory, addressed by workspace object id.
Old = '/permissions/directories/\d+'
New = '/permissions/directories/[PROD_ROOT_DIR_ID]'
Loading