excadg 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b39410e76cbbe770fa2baa0f94eb10f25dd73bb644bb304c19fe4bc7b7fa39b
4
- data.tar.gz: 0df53fa109fbfdb56809b87d8dd8314c5f884bb6a8060ce8eff2913627ca63c1
3
+ metadata.gz: 1c5c1e64e73685772165f04a188070729bedb2e4ef0ece0649815f9a3e56f182
4
+ data.tar.gz: f26fb805c50f800369b8402f1393c2dd7dc90b44093e2dda695ad956e9d895d8
5
5
  SHA512:
6
- metadata.gz: 897dab58f102d0baf617b8d592f46a649e9c4213186cad003f79a36711c104d7d393a6f6e1454119465fbb423c0c4be6f980f89334d4ac5c77818b5b7ed718a5
7
- data.tar.gz: 1cf7919dd79fed3d3e21499b7a246a9a96ebec26b06cb1462abdb66db67ab971de5f639ffc9ca00c025be1b313bec5fcd0ecb9e26147f95e437e1a36e8ff56ce
6
+ metadata.gz: b60769a130cad0d93f40a4bebe239dc872046bda5f624747451781f78223d2551c992af71033abe8a7e19e40c0a8ce495703f206e9057bc82794bd4868e9e4f7
7
+ data.tar.gz: 4dfd3ad001c4e10907599a745fca844642fc20cdd138fddf5d829519f1c2b89e84c2fbd961d8b6807759aaf2f0f55de585ab2f9af1b9fdd0277c2db4005c7e4e
data/README.md CHANGED
@@ -185,17 +185,9 @@ Logging is disabled by default, but it could be useful to debug tests. Add `ExcA
185
185
  - problem: can't find what to suspend
186
186
  - make a loop payload template
187
187
  - provide a mechanism to control # of children
188
- - allow to dump shell payload stdout/err in realtime
189
-
190
- ## Graph stability and tracking
191
-
192
- - add a tracker that collects execution graph from broker
193
- - is hooked by broker
194
- - can be enabled / disabled
195
- - visualize current execution on TUI
196
- - allow to focus on a certain vertex to see what's it waiting for
197
- - allow to dump currect vertice's state
198
- - implement checks using tracker:
199
- - check for loops by deducting vertices to some signatures
188
+
189
+ ## Graph checks
190
+
191
+ - check for loops in the config
200
192
  - check for unreachable islands - graph connectivity
201
193
  - check that there are nodes to start from
data/lib/excadg/broker.rb CHANGED
@@ -11,7 +11,7 @@ module ExcADG
11
11
  # handle requests sending/receiving though Ractor's interface
12
12
  module Broker
13
13
  class << self
14
- attr_reader :data_store, :vtracker
14
+ attr_reader :data_store
15
15
 
16
16
  # is used from vertices to send reaqests to the broker
17
17
  # @return data received in response from the main ractor
@@ -36,11 +36,9 @@ module ExcADG
36
36
  end
37
37
 
38
38
  # start requests broker for vertices in a separated thread
39
- # @param track {Boolean} whether to track execution graph
40
39
  # @return the thread started
41
- def run track: false
40
+ def run
42
41
  @data_store ||= DataStore.new
43
- @vtracker ||= track ? VTracker.new : nil
44
42
  @broker = Thread.new { loop { process_request } } unless @broker&.alive?
45
43
 
46
44
  at_exit {
@@ -81,7 +79,6 @@ module ExcADG
81
79
  Log.info "received request: #{request}"
82
80
  request.self.send case request
83
81
  when Request::GetStateData
84
- @vtracker&.track request.self, deps
85
82
  request.filter? ? request.deps.collect { |d| @data_store[d] } : @data_store.to_a
86
83
  when Request::Update
87
84
  @data_store << request.data
data/lib/excadg/tui.rb CHANGED
@@ -93,29 +93,6 @@ module ExcADG
93
93
  def vertices_stats vertice_pairs
94
94
  vertice_pairs.collect(&:name).join(', ')
95
95
  end
96
-
97
- # make ASCII drawing of a graph
98
- def tracked_graph g, r
99
- reversed_graph = g # Broker.vtracker.graph.reverse
100
- # Broker.vtracker.by_state[:ready].collect { |ready_vertex|
101
- items = r.collect { |ready_vertex|
102
- # deps = g.adjacent_vertices ready_vertex
103
- # parents = reversed_graph.adjacent_vertices ready_vertex
104
- [ready_vertex.name.to_s, ready_vertex.state.to_s]
105
- }
106
- items[1] << 'asd'
107
- items[1] << 'dsa'
108
- Block.row(
109
- Block.column(
110
- Block.row(*items) { |blk| blk.v_align!(:right).box!.h_pad!(3) },
111
- ['x' * 70],
112
- align: :centre
113
- ),
114
- Block.column(*Array.new(20, 'Y')),
115
- align: :bottom
116
- ).array
117
- # TODO: add a row below the current row
118
- end
119
96
  end
120
97
  end
121
98
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: excadg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - skorobogatydmitry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-30 00:00:00.000000000 Z
11
+ date: 2024-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rgl