Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve runtime startup #404

Merged
merged 3 commits into from
Dec 2, 2024
Merged

Improve runtime startup #404

merged 3 commits into from
Dec 2, 2024

Conversation

mathialo
Copy link
Collaborator

Improve error handling for loading configs, roll back to previous versions if a version is invalid. Report errors back to integrations if a CDF-hosted application config fails to load.

Improve error handling overall, with better error messages relayed to the end user.

Do a connection check at startup to make sure the connection config is valid, with good error messages.

Improve error handling for loading configs, roll back to previous
versions if a version is invalid. Report errors back to integrations if
a CDF-hosted application config fails to load.

Improve error handling overall, with better error messages relayed to
the end user.

Do a connection check at startup to make sure the connection config is
valid, with good error messages.
@mathialo mathialo requested a review from a team as a code owner November 29, 2024 09:38
Copy link

codecov bot commented Nov 29, 2024

Codecov Report

Attention: Patch coverage is 17.46032% with 104 lines in your changes missing coverage. Please review.

Project coverage is 74.46%. Comparing base (d3b4a0a) to head (5ef614b).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
cognite/extractorutils/unstable/core/runtime.py 0.00% 85 Missing ⚠️
...e/extractorutils/unstable/configuration/loaders.py 15.38% 11 Missing ⚠️
...xtractorutils/unstable/configuration/exceptions.py 45.45% 6 Missing ⚠️
cognite/extractorutils/configtools/loaders.py 50.00% 1 Missing ⚠️
cognite/extractorutils/unstable/core/base.py 92.85% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #404      +/-   ##
==========================================
- Coverage   76.41%   74.46%   -1.96%     
==========================================
  Files          40       41       +1     
  Lines        3210     3313     +103     
==========================================
+ Hits         2453     2467      +14     
- Misses        757      846      +89     
Files with missing lines Coverage Δ
...te/extractorutils/unstable/configuration/models.py 85.71% <100.00%> (ø)
cognite/extractorutils/configtools/loaders.py 83.71% <50.00%> (-0.31%) ⬇️
cognite/extractorutils/unstable/core/base.py 68.42% <92.85%> (+1.75%) ⬆️
...xtractorutils/unstable/configuration/exceptions.py 45.45% <45.45%> (ø)
...e/extractorutils/unstable/configuration/loaders.py 35.44% <15.38%> (-2.06%) ⬇️
cognite/extractorutils/unstable/core/runtime.py 0.00% <0.00%> (ø)

... and 1 file with indirect coverage changes

@mathialo mathialo merged commit 658fa18 into master Dec 2, 2024
5 checks passed
@mathialo mathialo deleted the load-config branch December 2, 2024 08:12
@@ -139,7 +139,7 @@ class ConnectionConfig(ConfigModel):
project: str
base_url: str

extraction_pipeline: str
integration: str

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

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.

3 participants