Commit 83e7b0a
authored
Support parsing of fusion logs for warnings in get_job_run_error (#737)
## Summary
<!-- Provide a brief description of the changes in this PR -->
With fusion sf GA right around the corner, Benoit said tis time to add
support for fusion log parsing of warnings. This should be stable now!
This is specific to the Admin API tool, `get_job_run_error` which
optionally returns warnings as well.
## What Changed
<!-- Describe the changes made in this PR -->
- Add `WarningFetcher._extract_fusion_log_warnings` and
`WarningFetcher.is_fusion_logs` check
- Parses fusion-specific warn format in logs
## Why
<!-- Explain the motivation for these changes -->
## Related Issues
<!-- Link any related issues using #issue_number -->
Closes #447
## Checklist
- [x] I have performed a self-review of my code
- [x] I have made corresponding changes to the documentation (in
https://github.com/dbt-labs/docs.getdbt.com) if required -- Mention it
here
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
## Validation
1. Tested in MCP inspector (trust me bro)
2. Tested with Claude Cpde
<img width="863" height="478" alt="Screenshot 2026-04-21 at 10 39 37 PM"
src="https://github.com/user-attachments/assets/aef6c6cf-3309-46dd-8a3b-57619e657c17"
/>
<img width="862" height="451" alt="Screenshot 2026-04-21 at 10 40 04 PM"
src="https://github.com/user-attachments/assets/b7f795ba-fc6b-46e7-a938-df98480ba190"
/>1 parent 1d8f75f commit 83e7b0a
3 files changed
Lines changed: 138 additions & 8 deletions
File tree
- .changes/unreleased
- src/dbt_mcp/dbt_admin/run_artifacts
- tests/unit/dbt_admin/run_artifacts
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
29 | 39 | | |
30 | 40 | | |
31 | 41 | | |
| |||
537 | 547 | | |
538 | 548 | | |
539 | 549 | | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
540 | 570 | | |
541 | | - | |
| 571 | + | |
542 | 572 | | |
543 | 573 | | |
544 | 574 | | |
545 | | - | |
546 | | - | |
| 575 | + | |
| 576 | + | |
547 | 577 | | |
548 | | - | |
549 | | - | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
550 | 585 | | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | 586 | | |
555 | 587 | | |
556 | 588 | | |
| |||
Lines changed: 95 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
132 | 163 | | |
133 | 164 | | |
134 | 165 | | |
| |||
184 | 215 | | |
185 | 216 | | |
186 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
0 commit comments