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

Sdk extra guard #1157

Merged
merged 2 commits into from
Sep 30, 2024
Merged

Sdk extra guard #1157

merged 2 commits into from
Sep 30, 2024

Conversation

skrawcz
Copy link
Collaborator

@skrawcz skrawcz commented Sep 25, 2024

Closes #1156

Changes

  • code to check git info

How I tested this

  • tests

Notes

Checklist

  • PR has an informative and human-readable title (this will be pulled into the release notes)
  • Changes are limited to a single goal (no scope creep)
  • Code passed the pre-commit check & code is left cleaner/nicer than when first encountered.
  • Any change in functionality is tested
  • New functions are documented (with a description, list of inputs, and expected output)
  • Placeholder code is flagged / future TODOs are captured in comments
  • Project documentation has been updated if adding/changing functionality.

We don't want to impact running code so we should just
blanket catch everything on a best effort basis.

Fixes #1156.
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Reviewed everything up to 53e7045 in 22 seconds

More details
  • Looked at 32 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 3 drafted comments based on config settings.
1. ui/sdk/src/hamilton_sdk/driver.py:167
  • Draft comment:
    Catching a general Exception here ensures robustness but might hide specific issues. Consider logging the exception for better debugging.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The PR aims to catch more exceptions when retrieving git information. The changes replace specific exceptions with a general Exception catch. This is a valid approach to ensure robustness, but it might hide specific issues that could be useful for debugging. However, given the context of the issue, this change aligns with the intent to prevent breaking due to uncaught exceptions.
2. ui/sdk/src/hamilton_sdk/driver.py:171
  • Draft comment:
    Catching a general Exception here ensures robustness but might hide specific issues. Consider logging the exception for better debugging.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The PR aims to catch more exceptions when retrieving git information. The changes replace specific exceptions with a general Exception catch. This is a valid approach to ensure robustness, but it might hide specific issues that could be useful for debugging. However, given the context of the issue, this change aligns with the intent to prevent breaking due to uncaught exceptions.
3. ui/sdk/src/hamilton_sdk/driver.py:175
  • Draft comment:
    Catching a general Exception here ensures robustness but might hide specific issues. Consider logging the exception for better debugging.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The PR aims to catch more exceptions when retrieving git information. The changes replace specific exceptions with a general Exception catch. This is a valid approach to ensure robustness, but it might hide specific issues that could be useful for debugging. However, given the context of the issue, this change aligns with the intent to prevent breaking due to uncaught exceptions.

Workflow ID: wflow_QrcBGt5U9KDRwbEO


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

ui/sdk/src/hamilton_sdk/driver.py Show resolved Hide resolved
@skrawcz
Copy link
Collaborator Author

skrawcz commented Sep 25, 2024

pip install sf-hamilton-sdk==0.7.3rc0

@skrawcz skrawcz merged commit acd2fc7 into main Sep 30, 2024
27 checks passed
@skrawcz skrawcz deleted the sdk_extra_guard branch September 30, 2024 04:13
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.

[SDK] Guard more errors for repo check
2 participants