Skip to content

Commit cb94a05

Browse files
author
Mourya S
committed
validate DAB 3rd fix
1 parent 311481d commit cb94a05

3 files changed

Lines changed: 26 additions & 25 deletions

File tree

.github/workflows/alteryx-migration.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ jobs:
4848
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
4949
run: |
5050
python generator.py
51+
52+
- name: Debug Generated Files
53+
run: |
54+
echo "===== databricks.yml ====="
55+
cat generated/databricks.yml
56+
57+
echo "===== jobs.yml ====="
58+
cat generated/resources/jobs.yml
59+
60+
echo "===== workflow.py ====="
61+
head -50 generated/src/workflow.py
5162
5263
- name: Show Generated Files
5364
run: |

generator.py

Lines changed: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -29,34 +29,24 @@
2929
3030
1. Generate production-ready PySpark code.
3131
2. Generate Databricks Asset Bundle files.
32-
3. Workspace supports ONLY serverless compute.
33-
4. Do NOT generate:
32+
3. Generate:
33+
- databricks.yml
34+
- resources/jobs.yml
35+
4. Workspace supports ONLY serverless compute.
36+
5. Do NOT generate:
3437
- new_cluster
3538
- existing_cluster_id
3639
- job_cluster_key
37-
5. Use:
40+
6. Use:
3841
- environment_key: default
39-
6. Generate:
40-
- databricks.yml
41-
- resources/jobs.yml
42-
7. The generated jobs.yml must be deployable in Databricks Free Edition / Serverless workspace.
43-
8. Return only valid JSON.
44-
45-
Workspace supports only serverless compute.
46-
47-
Do not generate:
48-
- new_cluster
49-
- existing_cluster_id
50-
- job_cluster_key
51-
- environments
52-
- environment_key
53-
54-
Generate only:
55-
- databricks.yml
56-
- jobs.yml
57-
- workflow.py
58-
59-
The jobs.yml should create a Databricks Workflow compatible with Databricks Free Edition.
42+
7. The generated jobs.yml must be deployable in a Databricks serverless workspace.
43+
8. The generated databricks.yml must contain ONLY:
44+
- bundle
45+
- include
46+
- targets
47+
9. Do NOT place resources.jobs inside databricks.yml.
48+
10. Put all job definitions inside resources/jobs.yml.
49+
11. Return only valid JSON.
6050
6151
Schema:
6252
@@ -69,7 +59,6 @@
6959
Workflow:
7060
{json.dumps(workflow, indent=2)}
7161
"""
72-
7362
# Call Gemini
7463
response = client.models.generate_content(
7564
model="gemini-2.5-flash",

workflows/Sample_Workflow1.yxmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@
239239
<Wiz_NoOutputFilesMessage />
240240
<Wiz_ChainRunWizard />
241241
</RuntimeProperties>
242+
242243
</Properties>
243244

244245

0 commit comments

Comments
 (0)