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

feat(ingest): clean up DataHubRestEmitter return type #9286

Merged
merged 9 commits into from Dec 1, 2023

Conversation

hsheth2
Copy link
Collaborator

@hsheth2 hsheth2 commented Nov 21, 2023

Also makes the Airflow hook support arbitrary args.

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@github-actions github-actions bot added ingestion PR or Issue related to the ingestion of metadata product PR or Issue related to the DataHub UI/UX labels Nov 21, 2023
Also makes the Airflow hook support arbitrary args.
Copy link
Collaborator

@asikowitz asikowitz left a comment

Choose a reason for hiding this comment

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

LGTM but there's some test failures:

FAILED tests/unit/test_airflow.py::test_datahub_rest_hook - datahub.configuration.common.OperationalError: ('Unable to emit metadata to DataHub GMS', {'message': "HTTPConnectionPool(host='test_host', port=8080): Max retries exceeded with url: //entities?action=ingest (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f44e1180730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))"})
FAILED tests/unit/test_airflow.py::test_datahub_rest_hook_with_timeout - TypeError: __init__() got an unexpected keyword argument 'timeout_sec'

MetadataChangeProposalWrapper,
],
) -> Tuple[datetime, datetime]:
start_time = datetime.now()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we want to ensure timezone utc here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm keeping this the same for backwards compat for now, but eventually we should just update everything to always use non-naive datetimes

hsheth2 and others added 4 commits November 30, 2023 15:53
…plugin/hooks/datahub.py

Co-authored-by: Andrew Sikowitz <andrew.sikowitz@acryl.io>
…plugin/hooks/datahub.py

Co-authored-by: Andrew Sikowitz <andrew.sikowitz@acryl.io>
@hsheth2 hsheth2 added the merge-pending-ci A PR that has passed review and should be merged once CI is green. label Nov 30, 2023
@hsheth2 hsheth2 merged commit f9fd946 into datahub-project:master Dec 1, 2023
54 checks passed
@hsheth2 hsheth2 deleted the rest-emitter-return branch December 1, 2023 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ingestion PR or Issue related to the ingestion of metadata merge-pending-ci A PR that has passed review and should be merged once CI is green. product PR or Issue related to the DataHub UI/UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants