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

Setting ./mlruns as the default artifact_location #49

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pebeto
Copy link
Member

@pebeto pebeto commented May 28, 2024

#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 the artifact_location, we are setting it as ./mlruns to avoid non-absolute directories (breaking logging artifacts).

@pebeto pebeto added the enhancement New feature or request label May 28, 2024
@pebeto pebeto self-assigned this May 28, 2024
@pebeto pebeto linked an issue May 28, 2024 that may be closed by this pull request
@pebeto pebeto force-pushed the 48-artifact_location-default-is-not-being-set branch from 8df955f to 5b2141e Compare May 28, 2024 04:03
@@ -120,7 +120,7 @@ end
end

@testset "logartifact_error" begin
@test_broken logartifact(mlf, r, "/etc/shadow")
@test_broken logartifact(mlf, r, "/etc/misina")
Copy link
Member

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

Copy link
Member

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?

Copy link
Member

@ablaom ablaom left a 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 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

artifact_location default is not being set
2 participants