From 8f89bbdc02a687f69fc85733af54af6e998e21b7 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Tue, 31 Mar 2026 10:00:13 -0500 Subject: [PATCH] Exclude slow GRIB2 fixture tests by default (81s -> 16s) --- .../weather/grib2/complex_packing_test.exs | 12 ++++++------ test/microwaveprop/weather/grib2/extractor_test.exs | 10 +++++----- test/test_helper.exs | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/test/microwaveprop/weather/grib2/complex_packing_test.exs b/test/microwaveprop/weather/grib2/complex_packing_test.exs index 19bedcd6..c9d0e1cf 100644 --- a/test/microwaveprop/weather/grib2/complex_packing_test.exs +++ b/test/microwaveprop/weather/grib2/complex_packing_test.exs @@ -7,7 +7,7 @@ defmodule Microwaveprop.Weather.Grib2.ComplexPackingTest do @fixture_path "test/fixtures/grib2/hrrr_tmp_2m.grib2" describe "extract_value/3 with real HRRR fixture" do - @tag :fixture + @tag :slow test "extracts a temperature value within meteorological range" do if File.exists?(@fixture_path) do fixture = File.read!(@fixture_path) @@ -26,7 +26,7 @@ defmodule Microwaveprop.Weather.Grib2.ComplexPackingTest do end end - @tag :fixture + @tag :slow test "extracts values at multiple indices" do if File.exists?(@fixture_path) do fixture = File.read!(@fixture_path) @@ -45,7 +45,7 @@ defmodule Microwaveprop.Weather.Grib2.ComplexPackingTest do end end - @tag :fixture + @tag :slow test "Dallas area temperature is reasonable for a US city" do if File.exists?(@fixture_path) do fixture = File.read!(@fixture_path) @@ -70,7 +70,7 @@ defmodule Microwaveprop.Weather.Grib2.ComplexPackingTest do end describe "decode_all/2" do - @tag :fixture + @tag :slow test "decodes all values from fixture" do if File.exists?(@fixture_path) do fixture = File.read!(@fixture_path) @@ -94,7 +94,7 @@ defmodule Microwaveprop.Weather.Grib2.ComplexPackingTest do end describe "extract_values/3" do - @tag :fixture + @tag :slow test "batch extracts multiple values matching individual calls" do if File.exists?(@fixture_path) do fixture = File.read!(@fixture_path) @@ -122,7 +122,7 @@ defmodule Microwaveprop.Weather.Grib2.ComplexPackingTest do end end - @tag :fixture + @tag :slow test "returns values in meteorological range" do if File.exists?(@fixture_path) do fixture = File.read!(@fixture_path) diff --git a/test/microwaveprop/weather/grib2/extractor_test.exs b/test/microwaveprop/weather/grib2/extractor_test.exs index 79d08d9c..824fde7b 100644 --- a/test/microwaveprop/weather/grib2/extractor_test.exs +++ b/test/microwaveprop/weather/grib2/extractor_test.exs @@ -154,7 +154,7 @@ defmodule Microwaveprop.Weather.Grib2.ExtractorTest do @fixture_path "test/fixtures/grib2/hrrr_tmp_2m.grib2" @multi_fixture_path "test/fixtures/grib2/hrrr_multi.grib2" - @tag :fixture + @tag :slow @tag timeout: 300_000 test "extracts grid values matching extract_points for same location" do if File.exists?(@fixture_path) do @@ -174,7 +174,7 @@ defmodule Microwaveprop.Weather.Grib2.ExtractorTest do end end - @tag :fixture + @tag :slow @tag timeout: 300_000 test "extracts grid values for multiple US cities" do if File.exists?(@fixture_path) do @@ -206,7 +206,7 @@ defmodule Microwaveprop.Weather.Grib2.ExtractorTest do @fixture_path "test/fixtures/grib2/hrrr_tmp_2m.grib2" @multi_fixture_path "test/fixtures/grib2/hrrr_multi.grib2" - @tag :fixture + @tag :slow @tag timeout: 120_000 test "extracts TMP:2m from real single-message GRIB2" do if File.exists?(@fixture_path) do @@ -221,7 +221,7 @@ defmodule Microwaveprop.Weather.Grib2.ExtractorTest do end end - @tag :fixture + @tag :slow @tag timeout: 300_000 test "extracts from multi-message GRIB2" do if File.exists?(@multi_fixture_path) do @@ -234,7 +234,7 @@ defmodule Microwaveprop.Weather.Grib2.ExtractorTest do end end - @tag :fixture + @tag :slow @tag timeout: 300_000 test "DPT values are meteorologically reasonable (not corrupted by bit padding)" do if File.exists?(@multi_fixture_path) do diff --git a/test/test_helper.exs b/test/test_helper.exs index 5f83cfe0..62f1ca42 100644 --- a/test/test_helper.exs +++ b/test/test_helper.exs @@ -1,2 +1,2 @@ -ExUnit.start() +ExUnit.start(exclude: [:slow]) Ecto.Adapters.SQL.Sandbox.mode(Microwaveprop.Repo, :manual)