Skip to content

pages build and deployment #41

pages build and deployment

pages build and deployment #41

GitHub Actions / Mix Tests on Elixir 1.16 / OTP 25 failed May 14, 2024 in 0s

63 passed, 1 failed and 0 skipped

Tests failed

❌ _build/test/lib/logger_json/test-junit-report.xml

64 tests were completed in 12s with 63 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Elixir.LoggerJSON.EctoTest 1✅ 1❌ 0ms
Elixir.LoggerJSON.Formatter.RedactorEncoderTest 21✅ 111ms
Elixir.LoggerJSON.Formatters.BasicTest 10✅ 4s
Elixir.LoggerJSON.Formatters.DatadogTest 11✅ 4s
Elixir.LoggerJSON.Formatters.GoogleCloudTest 18✅ 4s
Elixir.LoggerJSON.PlugTest 2✅ 0ms

❌ Elixir.LoggerJSON.EctoTest

❌ test telemetry_logging_handler/4 logs ecto queries received via telemetry event
	1) test telemetry_logging_handler/4 logs ecto queries received via telemetry event (LoggerJSON.EctoTest)
✅ test telemetry_logging_handler/4 allows disabling logging at runtime

✅ Elixir.LoggerJSON.Formatter.RedactorEncoderTest

✅ property encode/2 converts any term so that it can be encoded with Jason
✅ test encode/2 allows nils
✅ test encode/2 strips structs when Jason.Encoder is derived for them
✅ test encode/2 allows atoms
✅ test encode/2 allows numbers
✅ test encode/2 allows printable strings
✅ test encode/2 redacts values in structs
✅ test encode/2 inspects non-printable binaries
✅ test encode/2 converts non-string map keys
✅ test encode/2 strips Structs
✅ test encode/2 formats nested structures
✅ test encode/2 converts keyword lists to maps
✅ test encode/2 inspects pids
✅ test encode/2 redacts nested structures
✅ test encode/2 converts nested tuples to nested lists
✅ test encode/2 converts tuples to lists
✅ test encode/2 inspects functions
✅ test encode/2 redacts values in keyword lists
✅ test encode/2 allows booleans
✅ test encode/2 redacts values in maps
✅ test encode/2 doesn't choke on things that look like keyword lists but aren't

✅ Elixir.LoggerJSON.Formatters.BasicTest

✅ property allows to log any binary messages
✅ test logs exceptions
✅ test logs an LogEntry with a keyword payload
✅ test logs OpenTelemetry span and trace ids
✅ test logs an LogEntry of a given level
✅ test logs metadata
✅ test logs an LogEntry with a map payload
✅ test logs span and trace ids
✅ test logs http context
✅ property allows to log any structured messages

✅ Elixir.LoggerJSON.Formatters.DatadogTest

✅ property allows to log any binary messages
✅ test logs metadata
✅ test logs an LogEntry with a keyword payload
✅ test logs hostname
✅ test logs an LogEntry of a given level
✅ test logs span and trace ids
✅ test logs an LogEntry with a map payload
✅ test logs OpenTelemetry span and trace ids
✅ test logs http context
✅ test logs exceptions
✅ property allows to log any structured messages

✅ Elixir.LoggerJSON.Formatters.GoogleCloudTest

✅ property allows to log any binary messages
✅ test logs metadata
✅ test logs an LogEntry with a keyword payload
✅ test logs OpenTelemetry span and trace ids
✅ test logs an LogEntry of a given level
✅ test logs request id
✅ test logs an LogEntry with a map payload
✅ test logs exception http context
✅ test logs span and trace ids
✅ test logs exception user context
✅ test logs process exits
✅ test logged exception stacktrace is in Ruby format for Elixir errors
✅ test logs exceptions
✅ test logs exits
✅ test logs http context
✅ property allows to log any structured messages
✅ test logs throws
✅ test logs reasons in tuple

✅ Elixir.LoggerJSON.PlugTest

✅ test telemetry_logging_handler/4 logs request latency and metadata
✅ test telemetry_logging_handler/4 allows disabling logging at runtime

Annotations

Check failure on line 0 in _build/test/lib/logger_json/test-junit-report.xml

See this annotation in the file changed.

@github-actions github-actions / Mix Tests on Elixir 1.16 / OTP 25

Elixir.LoggerJSON.EctoTest ► test telemetry_logging_handler/4 logs ecto queries received via telemetry event

Failed test found in:
  _build/test/lib/logger_json/test-junit-report.xml
Error:
    1) test telemetry_logging_handler/4 logs ecto queries received via telemetry event (LoggerJSON.EctoTest)
Raw output
  1) test telemetry_logging_handler/4 logs ecto queries received via telemetry event (LoggerJSON.EctoTest)
     test/logger_json/ecto_test.exs:7
     match (=) failed
     code:  assert %{
              "message" => "begin",
              "metadata" => %{
                "query" => %{
                  "decode_time_μs" => 0,
                  "execution_time_μs" => 2930,
                  "latency_μs" => 3036,
                  "queue_time_μs" => 106,
                  "repo" => "Repo"
                }
              },
              "severity" => "info"
            } = decode_or_print_error(log)
     left:  %{
              "message" => "begin",
              "metadata" => %{
                "query" => %{
                  "decode_time_μs" => 0,
                  "execution_time_μs" => 2930,
                  "latency_μs" => 3036,
                  "queue_time_μs" => 106,
                  "repo" => "Repo"
                }
              },
              "severity" => "info"
            }
     right: %{"application" => "logger_json", "domain" => ["elixir"], "logging.googleapis.com/operation" => %{"producer" => "#PID<0.753.0>"}, "logging.googleapis.com/sourceLocation" => %{"file" => "lib/logger_json/ecto.ex", "function" => "Elixir.LoggerJSON.Ecto.telemetry_logging_handler/4", "line" => 83}, "message" => "begin", "query" => %{"decode_time_μs" => 0, "execution_time_μs" => 2930, "latency_μs" => 3036, "queue_time_μs" => 106, "repo" => "Repo"}, "severity" => "INFO", "time" => "2024-05-14T01:29:26.005Z"}
     stacktrace:
       test/logger_json/ecto_test.exs:36: (test)