prop/test/microwaveprop/workers
Graham McIntire 82bcaa5a54
Some checks failed
Build and Push / Build and Push Docker Image (push) Has been cancelled
refactor: idiomatic test sandbox setup (manual mode, single reset hook)
Replace the non-idiomatic :auto sandbox mode with :manual, eliminating
the root cause of stale data across test runs. The :auto mode let any
process auto-checkout and commit outside test transactions — Oban in
testing:inline already disables plugins/queues, so :auto was never
needed.

Changes:
- test_helper: Sandbox.mode(Repo, :manual); drop manual app boot (mix
  now starts the app idiomatically), drop --no-start alias, drop
  table-cleanup loop
- DataCase: single reset_test_state/0 consolidates GridCache.clear,
  ScoreCache.clear, score-file wipe, and default HTTP stubs; drop
  the :auto-restore on_exit hack; setup_sandbox now just start_owner
- ConnCase: delegates shared reset to DataCase, removes duplicate
  cache clears and stub installs
- config: pool Ecto.Adapters.SQL.Sandbox (idiomatic canonical form)

Note: GridCache/ScoreCache are globally-registered GenServers, so
the architecturally clean per-test start_supervised! approach
conflicts with async:true (parallel tests can't register the same
name). The centralized clear in reset_test_state is the practical
compromise — one place, documented, single call.
2026-08-04 17:47:49 -05:00
..
admin_task_worker_test.exs fix: prevent contacts_dedup_idx collisions in parallel async tests 2026-08-04 17:05:16 -05:00
backfill_enqueue_worker_test.exs refactor: idiomatic test sandbox setup (manual mode, single reset hook) 2026-08-04 17:47:49 -05:00
canadian_sounding_fetch_worker_test.exs Ingest Canadian radiosondes via UWYO + plans for RDPS/HRDPS 2026-04-13 09:14:34 -05:00
common_volume_radar_worker_test.exs fix(workers): propagate transient errors so Oban retries + counters fire 2026-04-21 13:15:27 -05:00
contact_import_worker_test.exs fix: resolve all 281 credo issues across source and test files 2026-07-29 09:04:21 -05:00
contact_position_backfill_worker_test.exs fix: prevent contacts_dedup_idx collisions in parallel async tests 2026-08-04 17:05:16 -05:00
contact_weather_enqueue_worker_test.exs fix: resolve all 281 credo issues across source and test files 2026-07-29 09:04:21 -05:00
gefs_fetch_worker_test.exs fix: prevent contacts_dedup_idx collisions in parallel async tests 2026-08-04 17:05:16 -05:00
grid_cache_prune_worker_test.exs fix: prevent contacts_dedup_idx collisions in parallel async tests 2026-08-04 17:05:16 -05:00
hrdps_grid_worker_test.exs fix: resolve all 281 credo issues across source and test files 2026-07-29 09:04:21 -05:00
hrrr_native_grid_worker_test.exs fix: resolve all 281 credo issues across source and test files 2026-07-29 09:04:21 -05:00
iemre_fetch_worker_test.exs fix: resolve all 281 credo issues across source and test files 2026-07-29 09:04:21 -05:00
ionosphere_fetch_worker_test.exs Fix LiveView crashes and stabilize test suite 2026-08-01 09:26:47 -05:00
mechanism_classify_worker_test.exs fix(workers): propagate transient errors so Oban retries + counters fire 2026-04-21 13:15:27 -05:00
narr_fetch_worker_test.exs fix: resolve 5 remaining environment-gap test failures 2026-08-04 14:12:36 -05:00
nexrad_worker_test.exs fix: resolve all 281 credo issues across source and test files 2026-07-29 09:04:21 -05:00
partition_maintenance_worker_test.exs feat(infra): auto-extend quarterly partitions for hrrr/hrdps tables 2026-05-05 16:22:16 -05:00
propagation_grid_worker_test.exs fix: additional @spec and test assertion fixes from agents 2026-06-12 13:53:25 -05:00
propagation_prune_worker_test.exs fix: prevent contacts_dedup_idx collisions in parallel async tests 2026-08-04 17:05:16 -05:00
pskr_calibration_worker_test.exs fix: prevent contacts_dedup_idx collisions in parallel async tests 2026-08-04 17:05:16 -05:00
pskr_recalibration_worker_test.exs feat(pskr): weekly recalibration analysis on the calibration corpus 2026-05-04 16:18:17 -05:00
radar_frame_worker_test.exs fix: resolve all 281 credo issues across source and test files 2026-07-29 09:04:21 -05:00
rover_mission_backfill_worker_test.exs feat(rover-planning): hourly backfill worker recovers stuck paths 2026-05-03 13:52:27 -05:00
rover_mission_reconcile_worker_test.exs test: push coverage 79.64% -> 80.04% across multiple modules 2026-05-08 08:42:03 -05:00
rover_path_profile_worker_test.exs fix: resolve 391 Credo issues across codebase 2026-06-12 13:51:32 -05:00
solar_index_worker_test.exs Add type filter to backfill enqueue 2026-04-06 11:42:26 -05:00
space_weather_fetch_worker_test.exs SpaceWeather: SWPC JSON ingestion (Kp, F10.7, GOES X-ray) 2026-04-15 14:55:24 -05:00
station_elevation_worker_test.exs feat(rover): Oban worker enriches station elevation post-insert 2026-04-25 16:26:33 -05:00
terrain_profile_worker_test.exs fix: resolve 391 Credo issues across codebase 2026-06-12 13:51:32 -05:00
user_home_qth_lookup_worker_test.exs fix: resolve 391 Credo issues across codebase 2026-06-12 13:51:32 -05:00
weather_fetch_worker_test.exs perf(weather): asos_day — one job per unique (station, UTC date) 2026-04-24 13:19:20 -05:00