pages build and deployment #42
GitHub Actions / Mix Tests on Elixir 1.16 / OTP 25
failed
May 14, 2024 in 1s
62 passed, 2 failed and 0 skipped
❌ _build/test/lib/logger_json/test-junit-report.xml
64 tests were completed in 11s with 62 passed, 2 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Elixir.LoggerJSON.EctoTest | 1✅ | 1❌ | 1ms | |
Elixir.LoggerJSON.Formatter.RedactorEncoderTest | 21✅ | 133ms | ||
Elixir.LoggerJSON.Formatters.BasicTest | 10✅ | 4s | ||
Elixir.LoggerJSON.Formatters.DatadogTest | 11✅ | 4s | ||
Elixir.LoggerJSON.Formatters.GoogleCloudTest | 18✅ | 3s | ||
Elixir.LoggerJSON.PlugTest | 1✅ | 1❌ | 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
✅ test encode/2 redacts nested structures
✅ test encode/2 converts non-string map keys
✅ test encode/2 doesn't choke on things that look like keyword lists but aren't
✅ test encode/2 allows printable strings
✅ test encode/2 inspects non-printable binaries
✅ test encode/2 allows nils
✅ test encode/2 formats nested structures
✅ test encode/2 allows booleans
✅ test encode/2 converts nested tuples to nested lists
✅ property encode/2 converts any term so that it can be encoded with Jason
✅ test encode/2 inspects pids
✅ test encode/2 redacts values in keyword lists
✅ test encode/2 strips structs when Jason.Encoder is derived for them
✅ test encode/2 strips Structs
✅ test encode/2 redacts values in structs
✅ test encode/2 converts keyword lists to maps
✅ test encode/2 allows atoms
✅ test encode/2 allows numbers
✅ test encode/2 inspects functions
✅ test encode/2 redacts values in maps
✅ test encode/2 converts tuples to lists
✅ Elixir.LoggerJSON.Formatters.BasicTest
✅ test logs an LogEntry of a given level
✅ test logs an LogEntry with a map payload
✅ property allows to log any binary messages
✅ property allows to log any structured messages
✅ test logs exceptions
✅ test logs span and trace ids
✅ test logs metadata
✅ test logs an LogEntry with a keyword payload
✅ test logs OpenTelemetry span and trace ids
✅ test logs http context
✅ Elixir.LoggerJSON.Formatters.DatadogTest
✅ test logs an LogEntry of a given level
✅ test logs an LogEntry with a map payload
✅ property allows to log any binary messages
✅ property allows to log any structured messages
✅ test logs http context
✅ test logs metadata
✅ test logs OpenTelemetry span and trace ids
✅ test logs span and trace ids
✅ test logs an LogEntry with a keyword payload
✅ test logs hostname
✅ test logs exceptions
✅ Elixir.LoggerJSON.Formatters.GoogleCloudTest
✅ test logs exception http context
✅ test logs reasons in tuple
✅ test logs an LogEntry of a given level
✅ test logs an LogEntry with a map payload
✅ property allows to log any binary messages
✅ property allows to log any structured messages
✅ test logged exception stacktrace is in Ruby format for Elixir errors
✅ test logs process exits
✅ test logs http context
✅ test logs metadata
✅ test logs span and trace ids
✅ test logs request id
✅ test logs exception user context
✅ test logs an LogEntry with a keyword payload
✅ test logs OpenTelemetry span and trace ids
✅ test logs exits
✅ test logs throws
✅ test logs exceptions
❌ Elixir.LoggerJSON.PlugTest
❌ test telemetry_logging_handler/4 logs request latency and metadata
1) test telemetry_logging_handler/4 logs request latency and metadata (LoggerJSON.PlugTest)
✅ 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
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"], "logger" => %{"file_name" => "lib/logger_json/ecto.ex", "line" => 83, "method_name" => "Elixir.LoggerJSON.Ecto.telemetry_logging_handler/4", "thread_name" => "#PID<0.1442.0>"}, "message" => "begin", "query" => %{"decode_time_μs" => 0, "execution_time_μs" => 2930, "latency_μs" => 3036, "queue_time_μs" => 106, "repo" => "Repo"}, "syslog" => %{"hostname" => "fv-az1788-408", "severity" => "info", "timestamp" => "2024-05-14T01:32:05.391Z"}}
stacktrace:
test/logger_json/ecto_test.exs:36: (test)
Check failure on line 0 in _build/test/lib/logger_json/test-junit-report.xml
github-actions / Mix Tests on Elixir 1.16 / OTP 25
Elixir.LoggerJSON.PlugTest ► test telemetry_logging_handler/4 logs request latency and metadata
Failed test found in:
_build/test/lib/logger_json/test-junit-report.xml
Error:
1) test telemetry_logging_handler/4 logs request latency and metadata (LoggerJSON.PlugTest)
Raw output
1) test telemetry_logging_handler/4 logs request latency and metadata (LoggerJSON.PlugTest)
test/logger_json/plug_test.exs:7
match (=) failed
code: assert %{
"message" => "",
"metadata" => %{"duration_μs" => 5},
"request" => %{
"client" => %{"ip" => "127.0.0.1", "user_agent" => nil},
"connection" => %{"method" => "GET", "path" => "/", "protocol" => "HTTP/1.1", "status" => nil}
},
"severity" => "info"
} = decode_or_print_error(log)
left: %{
"message" => "",
"metadata" => %{"duration_μs" => 5},
"request" => %{
"client" => %{"ip" => "127.0.0.1", "user_agent" => nil},
"connection" => %{"method" => "GET", "path" => "/", "protocol" => "HTTP/1.1", "status" => nil}
},
"severity" => "info"
}
right: %{"application" => "logger_json", "domain" => ["elixir"], "duration_μs" => 5, "http" => %{"method" => "GET", "referer" => nil, "request_id" => nil, "status_code" => nil, "url" => "http://www.example.com/", "url_details" => %{"host" => "www.example.com", "path" => "/", "port" => 80, "queryString" => "", "scheme" => "http"}, "useragent" => nil}, "logger" => %{"file_name" => "lib/logger_json/plug.ex", "line" => 61, "method_name" => "Elixir.LoggerJSON.Plug.telemetry_logging_handler/4", "thread_name" => "#PID<0.1436.0>"}, "message" => "", "network" => %{"client" => %{"ip" => "127.0.0.1"}}, "syslog" => %{"hostname" => "fv-az1788-408", "severity" => "info", "timestamp" => "2024-05-14T01:32:05.390Z"}}
stacktrace:
test/logger_json/plug_test.exs:22: (test)
Loading