Skip to content

Commit 12e8b22

Browse files
committed
debugging github actions
1 parent 5915143 commit 12e8b22

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

test/runtests.jl

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -109,26 +109,24 @@ end
109109
@test isa(exp, MLFlowExperiment)
110110
exprun = createrun(mlf, exp)
111111
@test isa(exprun, MLFlowRun)
112-
emptyrun = createrun(mlf, exp)
113-
@test_throws SystemError logartifact(mlf, exprun, "/etc/shadow")
114-
115-
tmpfiletoupload = "sometempfilename.txt"
116-
f = open(tmpfiletoupload, "w")
117-
write(f, "samplecontents")
118-
close(f)
119-
artifactpath = logartifact(mlf, exprun, tmpfiletoupload)
120-
@test isfile(artifactpath)
121-
rm(tmpfiletoupload)
122-
artifactpath = logartifact(mlf, exprun, "randbytes.bin", b"some rand bytes here")
123-
@test isfile(artifactpath)
124-
125112
# only run the below if artifact_uri is a local directory
126113
# i.e. when running mlflow server as a separate process next to the testset
127114
# when running mlflow in a container, the below tests will be skipped
128115
# this is what happens in github actions - mlflow runs in a container, the artifact_uri is not immediately available, and tests are skipped
129116
artifact_uri = exprun.info.artifact_uri
130-
@show artifact_uri
131117
if isdir(artifact_uri)
118+
@test_throws SystemError logartifact(mlf, exprun, "/etc/shadow")
119+
120+
tmpfiletoupload = "sometempfilename.txt"
121+
f = open(tmpfiletoupload, "w")
122+
write(f, "samplecontents")
123+
close(f)
124+
artifactpath = logartifact(mlf, exprun, tmpfiletoupload)
125+
@test isfile(artifactpath)
126+
rm(tmpfiletoupload)
127+
artifactpath = logartifact(mlf, exprun, "randbytes.bin", b"some rand bytes here")
128+
@test isfile(artifactpath)
129+
132130
mkdir(joinpath(artifact_uri, "newdir"))
133131
artifactpath = logartifact(mlf, exprun, joinpath("newdir", "randbytesindir.bin"), b"bytes here")
134132
artifactpath = logartifact(mlf, exprun, joinpath("newdir", "randbytesindir2.bin"), b"bytes here")

0 commit comments

Comments
 (0)