Repository navigation
Expand file tree
/
Copy pathscript
More file actions
35 lines (27 loc) · 1.55 KB
/
Copy pathscript
File metadata and controls
35 lines (27 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
trace $CLI bundle init default-python --config-file ./input.json --output-dir output
cd output/my_default_python
trace $CLI bundle validate -t dev
trace $CLI bundle validate -t prod
trace $CLI bundle plan -t dev
trace $CLI bundle plan -t prod
$CLI bundle plan -o json -t dev | nostamp > ../../out.plan_dev.json
$CLI bundle plan -o json -t prod | nostamp > ../../out.plan_prod.json
rm "$OUT_REQUESTS"
# With --plan variant we don't build artifacts, so we can filter out relevant log lines
$CLI bundle deploy -t dev $(readplanarg ../../out.plan_dev.json) 2>&1 | grep -vE '^Building python_artifact|^Uploading .databricks'
print_requests.py --sort '^//import-file/' '^//telemetry-ext' > ../../out.requests.dev.txt
read_id.py -t dev sample_job > /dev/null
trace $CLI bundle plan -t dev # check if if there is drift
trace $CLI bundle plan -t dev -o json | nostamp > ../../out.plan_after_deploy_dev.json
$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
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
# Do not affect this repository's git behaviour #2318
mv .gitignore out.gitignore
rm -r .databricks dist
cd ../../
rm "$OUT_REQUESTS"
# Calculate the difference from the serverless template
diff.py $TESTDIR/../serverless/output output/ > out.compare-vs-serverless.diff