Skip to content

[DCV-3760] Refresh profiles.yml resolution on config reparse#19

Draft
jesusmgg wants to merge 5 commits intomainfrom
DCV-3760
Draft

[DCV-3760] Refresh profiles.yml resolution on config reparse#19
jesusmgg wants to merge 5 commits intomainfrom
DCV-3760

Conversation

@jesusmgg
Copy link

Summary

  • Track all potential profiles.yml paths (env var, project dir, ~/.dbt) in the watcher instead of only the resolved one at startup
  • Re-resolve profiles_dir dynamically on reparse so the server switches when a higher-priority profiles.yml appears or the active one is deleted
  • Re-resolve standard profiles_dir paths from state file on startup instead of using stale saved values. Custom (non-standard) paths are preserved.

Test plan

  • Modify ~/.dbt/profiles.yml, server reparses within 2s
  • Copy profiles.yml to project dir, server switches to it
  • Delete project dir profiles.yml, server falls back to ~/.dbt
  • Custom profiles_dir (non-standard path) preserved across reparse
  • Server recovers after fixing a broken profiles.yml

After merge

git tag v1.1.7 && git push origin v1.1.7

@jesusmgg jesusmgg self-assigned this Mar 18, 2026
@jesusmgg jesusmgg marked this pull request as draft March 20, 2026 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant