-
Notifications
You must be signed in to change notification settings - Fork 42
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
Fixed MLflow integration test and removed workaround for DELETE
query parameter
#380
Conversation
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #380 +/- ##
=======================================
Coverage 34.74% 34.74%
=======================================
Files 50 50
Lines 3540 3540
=======================================
Hits 1230 1230
Misses 2199 2199
Partials 111 111 ☔ View full report in Codecov by Sentry. |
DELETE
DELETE
DELETE
query parameter
startTime := time.Now() | ||
for { | ||
currentModelVersion, err := w.ModelRegistry.GetModelVersion(ctx, ml.GetModelVersionRequest{ | ||
Name: created.ModelVersion.Name, | ||
Version: created.ModelVersion.Version, | ||
}) | ||
require.NoError(t, err) | ||
|
||
if currentModelVersion.ModelVersion.Status != ml.ModelVersionStatusPendingRegistration { | ||
break | ||
} | ||
currentTime := time.Now() | ||
elapsedTime := currentTime.Sub(startTime).Seconds() | ||
if elapsedTime > 10 { | ||
t.Fatalf("Timeout: Model version still has PENDING_REGISTERATION status after 10 seconds") | ||
} | ||
time.Sleep(2 * time.Second) | ||
} |
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.
You might be able to use something like this https://stackoverflow.com/a/52218264 here, instead of manually keeping track of 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.
discussed offline - tldr - not able to use testing methods through goroutine -- might require passing messages to channel and read them from the testMethod and call test fail (after checking the channel to see if message is returned) but maybe not worth it.
# Version changelog ## 0.8.1 * Added `in` codegen function ([#387](#387)). * Fixed mlflow acceptance tests ([#378](#378)). * Fixed MLflow integration test and removed workaround for `DELETE` query parameter ([#380](#380)). * Make clusters acceptance tests robust to duplicate cluster names ([#381](#381)). * Remove dead code from apierr/errors.go ([#376](#376)). * Serialize params to request body on delete ([#383](#383)). Dependency updates: * Bump golang.org/x/oauth2 from 0.7.0 to 0.8.0 ([#385](#385)). * Bump google.golang.org/api from 0.118.0 to 0.122.0 ([#382](#382), [#386](#386)).
Changes
Tests
Ran integration test on PR:
Verified query parameters are supported for MLflow DELETE
make test
passingmake fmt
applied