Conversation
📝 WalkthroughWalkthroughThe changes refactor working directory resolution in DAG configuration loading. Default working directory values were removed from environment bindings and config defaults. The loading flow was modified to apply working directory defaults post-merge in base config inheritance, using file path directory or fallback mechanisms when not explicitly set. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Loader as DAG Loader
participant SpecBuilder as Spec Builder
participant BaseConfig as Base Config
participant FileRes as File Resolution
Client->>Loader: Load DAG (with optional base config)
Loader->>BaseConfig: Load base config defaults
BaseConfig-->>Loader: Base working dir (if set)
Loader->>SpecBuilder: Build spec with base config
SpecBuilder->>SpecBuilder: buildWorkingDir() → empty (no local default)
SpecBuilder-->>Loader: Spec with empty workingDir
Loader->>Loader: Merge with base config
alt Working Dir Set
Loader->>Loader: Use merged value
else Working Dir Empty
Loader->>FileRes: Get file path directory
FileRes-->>Loader: Directory (or empty)
alt File Path Available
Loader->>Loader: Use file directory
else No File Path
Loader->>Loader: Call getDefaultWorkingDir()
Loader->>Loader: Apply fallback default
end
end
Loader-->>Client: Final DAG with workingDir
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1641 +/- ##
==========================================
- Coverage 69.79% 69.79% -0.01%
==========================================
Files 331 332 +1
Lines 37248 37327 +79
==========================================
+ Hits 25999 26053 +54
- Misses 9185 9204 +19
- Partials 2064 2070 +6
... and 17 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Summary by CodeRabbit
Bug Fixes
Documentation