Fix update-states target
... and regenerate svg files. Change-Id: I903774597e07a4184213df284207eeac5f329d5e
1
.gitignore
vendored
@ -57,6 +57,7 @@ ChangeLog
|
||||
|
||||
# doc
|
||||
doc/build/
|
||||
.diagram-tools/
|
||||
|
||||
.idea
|
||||
env
|
||||
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
@ -40,6 +40,7 @@ class DummyRuntime(object):
|
||||
self.completer = mock.MagicMock()
|
||||
self.scheduler = mock.MagicMock()
|
||||
self.storage = mock.MagicMock()
|
||||
self.selector = mock.MagicMock()
|
||||
|
||||
|
||||
def make_machine(start_state, transitions, event_name_cb):
|
||||
@ -129,7 +130,7 @@ def main():
|
||||
elif options.engines:
|
||||
source_type = "Engines"
|
||||
b = builder.MachineBuilder(DummyRuntime(), mock.MagicMock())
|
||||
source, memory = b.build()
|
||||
source, memory = b.build({})
|
||||
internal_states.extend(builder.META_STATES)
|
||||
ordering = 'out'
|
||||
elif options.wbe_requests:
|
||||
|
@ -13,7 +13,7 @@ if [ ! -d "$PWD/.diagram-tools" ]; then
|
||||
fi
|
||||
|
||||
script_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
img_dir="$script_dir/../doc/source/img"
|
||||
img_dir="$script_dir/../doc/source/user/img"
|
||||
|
||||
echo "---- Updating task state diagram ----"
|
||||
python $script_dir/state_graph.py -t -f /tmp/states.svg
|
||||
@ -31,9 +31,10 @@ echo "---- Updating retry state diagram ----"
|
||||
python $script_dir/state_graph.py -r -f /tmp/states.svg
|
||||
$xsltproc $PWD/.diagram-tools/notugly.xsl /tmp/states.svg > $img_dir/retry_states.svg
|
||||
|
||||
echo "---- Updating wbe request state diagram ----"
|
||||
python $script_dir/state_graph.py -w -f /tmp/states.svg
|
||||
$xsltproc $PWD/.diagram-tools/notugly.xsl /tmp/states.svg > $img_dir/wbe_request_states.svg
|
||||
# NOTE(tkajinam): This is broken since 148963805626f6246554961bd3ff39055de3e317
|
||||
# echo "---- Updating wbe request state diagram ----"
|
||||
# python $script_dir/state_graph.py -w -f /tmp/states.svg
|
||||
# $xsltproc $PWD/.diagram-tools/notugly.xsl /tmp/states.svg > $img_dir/wbe_request_states.svg
|
||||
|
||||
echo "---- Updating job state diagram ----"
|
||||
python $script_dir/state_graph.py -j -f /tmp/states.svg
|
||||
|