chore: Bump version to 0.6.0, fix tests
Some checks failed
CI / Test (OTP 27.2 / Elixir 1.18.2) (push) Failing after 0s
CI / Test (OTP 28.4 / Elixir 1.19.4 + Marmot E2E) (push) Failing after 0s

This commit is contained in:
2026-03-18 21:29:58 +01:00
parent fc3d121599
commit 84f83a48d7
7 changed files with 29 additions and 23 deletions

View File

@@ -454,7 +454,7 @@ For systemd/process managers, run the release command with `start`.
Build:
```bash
nix-build
nix build
```
Run the built release from `./result/bin/parrhesia` (release command interface).

View File

@@ -10,7 +10,7 @@
vips,
}: let
pname = "parrhesia";
version = "0.5.0";
version = "0.6.0";
beamPackages = beam.packages.erlang_28.extend (
final: _prev: {

View File

@@ -22,16 +22,7 @@ defmodule Parrhesia.Storage.Adapters.Memory.Store do
audit_logs: []
}
def ensure_started do
with :ok <- ensure_agent_started() do
Agent.get(@name, fn state ->
ensure_tables_started()
state
end)
:ok
end
end
def ensure_started, do: start_store()
def put_event(event_id, event) when is_binary(event_id) and is_map(event) do
:ok = ensure_started()
@@ -182,14 +173,6 @@ defmodule Parrhesia.Storage.Adapters.Memory.Store do
Agent.get_and_update(@name, fun)
end
defp ensure_agent_started do
if Process.whereis(@name) do
:ok
else
start_store()
end
end
defp start_store do
case Agent.start_link(&init_state/0, name: @name) do
{:ok, _pid} -> :ok

View File

@@ -4,7 +4,7 @@ defmodule Parrhesia.MixProject do
def project do
[
app: :parrhesia,
version: "0.5.0",
version: "0.6.0",
elixir: "~> 1.18",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,

View File

@@ -724,7 +724,11 @@ defmodule NodeSyncE2E.Runner do
%{
"created_at" => System.system_time(:second),
"kind" => 27_235,
"tags" => [["method", method], ["u", url]],
"tags" => [
["method", method],
["u", url],
["nonce", "#{System.unique_integer([:positive, :monotonic])}"]
],
"content" => ""
}
end

View File

@@ -5,7 +5,6 @@ defmodule Parrhesia.ConfigTest do
test "returns configured relay limits/policies/features" do
assert Parrhesia.Config.get([:metadata, :name]) == "Parrhesia"
assert Parrhesia.Config.get([:metadata, :version]) == "0.5.0"
assert Parrhesia.Config.get([:metadata, :hide_version?]) == true
assert Parrhesia.Config.get([:limits, :max_frame_bytes]) == 1_048_576
assert Parrhesia.Config.get([:limits, :max_event_bytes]) == 262_144

View File

@@ -24,4 +24,24 @@ exclude_tags =
end, []}
)
# Suppress Req retry warnings (e.g. transient socket closures during tests).
# These are expected when tests tear down HTTP connections mid-flight.
:logger.add_primary_filter(
:suppress_req_retry,
{fn
%{msg: {:string, chars}}, _extra ->
str = IO.chardata_to_string(chars)
if :string.find(str, "retry:") != :nomatch or
:string.find(str, "Req.TransportError") != :nomatch do
:stop
else
:ignore
end
_event, _extra ->
:ignore
end, []}
)
ExUnit.start(exclude: exclude_tags)