-
Notifications
You must be signed in to change notification settings - Fork 24
fix: locally running tests errors #459
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (2)
airbyte_cdk/sources/declarative/schema/default_schema_loader.py:40
- Consider adding an inline comment to explain why ValueError is handled here, referencing the specific behavior of pkgutil that leads to this exception.
except (OSError, ValueError):
airbyte_cdk/sources/declarative/interpolation/macros.py:180
- [nitpick] Include a clarifying comment noting that the timezone is being forced to UTC to match Docker image settings, ensuring consistent test outcomes.
dt_datetime = dt_datetime.replace(tzinfo=pytz.utc)
📝 WalkthroughWalkthroughThe pull request introduces modifications to two components. In the Changes
Suggested reviewers
Would you like to consider any additional reviewers or labels, wdyt? 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (9)
🔇 Additional comments (2)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we probably need to check for a set timezone before applying utc. Proposed a solution. (Feel free to dismiss this review after resolved/addressed.)
Co-authored-by: Aaron ("AJ") Steers <aj@airbyte.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
APPROVED
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 👍
Context
I had two tests issues:
utc
. This shouldn't change the behavior of the connector because we for UTC as a timezone for the docker imagespkgutil
raise a value error during schema loading instead of a OSError (see blob below). In order to fix that, I handled both errors the same way. This would change the sources behavior only if we were to fail on ValueError before which I doubt it is a case and find the fallback appropriate anyway. Note that this seems to happen only when not running tests fromunit_tests
directly but running a more scope set of tests. Trying to change the working directory didn't help unfortunately...Summary by CodeRabbit
Summary by CodeRabbit
Bug Fixes
Tests