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

Fix issue 48 and 60 related to the WorkflowDependencySensor #61

Merged
merged 5 commits into from
Nov 10, 2023

Conversation

BrendBraeckmans
Copy link
Contributor

Description

This PR contains following changes

  • Changes to WorkflowDependencySensor such that other secret managers can be used to specify the api token
  • Fix bug in WorkflowDependencySensor where start_time_from was in unix seconds i.s.o millisecond
  • Put --no-autodetect in make check of Makefile cause otherwise prospector needs django which isn't used. I needed this to get make check running on my machine but not sure what you guys think of this

Related Issue

Motivation and Context

At this point in time the WorkflowDependencySensor doesn't work at all which blocks multiple users of brickflow.
I know that in the future this functionality will not be needed anymore in brickflow as it's become Databricks native so can be achieved through asset bundles. This however needs development at brickflow side so this PR fixes the issues we face till this is done.

How Has This Been Tested?

I build my own wheel based on this PR and tested it extensively on a workflow making use of the WorkflowDependencySensor

Screenshots (if appropriate):

Types of changes

Due to the change in how the token gets handled in WorkflowDependencySensor users will need to adapt their code when they upgrade. I however think there are no users of this feature at the moment as it's not working right now.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

…rom this version onwards.

Removed offset way of pagination and used next_page_token as offset is decpricated from version 2.1 onwards.
…onds since epoch.

Also removed expand_tasks in API call as it's not necessary and clutters the response.
Copy link

codecov bot commented Nov 10, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5a10093) 88.44% compared to head (196db3b) 88.49%.
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #61      +/-   ##
==========================================
+ Coverage   88.44%   88.49%   +0.04%     
==========================================
  Files          22       22              
  Lines        3176     3189      +13     
==========================================
+ Hits         2809     2822      +13     
  Misses        367      367              

see 5 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -5,7 +5,7 @@ fmt:
@poetry run black .

check: black-check mypy
@poetry run prospector --profile prospector.yaml
@poetry run prospector --profile prospector.yaml --no-autodetect
Copy link
Collaborator

Choose a reason for hiding this comment

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

We have this for Spark-Expectations as well. This is good!

Copy link
Collaborator

@asingamaneni asingamaneni left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the extensive testing

@asingamaneni asingamaneni merged commit d49ddac into Nike-Inc:main Nov 10, 2023
4 checks passed
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