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

[CDF-21573] ♨ Raise on Location #621

Merged
merged 7 commits into from
Jun 10, 2024
Merged

[CDF-21573] ♨ Raise on Location #621

merged 7 commits into from
Jun 10, 2024

Conversation

doctrino
Copy link
Collaborator

@doctrino doctrino commented Jun 8, 2024

Description

Please describe the change you have made.

Checklist

Copy link

github-actions bot commented Jun 8, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
7202 5604 78% 60% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
cognite_toolkit/_cdf_tk/commands/_base.py 83% 🟢
cognite_toolkit/_cdf_tk/commands/_utils.py 100% 🟢
cognite_toolkit/_cdf_tk/commands/clean.py 76% 🟢
cognite_toolkit/_cdf_tk/commands/deploy.py 82% 🟢
cognite_toolkit/_cdf_tk/exceptions.py 79% 🟢
TOTAL 84% 🟢

updated for commit: 1f00965 by action🐍

@doctrino doctrino marked this pull request as ready for review June 8, 2024 16:11
@doctrino doctrino requested a review from a team as a code owner June 8, 2024 16:11
Comment on lines -158 to -163
if ToolGlobals.failed:
if results and results.has_counts:
print(results.counts_table())
if results and results.has_uploads:
print(results.uploads_table())
raise ToolkitDeployResourceError(f"Failure to load/deploy {loader_instance.display_name} as expected.")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is no longer necessary as we know raise an appropriate exception in the place the error occurred, instead of the generic one here.

Copy link
Collaborator

@ronpal ronpal left a comment

Choose a reason for hiding this comment

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

👌

Base automatically changed from bug-in-toolkit to main June 10, 2024 07:40
@doctrino doctrino merged commit 2255064 into main Jun 10, 2024
8 checks passed
@doctrino doctrino deleted the raise-on-location branch June 10, 2024 08:23
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