File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 : |
Original file line number Diff line number Diff line change 2929
30301. Generate production-ready PySpark code.
31312. 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
6151Schema:
6252
6959Workflow:
7060{ json .dumps (workflow , indent = 2 )}
7161"""
72-
7362# Call Gemini
7463response = client .models .generate_content (
7564 model = "gemini-2.5-flash" ,
Original file line number Diff line number Diff line change 239239 <Wiz_NoOutputFilesMessage />
240240 <Wiz_ChainRunWizard />
241241 </RuntimeProperties >
242+
242243 </Properties >
243244
244245
You can’t perform that action at this time.
0 commit comments