-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
🐛 Fix hubspot datetime empty string #5798
Conversation
a6fc442
to
f31d001
Compare
/test connector=connectors/source-hubspot
|
/test connector=connectors/source-hubspot
|
256aa64
to
3175184
Compare
3175184
to
22dffb2
Compare
@@ -19,7 +19,7 @@ class AirbyteSourceAcceptanceTestPlugin implements Plugin<Project> { | |||
'-w', "$targetMountDirectory", | |||
'-e', "AIRBYTE_SAT_CONNECTOR_DIR=${project.projectDir.absolutePath}", | |||
'airbyte/source-acceptance-test', | |||
'-p', 'integration_tests.acceptance', | |||
'-p', 'source_acceptance_test.plugin', |
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 don’t understand a little, a change in this line leads to the fact that we can delete the acceptance.py
and integration_test.py
files, but still use the SAT tests?
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.
yes, you don't need acceptance.py, all test cases will be picked up by plugin according to acceptance test config
@@ -37,7 +37,7 @@ | |||
"PyYAML==5.4", | |||
"pydantic==1.6.*", | |||
"airbyte-protocol", | |||
"jsonschema==2.6.0", | |||
"jsonschema==3.2.0", |
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.
Are you sure that jsonschema
version 3 is backward compatible with version 2 and this change will not generate new bugs?
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.
not 100% sure but acceptance test passed fine. There were dependencies conflicts with SAT that failed a build so Ive made this change. AFAIK base-python is outdated and we should move away from it.
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.
LGTM, please, resolve conflicts
22dffb2
to
f8893ac
Compare
@@ -52,7 +52,7 @@ def check_datetime(value: str) -> bool: | |||
return valid_format and valid_time | |||
|
|||
def check(self, instance, format): | |||
if format == "date-time": | |||
if instance is not None and format == "date-time": |
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.
make sure to publish SAT
f8893ac
to
973cf6d
Compare
/publish connector=connectors/source-hubspot
|
/publish connector=bases/source-acceptance-test
|
Cannot publish cause github runner' ubuntu-latest image have python with setuptools defect: pypa/setuptools-scm#608 Will try later when image will be updated (hopefully) |
/publish connector=connectors/source-hubspot
|
/publish connector=bases/source-acceptance-test
|
/publish connector=connectors/source-hubspot
|
What
Fix for #5714
How
Describe the solution
Recommended reading order
x.java
y.python
Pre-merge Checklist
Expand the relevant checklist and delete the others.
New Connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
docs/SUMMARY.md
docs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampledocs/integrations/README.md
airbyte-integrations/builds.md
Airbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described hereUpdating a connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
docs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described hereConnector Generator
-scaffold
in their name) have been updated with the latest scaffold by running./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplates
then checking in your changes