• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

agentjido / jido / 8fd7e87f8151bfb4229faa178f5dd452e1d7d214

06 Jun 2025 08:01PM UTC coverage: 77.313% (+3.1%) from 74.198%
8fd7e87f8151bfb4229faa178f5dd452e1d7d214

push

github

web-flow
Extract Jido Signal into it's own package (#31)

* feat: Implement custom signal types

* feat: reconcile and update signal serialization

* refactor: improve signal dispatch

* feat: Signal middleware

* fix: handle empty signal list in append_signals function

Updated the append_signals function to return an {:ok, state, []} tuple when the input signal list is empty, preventing errors related to UUID generation for empty lists. Additionally, modified the publish function to return an {:error, :empty_signal_list} when an empty list is provided.

Added comprehensive end-to-end tests to ensure proper functionality across multiple buses, including signal partitioning, middleware interactions, and persistent subscriptions.

Refactored existing tests to improve clarity and maintainability.

* refactor: Improve code formatting and structure in signal modules

This commit enhances the readability and maintainability of the signal-related modules by applying consistent formatting and restructuring code for clarity. Key changes include:
- Improved formatting of function calls and case statements in `Jido.Signal.Bus`, `Jido.Signal.Dispatch`, and `Jido.Signal.Router` modules.
- Adjusted comments and documentation for better understanding.
- Updated tests to reflect changes in the router's target handling, allowing any term as a valid target.

These modifications aim to promote cleaner code practices and facilitate easier future development.

* chore: extract signal files to new package

* chore: update jido_signal dependency reference in mix.exs and mark test as flaky

This commit modifies the `mix.exs` file to include a commented-out path reference for the `jido_signal` dependency, allowing for easier local development. Additionally, a test in `server_runtime_test.exs` is tagged as flaky to indicate potential instability in its execution.

* Signal as Deps

* refactor: remove signal system references and documentation

This commit removes the signal system fro... (continued)

0 of 2 new or added lines in 2 files covered. (0.0%)

13 existing lines in 3 files now uncovered.

1387 of 1794 relevant lines covered (77.31%)

44696.88 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/test/support/test_structs.ex
1
defmodule JidoTest.TestStructs do
2
  @moduledoc false
3

4
  defmodule TestStruct do
5
    @moduledoc false
6
    @derive Jason.Encoder
7
    defstruct [:field1, :field2]
8
  end
9

10
  defmodule CustomDecodedStruct do
11
    @moduledoc false
12
    @derive Jason.Encoder
13
    defstruct [:value]
14
  end
15

16
  # Custom decoder implementation
17
  defimpl Jido.Signal.Serialization.JsonDecoder, for: CustomDecodedStruct do
UNCOV
18
    def decode(%CustomDecodedStruct{value: nil} = data), do: data
×
19

20
    def decode(%CustomDecodedStruct{value: value}) when is_number(value) do
UNCOV
21
      %CustomDecodedStruct{value: value * 2}
×
22
    end
23

24
    def decode(%CustomDecodedStruct{} = data), do: data
×
25
  end
26
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc