-
-
Notifications
You must be signed in to change notification settings - Fork 232
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
GSK-2887 Upload tests with project when uploading a suite #1837
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.
LGTM
Just some comments to be removed or polished.
Not related to this PR:
We will neither have global resources anymore, nor "internal worker". So we can also cleanup the Optional[GiskardClient]
, can we create a card for this?
@@ -430,12 +430,10 @@ def head_slice(df: pd.DataFrame) -> pd.DataFrame: | |||
|
|||
|
|||
# FIXME: Internal worker cannot yet load callable due to yaml deserialization issue |
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.
We can remove this line
@@ -481,16 +479,14 @@ def do_nothing(row): | |||
|
|||
|
|||
# FIXME: Internal worker cannot yet load callable due to yaml deserialization issue |
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.
idem.
tests/test_artifact_download.py
Outdated
@@ -149,17 +150,17 @@ def test_download_callable_function(cf: Artifact): | |||
do_nothing, # Transformation | |||
], | |||
) | |||
def test_download_global_callable_function_from_module(cf: Artifact): | |||
def test_download_callable_function_from_module(cf: Artifact): | |||
with MockedClient(mock_all=False) as (client, mr): | |||
cf.meta.uuid = str(uuid.uuid4()) # Regenerate a UUID to ensure not loading from registry | |||
cache_dir = get_local_cache_callable_artifact(artifact=cf) | |||
|
|||
requested_urls = [] | |||
# Prepare global URL |
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.
Can be changed to prepare URLs, cuz we have no more global artefacts
I've updated th PR and remove the optional client |
|
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! Thanks!
Always send the
project_key
when uploading/downloading tests