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

62 passed, 2 failed and 0 skipped

Tests failed

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

64 tests were completed in 12s 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✅ 78ms
Elixir.LoggerJSON.Formatters.BasicTest 10✅ 4s
Elixir.LoggerJSON.Formatters.DatadogTest 11✅ 4s
Elixir.LoggerJSON.Formatters.GoogleCloudTest 18✅ 4s
Elixir.LoggerJSON.PlugTest 1✅ 1❌ 1ms

❌ Elixir.LoggerJSON.EctoTest

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

✅ Elixir.LoggerJSON.Formatter.RedactorEncoderTest

✅ test encode/2 formats nested structures
✅ test encode/2 converts keyword lists to maps
✅ test encode/2 allows printable strings
✅ 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
✅ test encode/2 redacts nested structures
✅ test encode/2 redacts values in structs
✅ test encode/2 converts tuples to lists
✅ test encode/2 allows numbers
✅ test encode/2 inspects functions
✅ test encode/2 strips structs when Jason.Encoder is derived for them
✅ test encode/2 allows nils
✅ test encode/2 inspects pids
✅ property encode/2 converts any term so that it can be encoded with Jason
✅ test encode/2 converts non-string map keys
✅ test encode/2 converts nested tuples to nested lists
✅ test encode/2 inspects non-printable binaries
✅ test encode/2 strips Structs
✅ test encode/2 redacts values in keyword lists
✅ test encode/2 allows atoms

✅ Elixir.LoggerJSON.Formatters.BasicTest

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

✅ Elixir.LoggerJSON.Formatters.DatadogTest

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

✅ Elixir.LoggerJSON.Formatters.GoogleCloudTest

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

❌ Elixir.LoggerJSON.PlugTest

✅ test telemetry_logging_handler/4 allows disabling logging at runtime
❌ test telemetry_logging_handler/4 logs request latency and metadata
	2) test telemetry_logging_handler/4 logs request latency and metadata (LoggerJSON.PlugTest)

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:
    2) test telemetry_logging_handler/4 logs ecto queries received via telemetry event (LoggerJSON.EctoTest)
Raw output
  2) 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.1440.0>"}, "message" => "begin", "query" => %{"decode_time_μs" => 0, "execution_time_μs" => 2930, "latency_μs" => 3036, "queue_time_μs" => 106, "repo" => "Repo"}, "syslog" => %{"hostname" => "fv-az654-974", "severity" => "info", "timestamp" => "2024-05-14T01:27:16.850Z"}}
     stacktrace:
       test/logger_json/ecto_test.exs:36: (test)

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.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:
    2) test telemetry_logging_handler/4 logs request latency and metadata (LoggerJSON.PlugTest)
Raw output
  2) 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.1434.0>"}, "message" => "", "network" => %{"client" => %{"ip" => "127.0.0.1"}}, "syslog" => %{"hostname" => "fv-az654-974", "severity" => "info", "timestamp" => "2024-05-14T01:27:16.849Z"}}
     stacktrace:
       test/logger_json/plug_test.exs:22: (test)