Skip to content

Commit 43604b6

Browse files
committed
try fix
1 parent fc47bf7 commit 43604b6

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.buildkite/pipeline.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -761,13 +761,13 @@ steps:
761761
slurm_gpus: 1
762762
slurm_mem: 16G
763763

764-
- label: ":computer: test restart"
764+
- label: ":computer: test restart manytests"
765765
command: >
766766
julia --color=yes --project=.buildkite test/restart.jl --manytests true
767767
agents:
768768
slurm_mem: 16GB
769769

770-
- label: ":computer: test restart GPU"
770+
- label: ":computer: test restart GPU manytests"
771771
command: >
772772
julia --color=yes --project=.buildkite test/restart.jl --manytests true
773773
env:
@@ -823,13 +823,13 @@ steps:
823823
slurm_gpus: 1
824824
slurm_mem: 16G
825825

826-
- label: ":computer: test restart_AtmosSimulation"
826+
- label: ":computer: test restart_AtmosSimulation manytests"
827827
command: >
828828
julia --color=yes --project=.buildkite test/restart_AtmosSimulation.jl --manytests true
829829
agents:
830830
slurm_mem: 16GB
831831

832-
- label: ":computer: test restart_AtmosSimulation GPU"
832+
- label: ":computer: test restart_AtmosSimulation GPU manytests"
833833
command: >
834834
julia --color=yes --project=.buildkite test/restart_AtmosSimulation.jl --manytests true
835835
env:

test/restart_AtmosSimulation.jl

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
include("restart_utils.jl")
1515

16-
function amip_target_diagedmf(context)
16+
function amip_target_diagedmf(context, output_dir)
1717
FT = Float32
1818
start_date = DateTime(2010, 1, 1)
1919

@@ -140,7 +140,8 @@ function amip_target_diagedmf(context)
140140
ode_config,
141141
surface_setup,
142142
context,
143-
job_id = "amip_target_diagedmf")
143+
job_id = "amip_target_diagedmf",
144+
output_dir)
144145
simulation = CA.AtmosSimulation{FT}(; args...)
145146

146147
return (; simulation, args)
@@ -416,16 +417,16 @@ if MANYTESTS
416417
end
417418
end
418419
else
419-
amip_output_loc = ClimaComms.iamroot(comms_ctx) ? mktempdir(pwd()) : ""
420-
amip_output_loc = ClimaComms.bcast(comms_ctx, amip_output_loc)
420+
output_dir = ClimaComms.iamroot(comms_ctx) ? mktempdir(pwd()) : ""
421+
output_dir = ClimaComms.bcast(comms_ctx, output_dir)
421422
# Sometimes the shared filesystem doesn't work properly and the folder is
422423
# not synced across MPI processes. Let's add an additional check here.
423-
maybe_wait_filesystem(comms_ctx, amip_output_loc)
424+
maybe_wait_filesystem(comms_ctx, output_dir)
424425

425426
push!(
426427
TESTING,
427428
(;
428-
amip_target_diagedmf(comms_ctx)...,
429+
amip_target_diagedmf(comms_ctx, joinpath(output_dir, "amip_target_diagedmf"))...,
429430
more_ignore = Symbol[],
430431
),
431432
)

0 commit comments

Comments
 (0)