Skip to content

Remove unnecessary stack trace from Cosmos initialization#624

Merged
tatiana merged 1 commit into
mainfrom
improve-logs
Oct 25, 2023
Merged

Remove unnecessary stack trace from Cosmos initialization#624
tatiana merged 1 commit into
mainfrom
improve-logs

Conversation

@tatiana
Copy link
Copy Markdown
Collaborator

@tatiana tatiana commented Oct 25, 2023

As of Cosmos 1.2.0, whenever imported, the library would print a long stack trace related to Openlineage if it was not available as a warning.

Change only to print the stack trace if DEBUG log mode is used.

Previously Cosmos was printing a long stacktrace related to Openlineage if it was not available, as a warning. Change to only print the stacktrace if the user is logging with DEBUG mode.
@tatiana tatiana requested a review from a team as a code owner October 25, 2023 15:12
@tatiana tatiana requested a review from a team October 25, 2023 15:12
@netlify
Copy link
Copy Markdown

netlify Bot commented Oct 25, 2023

👷 Deploy Preview for amazing-pothos-a3bca0 processing.

Name Link
🔨 Latest commit 4d0c597
🔍 Latest deploy log https://app.netlify.com/sites/amazing-pothos-a3bca0/deploys/6539306cf9d8720008df3e84

@tatiana tatiana temporarily deployed to internal October 25, 2023 15:12 — with GitHub Actions Inactive
@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 25, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (682fc67) 93.37% compared to head (4d0c597) 93.37%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #624   +/-   ##
=======================================
  Coverage   93.37%   93.37%           
=======================================
  Files          53       53           
  Lines        2113     2114    +1     
=======================================
+ Hits         1973     1974    +1     
  Misses        140      140           
Files Coverage Δ
cosmos/operators/local.py 91.56% <100.00%> (+0.02%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tatiana tatiana merged commit a4aa5cc into main Oct 25, 2023
@tatiana tatiana deleted the improve-logs branch October 25, 2023 16:25
tatiana added a commit that referenced this pull request Oct 25, 2023
As of Cosmos 1.2.0, whenever imported, the library would print a long
stack trace related to Openlineage if it was not available as a warning.

Change only to print the stack trace if DEBUG log mode is used.

(cherry picked from commit a4aa5cc)
tatiana added a commit that referenced this pull request Oct 25, 2023
Bug fixes

* Resolve errors occurring when `dbt_project_path` is str and partial support `dbt_project_path=None` by @MrBones757 in #605
* Fix running dbt tests that depend on multiple models (support `--indirect-selection` buildable) by @david-mag in #613
* Add tests to sources, snapshots and seeds when using `TestBehavior.AFTER_EACH` by @tatiana in #599
* Fix custom selector when select has a subset of tags of the models' tags by @david-mag in #606
* Fix `LoadMode.AUTOMATIC` behaviour to use `LoadMode.DBT_LS` when `ProfileMapping` is used by @tatiana in #625
* Fix failure if `openlineage-common` raises a jinja exception by @tatiana in #626

Others

* Update contributing guide docs by @raffifu in #591
* Remove unnecessary stack trace from Cosmos initialization by @tatiana in #624
* Fix running test that validates manifest-based DAGs by @tatiana in #619
* pre-commit updates in #604 and #621
tatiana added a commit that referenced this pull request Oct 25, 2023
Bug fixes

* Resolve errors occurring when `dbt_project_path` is str and partial support `dbt_project_path=None` by @MrBones757 in #605
* Fix running dbt tests that depend on multiple models (support `--indirect-selection` buildable) by @david-mag in #613
* Add tests to sources, snapshots and seeds when using `TestBehavior.AFTER_EACH` by @tatiana in #599
* Fix custom selector when select has a subset of tags of the models' tags by @david-mag in #606
* Fix `LoadMode.AUTOMATIC` behaviour to use `LoadMode.DBT_LS` when `ProfileMapping` is used by @tatiana in #625
* Fix failure if `openlineage-common` raises a jinja exception by @tatiana in #626

Others

* Update contributing guide docs by @raffifu in #591
* Remove unnecessary stack trace from Cosmos initialization by @tatiana in #624
* Fix running test that validates manifest-based DAGs by @tatiana in #619
* pre-commit updates in #604 and #621

(cherry picked from commit 635fb7b)
@tatiana tatiana mentioned this pull request Oct 25, 2023
@tatiana tatiana added this to the 1.2.1 milestone Oct 25, 2023
tatiana added a commit that referenced this pull request Oct 25, 2023
Bug fixes

* Resolve errors occurring when `dbt_project_path` is str and partial
support `dbt_project_path=None` by @MrBones757 in #605
* Fix running dbt tests that depend on multiple models (support
`--indirect-selection` buildable) by @david-mag in #613
* Add tests to sources, snapshots and seeds when using
`TestBehavior.AFTER_EACH` by @tatiana in #599
* Fix custom selector when select has a subset of tags of the models'
tags by @david-mag in #606
* Fix `LoadMode.AUTOMATIC` behaviour to use `LoadMode.DBT_LS` when
`ProfileMapping` is used by @tatiana in #625
* Fix failure if `openlineage-common` raises a jinja exception by
@tatiana in #626

Others

* Update contributing guide docs by @raffifu in #591
* Remove unnecessary stack trace from Cosmos initialization by @tatiana
in #624
* Fix running test that validates manifest-based DAGs by @tatiana in
#619
* pre-commit updates in #604 and #621

(cherry picked from commit 635fb7b)
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.

2 participants