soooojinlee commented on PR #60999:
URL: https://github.com/apache/airflow/pull/60999#issuecomment-3822570149
Verified the fix by running a local Airflow instance with zipped DAGs.
```
test_edge_cases.zip/
├── test_edge_cases.py # DAG definition file (6 DAGs)
├── root_template.sh # Template at ZIP root level
├── templates/
│ ├── run.sh # Basic template
│ ├── query.sql
│ └── nested/
│ └── deep.sh # Nested directory template
└── sql/
└── query.sh # Separate directory template
```
Test Cases (All Passed ✅)
DAG ID: edge_case_1_relative_searchpath
Configuration: template_searchpath=["templates"]
Test Purpose: Verify relative path resolves to {zip}/templates
────────────────────────────────────────
DAG ID: edge_case_2_multiple_searchpaths
Configuration: template_searchpath=["templates", "sql"]
Test Purpose: Verify multiple relative paths all resolve correctly
────────────────────────────────────────
DAG ID: edge_case_3_nested_searchpath
Configuration: template_searchpath=["templates/nested"]
Test Purpose: Verify nested relative path support
────────────────────────────────────────
DAG ID: edge_case_4_direct_reference
Configuration: bash_command="templates/run.sh"
Test Purpose: Direct path reference without template_searchpath
────────────────────────────────────────
DAG ID: edge_case_5_root_template
Configuration: bash_command="root_template.sh"
Test Purpose: Load template from ZIP root level
────────────────────────────────────────
DAG ID: edge_case_6_empty_searchpath
Configuration: template_searchpath=[]
Test Purpose: Empty searchpath uses DAG folder only
<img width="1341" height="1241" alt="image"
src="https://github.com/user-attachments/assets/a7a10901-c9df-4eb0-989d-2cbb0a5f3e11"
/>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]