From 19bafc26a1d8196a1cc4875c4b9c92b22df8d58e Mon Sep 17 00:00:00 2001 From: Charles Kawczynski Date: Mon, 16 May 2022 09:34:29 -0700 Subject: [PATCH] Add buildkite yml try with mem req formatting formatting formatting maybe remove depot add depot rm depot smaller memory --- .buildkite/pipeline.yml | 80 +++++++++++++++++++++++++++++++++++++++ bors.toml | 1 + test/Soil/soil_bc.jl | 3 +- test/Soil/soil_test_3d.jl | 1 + 4 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 .buildkite/pipeline.yml diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml new file mode 100644 index 0000000000..91a651af8f --- /dev/null +++ b/.buildkite/pipeline.yml @@ -0,0 +1,80 @@ +env: + JULIA_VERSION: "1.7.0" + OPENMPI_VERSION: "4.0.4" + CUDA_VERSION: "11.2" + OPENBLAS_NUM_THREADS: 1 + BUILDKITE_COMMIT: "${BUILDKITE_COMMIT}" + BUILDKITE_BRANCH: "${BUILDKITE_BRANCH}" + +agents: + config: cpu + queue: central + slurm_ntasks: 1 + +steps: + - label: "init environment :computer:" + key: "init_cpu_env" + command: + - "julia --project -e 'using Pkg; Pkg.instantiate(;verbose=true)'" + - "julia --project -e 'using Pkg; Pkg.precompile()'" + - "julia --project -e 'using Pkg; Pkg.status()'" + + - "julia --project=test -e 'using Pkg; Pkg.instantiate(;verbose=true)'" + - "julia --project=test -e 'using Pkg; Pkg.precompile()'" + - "julia --project=test -e 'using Pkg; Pkg.status()'" + + - wait + + - group: "Unit tests" + steps: + + # - label: "Unit tests" + # command: "julia --color=yes --project=test test/runtests.jl" + # artifact_paths: "test/*" + + - label: "bucket_test" + command: "julia --color=yes --project=test test/Bucket/bucket_test.jl" + artifact_paths: "bucket_test/" + + - label: "root_test" + command: "julia --color=yes --project=test test/Vegetation/root_test.jl" + artifact_paths: "root_test/" + + - label: "lsm_test" + command: "julia --color=yes --project=test test/LSM/lsm_test.jl" + artifact_paths: "lsm_test/" + + - label: "domains" + command: "julia --color=yes --project=test test/domains.jl" + artifact_paths: "domains/" + + - label: "variable_types" + command: "julia --color=yes --project=test test/variable_types.jl" + artifact_paths: "variable_types/" + + - label: "pond_test" + command: "julia --color=yes --project=test test/SurfaceWater/pond_test.jl" + artifact_paths: "pond_test/" + + - label: "pond_soil_lsm" + command: "julia --color=yes --project=test test/LSM/pond_soil_lsm.jl" + artifact_paths: "pond_soil_lsm/" + + - label: "soil_test_3d" + command: "julia --color=yes --project=test test/Soil/soil_test_3d.jl" + artifact_paths: "soil_test_3d/" + agents: + slurm_mem_per_cpu: 8G + + - label: "soiltest" + command: "julia --color=yes --project=test test/Soil/soiltest.jl" + artifact_paths: "soiltest/" + + - label: "soil_parameterizations" + command: "julia --color=yes --project=test test/Soil/soil_parameterizations.jl" + artifact_paths: "soil_parameterizations/" + + - label: "soil_bc" + command: "julia --color=yes --project=test test/Soil/soil_bc.jl" + artifact_paths: "soil_bc/" + diff --git a/bors.toml b/bors.toml index 8aae268a48..0f52802664 100644 --- a/bors.toml +++ b/bors.toml @@ -1,4 +1,5 @@ status = [ + "buildkite/climalsm-ci", "ci 1.7.0 - ubuntu-latest", "ci 1.7.0 - macOS-latest", "docbuild", diff --git a/test/Soil/soil_bc.jl b/test/Soil/soil_bc.jl index 0a47f2a09c..e9068d4f80 100644 --- a/test/Soil/soil_bc.jl +++ b/test/Soil/soil_bc.jl @@ -1,9 +1,10 @@ using Test using ClimaCore - if !("." in LOAD_PATH) push!(LOAD_PATH, ".") end +using ClimaLSM + using ClimaLSM.Domains: HybridBox, SphericalShell FT = Float64 diff --git a/test/Soil/soil_test_3d.jl b/test/Soil/soil_test_3d.jl index 5d8ea33449..9767fcbf41 100644 --- a/test/Soil/soil_test_3d.jl +++ b/test/Soil/soil_test_3d.jl @@ -1,5 +1,6 @@ using Test using UnPack +using Statistics using ClimaCore import CLIMAParameters as CP