-
Notifications
You must be signed in to change notification settings - Fork 10
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
Setting ./mlruns
as the default artifact_location
#49
base: main
Are you sure you want to change the base?
Conversation
8df955f
to
5b2141e
Compare
@@ -120,7 +120,7 @@ end | |||
end | |||
|
|||
@testset "logartifact_error" begin | |||
@test_broken logartifact(mlf, r, "/etc/shadow") | |||
@test_broken logartifact(mlf, r, "/etc/misina") |
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.
Shouldn't this be a @test_throws
? Usually @test_broken
is for temporarilydisabling tests that are failing but which we hope to rectify in the near future.
open(tempfilename, "w") do file | ||
write(file, "Hello, world!\n") | ||
end | ||
|
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 think it is more usual to use the functions tempname
or tempdir
to create temporary files during CI, although I think this still works. But perhaps you have reasons for doing it this way?
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'm not familiar enough with the code base to comment on whether this is the best remedy, but it looks good to me. Hopefully @deyandyankov can chime in.
I haven't looked at the CI failure.
Thanks for prompt attention to this issue 🙏
#48
In this PR, I'm fixing a design issue inherited from the original
mlflow
platform. In this case, when someone instantiates an experiment with default values, instead of letting the server set theartifact_location
, we are setting it as./mlruns
to avoid non-absolute directories (breaking logging artifacts).