update graph parsing mode when virtualenv is selected#402
Merged
Conversation
👷 Deploy Preview for amazing-pothos-a3bca0 processing.
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #402 +/- ##
=======================================
Coverage 79.36% 79.36%
=======================================
Files 48 48
Lines 1691 1691
=======================================
Hits 1342 1342
Misses 349 349
☔ View full report in Codecov by Sentry. |
jlaneve
approved these changes
Jul 27, 2023
Contributor
jlaneve
left a comment
There was a problem hiding this comment.
nice, thank you! Integration tests are failing because external contributors don't have access to GH actions secrets, but this looks good
tatiana
pushed a commit
that referenced
this pull request
Aug 9, 2023
## Description When using a virtualenv to run our dbt tasks, we are working under the hypothesis that dbt is not installed in the machine. However as of now, if we choose virtualenv as the execution mode, dbt tries to parse the graph of the dbt tasks with **load_via_dbt_ls()**, while it should point out to **load_via_custom_parser()** due to the fact aforementioned. we can accomplish it by removing the virutalenv executor from the _elif_ condition for **load_via_dbt_ls()**, so it will be picked up automatically by the _else_ condition. ## Related Issue(s) closes #401 ## Breaking Change? No. it worked fine in the dev sandbox, although I did not have the opportunity to test it with any image without dbt pre-installed. Obs: I had to change also the tests for this change ## Checklist - [X] I have made corresponding changes to the documentation (if required) - [ ] I have added tests that prove my fix is effective or that my feature works --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Julian LaNeve <lanevejulian@gmail.com>
tatiana
added a commit
that referenced
this pull request
Sep 18, 2025
[Giovanni Corsetti Silva](https://www.linkedin.com/in/giovanni-corsetti/) (@corsettigyg @CorsettiS @giovannicorsetti) is a Core Data Platform Data Engineer at [Get Your Guide](https://www.getyourguide.com/). He's a Brazilian based in Berlin (Germany) and has been an early adopter of Cosmos, using it regularly throughout his career. Not only has he been using Cosmos since the early stages, but he has consistently improved Cosmos since April 2023: <img width="494" height="249" alt="Screenshot 2025-09-17 at 16 39 49" src="https://github.com/user-attachments/assets/ff9b0055-7df6-47a4-8efa-83a30d5aee99" /> ] m. , <img width="492" height="252" alt="Screenshot 2025-09-17 at 16 40 11" src="https://github.com/user-attachments/assets/8402d883-eff4-46aa-9ae7-afe35bd39a6e" /> <img width="499" height="256" alt="Screenshot 2025-09-17 at 16 39 23" src="https://github.com/user-attachments/assets/c6b84245-aae1-46e6-99e3-552553619dd9" /> His contributions include new features, enhancements, bug fixes and also improvements on the local dev setup, as it can see in some of the many contributions he's done to the project so far: * #1787 * #1761 * #1695 * #1693 * #1663 * #1571 * #1449 * #1099 * #1091 * #419 * #402 * #355 * #354 * #225 Additionally, he has been interacting with users in the #airflow-dbt Slack channel in a very collaborative and supportive way. We want to promote him as a Cosmos committer and maintainer for all these, recognising his constant efforts and achievements towards our community. Thank you very much, @corsettigyg! From this moment, you have write permissions on the repo: <img width="884" height="93" alt="Screenshot 2025-09-18 at 14 34 07" src="https://github.com/user-attachments/assets/abcc8c42-87cf-4b32-a7be-81127190d164" />
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
When using a virtualenv to run our dbt tasks, we are working under the hypothesis that dbt is not installed in the machine. However as of now, if we choose virtualenv as the execution mode, dbt tries to parse the graph of the dbt tasks with load_via_dbt_ls(), while it should point out to load_via_custom_parser() due to the fact aforementioned. we can accomplish it by removing the virutalenv executor from the elif condition for load_via_dbt_ls(), so it will be picked up automatically by the else condition.
Related Issue(s)
closes #401
Breaking Change?
No. it worked fine in the dev sandbox, although I did not have the opportunity to test it with any image without dbt pre-installed.
Obs: I had to change also the tests for this change
Checklist