diff --git a/CLAUDE.md b/CLAUDE.md index 96cce3a..93987c0 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -106,10 +106,15 @@ Tests use comprehensive mocking to prevent external connections: - Write descriptive test names that explain behavior ### Pre-Commit Checklist +**CRITICAL**: NEVER commit or push code with syntax errors or compilation failures. Always validate before committing. + 1. Run `mix format` - ALWAYS do this first -2. Run `mix compile --warnings-as-errors` - ensure no warnings -3. Run `mix test` - ensure all tests pass -4. Only then commit and push your changes +2. Run `mix compile --warnings-as-errors` - ensure no warnings or compilation errors +3. Run `mix test` - ensure all tests pass (at minimum, ensure no syntax/compilation errors) +4. **MANDATORY**: If any step fails, fix the issues before proceeding +5. Only after ALL checks pass should you commit and push your changes + +**NEVER PUSH BROKEN CODE**: Syntax errors, compilation failures, or basic test failures should be fixed immediately before any git operations. Pushing broken code breaks CI/CD pipelines and wastes deployment resources. ## Important Documentation Updates diff --git a/config/test.exs b/config/test.exs index ebea06f..039e77a 100644 --- a/config/test.exs +++ b/config/test.exs @@ -27,6 +27,9 @@ config :aprsme, AprsmeWeb.Endpoint, secret_key_base: "IV9+ENaw9i8xjReRk4sULRvRgsmFVTGQwQGGrf4G+Q/SFMeHBCNWRlPXQ2YvT36R", server: false +# Disable Prometheus telemetry in test mode to avoid port conflicts +config :aprsme, AprsmeWeb.Telemetry, enabled: false + # Disable cleanup scheduler in test environment config :aprsme, :cleanup_scheduler, enabled: false @@ -56,10 +59,6 @@ config :exq, start_on_application: false, mode: :inline -# Disable Prometheus telemetry in test mode to avoid port conflicts -config :aprsme, AprsmeWeb.Telemetry, - enabled: false - # Configure ExVCR config :exvcr, vcr_cassette_library_dir: "test/fixtures/vcr_cassettes", diff --git a/lib/aprsme_web/live/status_live/index.ex b/lib/aprsme_web/live/status_live/index.ex index acaff08..c2af04b 100644 --- a/lib/aprsme_web/live/status_live/index.ex +++ b/lib/aprsme_web/live/status_live/index.ex @@ -324,7 +324,10 @@ defmodule AprsmeWeb.StatusLive.Index do <%= for node_name <- @aprs_status.cluster_info.all_nodes do %>