You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add relative path translation for alert_task.workspace_path in job tasks (#4836)
## Summary
- Add `alert_task.workspace_path` to the job task path rewrite patterns
so relative paths (e.g. `./my_alert.dbalert.json`) are translated to
full workspace paths
- Covers both regular tasks and `for_each_task` nested tasks via
`TranslateModeFile`
## Test plan
- [x] Unit tests for path visitor (`TestVisitJobPaths`,
`TestVisitJobPaths_foreach`)
- [x] Unit test for path translation
(`TestTranslatePathsInSubdirectories`)
- [x] Acceptance test (`acceptance/bundle/resources/jobs/alert-task`) —
deploys a job with `alert_task.workspace_path`, reads it back via `jobs
get`, and asserts the fully qualified workspace path. Runs on both local
(mock server) and cloud, on both terraform and direct engines.
This pull request was AI-assisted by Isaac.
0 commit comments