testsuit 0.3.2__tar.gz → 0.3.4__tar.gz

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.
Files changed (335) hide show
  1. {testsuit-0.3.2/src/testsuit.egg-info → testsuit-0.3.4}/PKG-INFO +1 -1
  2. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/README.md +13 -0
  3. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/editor_schemas.py +5 -0
  4. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/engine.py +65 -9
  5. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/lab.py +20 -0
  6. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/sequencer.py +32 -16
  7. testsuit-0.3.2/src/testsuit/sequencer/ui/assets/index-AE---svC.js → testsuit-0.3.4/src/testsuit/sequencer/ui/assets/index-DZnldqjG.js +192 -192
  8. testsuit-0.3.2/src/testsuit/sequencer/ui/assets/python-BzoWUHcW.js → testsuit-0.3.4/src/testsuit/sequencer/ui/assets/python-Cg9qq3nQ.js +1 -1
  9. testsuit-0.3.2/src/testsuit/sequencer/ui/assets/yaml-B5B03TRE.js → testsuit-0.3.4/src/testsuit/sequencer/ui/assets/yaml-Bksy1CVE.js +1 -1
  10. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/ui/index.html +1 -1
  11. {testsuit-0.3.2 → testsuit-0.3.4/src/testsuit.egg-info}/PKG-INFO +1 -1
  12. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit.egg-info/SOURCES.txt +3 -3
  13. {testsuit-0.3.2 → testsuit-0.3.4}/tests/sequencer_t.py +28 -0
  14. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/api.ts +32 -0
  15. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/editor/InventoryForm.tsx +11 -6
  16. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/editor/LibraryForm.tsx +11 -7
  17. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/editor/PipelineEditor.tsx +3 -3
  18. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/editor/commands.tsx +10 -4
  19. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/editor/state.tsx +15 -2
  20. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/pages/Lab.tsx +7 -5
  21. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/pages/Run.tsx +8 -5
  22. {testsuit-0.3.2 → testsuit-0.3.4}/.editorconfig +0 -0
  23. {testsuit-0.3.2 → testsuit-0.3.4}/.github/workflows/publish.yml +0 -0
  24. {testsuit-0.3.2 → testsuit-0.3.4}/.github/workflows/tests.yml +0 -0
  25. {testsuit-0.3.2 → testsuit-0.3.4}/.gitignore +0 -0
  26. {testsuit-0.3.2 → testsuit-0.3.4}/CONTRIBUTING.md +0 -0
  27. {testsuit-0.3.2 → testsuit-0.3.4}/LICENSE +0 -0
  28. {testsuit-0.3.2 → testsuit-0.3.4}/README.md +0 -0
  29. {testsuit-0.3.2 → testsuit-0.3.4}/docs/diagrams/data_model.puml +0 -0
  30. {testsuit-0.3.2 → testsuit-0.3.4}/docs/diagrams/data_model.svg +0 -0
  31. {testsuit-0.3.2 → testsuit-0.3.4}/docs/diagrams/overview.puml +0 -0
  32. {testsuit-0.3.2 → testsuit-0.3.4}/docs/diagrams/overview.svg +0 -0
  33. {testsuit-0.3.2 → testsuit-0.3.4}/docs/diagrams/render.sh +0 -0
  34. {testsuit-0.3.2 → testsuit-0.3.4}/docs/diagrams/seq_cancel.puml +0 -0
  35. {testsuit-0.3.2 → testsuit-0.3.4}/docs/diagrams/seq_cancel.svg +0 -0
  36. {testsuit-0.3.2 → testsuit-0.3.4}/docs/diagrams/seq_editor.puml +0 -0
  37. {testsuit-0.3.2 → testsuit-0.3.4}/docs/diagrams/seq_editor.svg +0 -0
  38. {testsuit-0.3.2 → testsuit-0.3.4}/docs/diagrams/seq_run.puml +0 -0
  39. {testsuit-0.3.2 → testsuit-0.3.4}/docs/diagrams/seq_run.svg +0 -0
  40. {testsuit-0.3.2 → testsuit-0.3.4}/docs/diagrams/seq_submit.puml +0 -0
  41. {testsuit-0.3.2 → testsuit-0.3.4}/docs/diagrams/seq_submit.svg +0 -0
  42. {testsuit-0.3.2 → testsuit-0.3.4}/docs/diagrams/toytrain_lab.puml +0 -0
  43. {testsuit-0.3.2 → testsuit-0.3.4}/docs/diagrams/toytrain_lab.svg +0 -0
  44. {testsuit-0.3.2 → testsuit-0.3.4}/examples/config_extract_data_any.json +0 -0
  45. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/.gitignore +0 -0
  46. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/README.md +0 -0
  47. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/baseline_expected.yml +0 -0
  48. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/datapack/release_store/README.md +0 -0
  49. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/datapack/release_store/toytrain-sim/v1.1.0/SIM.txt +0 -0
  50. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/datapack/release_store/toytrain-sim/v1.1.0/dataset.yml +0 -0
  51. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/datapack/release_store/toytrain-sw/v0.3.0/acquisition/APP.txt +0 -0
  52. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/datapack/release_store/toytrain-sw/v0.3.0/dataset.yml +0 -0
  53. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/datapack/release_store/toytrain-sw/v0.3.0/pilot/APP.txt +0 -0
  54. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/datapack/release_store/toytrain-sw/v0.3.0/pilot/FIRMWARE.txt +0 -0
  55. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/datapack/release_store/toytrain-sw/v0.3.0/telemetry/APP.txt +0 -0
  56. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/datapack/setup/globals.yml +0 -0
  57. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/datapack/setup/platforms/emulated.yml +0 -0
  58. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/datapack/setup/platforms/sim_bench.yml +0 -0
  59. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/datapack/setup/scripts/check_data.py +0 -0
  60. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/datapack/setup/templates/acquisition.yml +0 -0
  61. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/datapack/setup/templates/exploit.yml +0 -0
  62. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/datapack/setup/templates/piezo_sim.yml +0 -0
  63. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/datapack/setup/templates/pilot.yml +0 -0
  64. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/datapack/setup/templates/propulsion_sim.yml +0 -0
  65. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/datapack/setup/templates/telemetry.yml +0 -0
  66. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/datapack/setup/toytrain_setup.yml +0 -0
  67. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/datapack/testdef/front_contact/criteria/front_contact/front_contact.mexploit.yml +0 -0
  68. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/datapack/testdef/front_contact/scenario.yml +0 -0
  69. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/datapack/testdef/front_contact/testdef.yml +0 -0
  70. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/datapack/testdef/max_speed/criteria/max_speed/max_speed.mexploit.yml +0 -0
  71. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/datapack/testdef/max_speed/scenario.yml +0 -0
  72. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/datapack/testdef/max_speed/testdef.yml +0 -0
  73. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/lab/components/toytrain.yml +0 -0
  74. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/lab/components_emulated/toytrain.yml +0 -0
  75. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/lab/roles/toytrain.yml +0 -0
  76. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/lab/toytrain_emulated.yml +0 -0
  77. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/lab/toytrain_lab.yml +0 -0
  78. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/pyproject.toml +0 -0
  79. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/sample/data/front_contact/propulsion.propj +0 -0
  80. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/sample/data/front_contact/telemetry.csv +0 -0
  81. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/sample/data/max_speed/propulsion.propj +0 -0
  82. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/sample/data/max_speed/telemetry.csv +0 -0
  83. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/sample/exploit_front_contact.yml +0 -0
  84. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/sample/exploit_max_speed.yml +0 -0
  85. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/sample/make_runs.py +0 -0
  86. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/src/toytrain/__init__.py +0 -0
  87. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/src/toytrain/assets/toytrain_logo.svg +0 -0
  88. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/src/toytrain/checks.py +0 -0
  89. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/src/toytrain/cli.py +0 -0
  90. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/src/toytrain/criteria.py +0 -0
  91. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/src/toytrain/filemgrs.py +0 -0
  92. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/src/toytrain/importer.py +0 -0
  93. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/src/toytrain/plugin.py +0 -0
  94. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/tests/conftest.py +0 -0
  95. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/tests/etc/exploit_nok.yml +0 -0
  96. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/tests/etc/overspeed/overspeed.sim.yml +0 -0
  97. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/tests/test_cli.py +0 -0
  98. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/tests/test_criteria.py +0 -0
  99. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/tests/test_datapack.py +0 -0
  100. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/tests/test_exploit_runner.py +0 -0
  101. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/tests/test_formats.py +0 -0
  102. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/tsq.dev.yml +0 -0
  103. {testsuit-0.3.2 → testsuit-0.3.4}/examples/toytrain/tsq.yml +0 -0
  104. {testsuit-0.3.2 → testsuit-0.3.4}/pyproject.toml +0 -0
  105. {testsuit-0.3.2 → testsuit-0.3.4}/setup.cfg +0 -0
  106. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/__init__.py +0 -0
  107. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/cli/__init__.py +0 -0
  108. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/cli/apply_clock_correction.py +0 -0
  109. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/cli/data2db.py +0 -0
  110. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/cli/data2h5.py +0 -0
  111. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/cli/datapack.py +0 -0
  112. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/cli/evalfile.py +0 -0
  113. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/cli/exploit_runner.py +0 -0
  114. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/cli/extract_data_any.py +0 -0
  115. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/cli/extract_data_flags.py +0 -0
  116. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/cli/mxp.py +0 -0
  117. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/cli/notebooks.py +0 -0
  118. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/cli/tsq.py +0 -0
  119. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/DataFileMgrs/AFileMgr.py +0 -0
  120. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/DataFileMgrs/ClickhouseFileMgr.py +0 -0
  121. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/DataFileMgrs/CsvFileMgr.py +0 -0
  122. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/DataFileMgrs/DxdFileMgr.py +0 -0
  123. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/DataFileMgrs/FolderParamMgr.py +0 -0
  124. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/DataFileMgrs/H5FileMgr.py +0 -0
  125. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/DataFileMgrs/InfluxDbFileMgr.py +0 -0
  126. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/DataFileMgrs/MdfFileMgr.py +0 -0
  127. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/DataFileMgrs/TdmsFileMgr.py +0 -0
  128. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/DataFileMgrs/UdbfFileMgr.py +0 -0
  129. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/DataFileMgrs/__init__.py +0 -0
  130. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/DataFileMgrs/formats.py +0 -0
  131. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/DataframeToHdf5.py +0 -0
  132. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/__init__.py +0 -0
  133. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/data2db.py +0 -0
  134. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/datapack/ADataImporter.py +0 -0
  135. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/datapack/GitImporter.py +0 -0
  136. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/datapack/README.md +0 -0
  137. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/datapack/__init__.py +0 -0
  138. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/datapack/baseline.py +0 -0
  139. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/datapack/datapack_tools.py +0 -0
  140. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/datapack/generators.py +0 -0
  141. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/datapack/importers.py +0 -0
  142. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/datapack/model.py +0 -0
  143. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/datapack/processors.py +0 -0
  144. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/datapack/procs.py +0 -0
  145. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/datapack/templating.py +0 -0
  146. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/datatoolbox.py +0 -0
  147. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/h5diff.py +0 -0
  148. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/plotBackends/__init__.py +0 -0
  149. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/plotBackends/common.py +0 -0
  150. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/plotBackends/matplotlibBackend.py +0 -0
  151. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/plotBackends/plotlyBackend.py +0 -0
  152. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/datatools/plotHelpers.py +0 -0
  153. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/exploit/README.md +0 -0
  154. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/exploit/mexploit/__init__.py +0 -0
  155. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/exploit/mexploit/conftest.py +0 -0
  156. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/exploit/mexploit/conftest_scn_template.py +0 -0
  157. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/exploit/mexploit/criteria.py +0 -0
  158. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/exploit/mexploit/helpers.py +0 -0
  159. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/exploit/mexploit/mexploit.py +0 -0
  160. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/exploit/mexploit/registry.py +0 -0
  161. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/exploit/runner/__init__.py +0 -0
  162. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/exploit/runner/exploit_runner.py +0 -0
  163. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/exploit/runner/report.py +0 -0
  164. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/exploit/runner/report_html.py +0 -0
  165. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/exploit/runner/report_libs/README.md +0 -0
  166. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/exploit/runner/report_libs/showdown.min.js +0 -0
  167. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/exploit/runner/report_libs/toastui-editor-all.min.js +0 -0
  168. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/exploit/runner/report_libs/toastui-editor.min.css +0 -0
  169. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/exploit/runner/runProcess.py +0 -0
  170. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/exploit/runner/utils.py +0 -0
  171. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/jupytertools/FileDialog.py +0 -0
  172. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/jupytertools/JupyterGui.py +0 -0
  173. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/jupytertools/MexploitJupyterGui.py +0 -0
  174. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/jupytertools/PlotJupyterGui.py +0 -0
  175. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/jupytertools/__init__.py +0 -0
  176. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/jupytertools/h5ConvertJupyterGui.py +0 -0
  177. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/jupytertools/install.py +0 -0
  178. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/jupytertools/notebooks/__init__.py +0 -0
  179. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/jupytertools/notebooks/data_plot.ipynb +0 -0
  180. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/jupytertools/notebooks/h5_convert.ipynb +0 -0
  181. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/jupytertools/notebooks/mexploit.ipynb +0 -0
  182. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/misc/MonitorProgress.py +0 -0
  183. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/misc/__init__.py +0 -0
  184. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/misc/files.py +0 -0
  185. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/misc/logger.py +0 -0
  186. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/plugins.py +0 -0
  187. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/__init__.py +0 -0
  188. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/api.py +0 -0
  189. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/benchmark.md +0 -0
  190. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/config.py +0 -0
  191. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/daemon.py +0 -0
  192. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/editor.py +0 -0
  193. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/editor_api.py +0 -0
  194. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/gitlab/README.md +0 -0
  195. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/gitlab/cleanup.sh +0 -0
  196. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/gitlab/config.sh +0 -0
  197. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/gitlab/prepare.sh +0 -0
  198. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/gitlab/run.sh +0 -0
  199. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/intake.py +0 -0
  200. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/inventory.py +0 -0
  201. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/library.py +0 -0
  202. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/logbuffer.py +0 -0
  203. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/model.py +0 -0
  204. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/monitor.py +0 -0
  205. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/registry.py +0 -0
  206. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/results.py +0 -0
  207. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/scheduler.py +0 -0
  208. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/store.py +0 -0
  209. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/transports/__init__.py +0 -0
  210. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/transports/local.py +0 -0
  211. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/transports/ssh.py +0 -0
  212. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/ui/assets/codicon-DCmgc-ay.ttf +0 -0
  213. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/ui/assets/editor.worker-B4pQIWZD.js +0 -0
  214. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/ui/assets/index-DvvSWuay.css +0 -0
  215. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/ui/assets/ini-BvajGCUy.js +0 -0
  216. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/ui/assets/markdown-B811l8j2.js +0 -0
  217. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/ui/assets/shell-CsDZo4DB.js +0 -0
  218. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/ui/assets/yaml.worker-0FgWxutO.js +0 -0
  219. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/util.py +0 -0
  220. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit/sequencer/yamledit.py +0 -0
  221. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit.egg-info/dependency_links.txt +0 -0
  222. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit.egg-info/entry_points.txt +0 -0
  223. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit.egg-info/requires.txt +0 -0
  224. {testsuit-0.3.2 → testsuit-0.3.4}/src/testsuit.egg-info/top_level.txt +0 -0
  225. {testsuit-0.3.2 → testsuit-0.3.4}/tests/clickhousefilemgr_t.py +0 -0
  226. {testsuit-0.3.2 → testsuit-0.3.4}/tests/data2db_t.py +0 -0
  227. {testsuit-0.3.2 → testsuit-0.3.4}/tests/datapack_t.py +0 -0
  228. {testsuit-0.3.2 → testsuit-0.3.4}/tests/datatoolbox_t.py +0 -0
  229. {testsuit-0.3.2 → testsuit-0.3.4}/tests/editor_t.py +0 -0
  230. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/data/csv/CorridorParam.csv +0 -0
  231. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/data/csv/National_Instruments.csv +0 -0
  232. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/data/csv/channels_recording.csv +0 -0
  233. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/data/csv/clocks.csv +0 -0
  234. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/data/csv/demo_exploit.clean_01.csv +0 -0
  235. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/data/csv/demo_exploit.clean_02.csv +0 -0
  236. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/data/csv/flags.csv +0 -0
  237. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/data/csv/influxdb.csv +0 -0
  238. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/data/csv/test_date_at_the_end.csv +0 -0
  239. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/datapack/setup/globals.yml +0 -0
  240. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/datapack/setup/includes/header.txt +0 -0
  241. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/datapack/setup/utest_ref_files/conf_dir/limits.yml +0 -0
  242. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/datapack/setup/utest_ref_files/ref1.txt +0 -0
  243. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/datapack/setup/utest_ref_files/ref2.txt +0 -0
  244. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/datapack/setup/utest_setup.yml +0 -0
  245. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/datapack/testdef/datapack_utest.yml +0 -0
  246. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/datapack/testdef/local_ref_files/my_ref_file.txt +0 -0
  247. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/datapack/testdef/overrides.yml +0 -0
  248. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/datapack/testdef/values.yml +0 -0
  249. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/exploit_runner/exploit_config_NOK.yml +0 -0
  250. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/exploit_runner/exploit_config_NOK_comments.yml +0 -0
  251. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/exploit_runner/exploit_config_OK.yml +0 -0
  252. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/exploit_runner/exploit_config_OK_comments.yml +0 -0
  253. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/exploit_runner/exploit_shiftDateConst_OK.yml +0 -0
  254. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/exploit_runner/exploit_shiftDateParam_OK.yml +0 -0
  255. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/exploit_runner/scenario/compute_clock_drift/clock_drift.mexploit.yml +0 -0
  256. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/exploit_runner/scenario/session_NOK/testrun_01/testsuite01.mexploit.yaml +0 -0
  257. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/exploit_runner/scenario/session_NOK/testrun_02/testsuite_02.mexploit.yaml +0 -0
  258. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/exploit_runner/scenario/session_OK/testrun_01/testsuite01.mexploit.yml +0 -0
  259. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/exploit_runner/scenario/session_OK/testrun_01/testsuite02.mexploit.yml +0 -0
  260. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/exploit_runner/scenario/session_OK/testrun_01/testsuite03.mexploit.yaml +0 -0
  261. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/exploit_runner/scenario/session_OK/testrun_01/testsuite04.mexploit.yaml +0 -0
  262. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/exploit_runner/scenario/session_OK/testrun_02/testsuite01.mexploit.yml +0 -0
  263. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/exploit_runner/scenario/session_OK/testrun_02/testsuite02.mexploit.yml +0 -0
  264. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/exploit_runner/scenario/session_OK/testrun_02/testsuite03.mexploit.yaml +0 -0
  265. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/exploit_runner/scenario/shiftDateConst_OK/param1_partially_shifted.mexploit.yml +0 -0
  266. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/exploit_runner/scenario/shiftDateConst_OK/param2_not_shifted.mexploit.yml +0 -0
  267. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/exploit_runner/scenario/shiftDateParam_OK/param1_partially_shifted.mexploit.yml +0 -0
  268. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/exploit_runner/scenario/shiftDateParam_OK/param2_not_shifted.mexploit.yml +0 -0
  269. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/exploit_runner/values.yml +0 -0
  270. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/mexploit/custom_exploit/custom_criteria.py +0 -0
  271. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/mexploit/custom_exploit/custom_helpers.py +0 -0
  272. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/mexploit/scenarii/mxp_NOK_check_param_at_rst/1_check_param_at_rest.mexploit.yaml +0 -0
  273. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/mexploit/scenarii/mxp_NOK_corridor/0_corridor.mexploit.yaml +0 -0
  274. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/mexploit/scenarii/mxp_NOK_registered_crit/1_registered.mexploit.yaml +0 -0
  275. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/mexploit/scenarii/mxp_NOK_sequence/0_sequence.mexploit.yaml +0 -0
  276. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/mexploit/scenarii/mxp_NOK_sequence_multi/0_sequence.mexploit.yaml +0 -0
  277. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/mexploit/scenarii/mxp_OK_custom_crit/1_custom.mexploit.yaml +0 -0
  278. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/mexploit/scenarii/mxp_OK_main_functions/0_time_origin.mexploit.yml +0 -0
  279. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/mexploit/scenarii/mxp_OK_main_functions/1_computed_param.mexploit.yml +0 -0
  280. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/mexploit/scenarii/mxp_OK_main_functions/1_computed_param_multiline.mexploit.yml +0 -0
  281. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/mexploit/scenarii/mxp_OK_main_functions/1_corridor.mexploit.yaml +0 -0
  282. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/mexploit/scenarii/mxp_OK_main_functions/1_sequence.mexploit.yaml +0 -0
  283. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/mexploit/scenarii/mxp_OK_main_functions/2_plot.mexploit.yaml +0 -0
  284. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/mexploit/scenarii/mxp_OK_main_functions/3_helper_dropdups.mexploit.yml +0 -0
  285. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/mexploit/scenarii/mxp_OK_main_functions/3_helper_mask_values_on_event.mexploit.yml +0 -0
  286. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/mexploit/scenarii/mxp_OK_registered_crit/1_registered.mexploit.yaml +0 -0
  287. {testsuit-0.3.2 → testsuit-0.3.4}/tests/etc/misc/flags_desc.yml +0 -0
  288. {testsuit-0.3.2 → testsuit-0.3.4}/tests/exploit_runner_crash_t.py +0 -0
  289. {testsuit-0.3.2 → testsuit-0.3.4}/tests/exploit_runner_t.py +0 -0
  290. {testsuit-0.3.2 → testsuit-0.3.4}/tests/extensions_t.py +0 -0
  291. {testsuit-0.3.2 → testsuit-0.3.4}/tests/h5filemgr_t.py +0 -0
  292. {testsuit-0.3.2 → testsuit-0.3.4}/tests/loaddata_t.py +0 -0
  293. {testsuit-0.3.2 → testsuit-0.3.4}/tests/logbuffer_t.py +0 -0
  294. {testsuit-0.3.2 → testsuit-0.3.4}/tests/mexploit_t.py +0 -0
  295. {testsuit-0.3.2 → testsuit-0.3.4}/tests/misc_t.py +0 -0
  296. {testsuit-0.3.2 → testsuit-0.3.4}/tests/notebooks_t.py +0 -0
  297. {testsuit-0.3.2 → testsuit-0.3.4}/tests/plot_backends_t.py +0 -0
  298. {testsuit-0.3.2 → testsuit-0.3.4}/tests/ref/loaddata_test/National_Instruments.h5 +0 -0
  299. {testsuit-0.3.2 → testsuit-0.3.4}/tests/ref/loaddata_test/channels_recording.h5 +0 -0
  300. {testsuit-0.3.2 → testsuit-0.3.4}/tests/ref/loaddata_test/flags_flags.h5 +0 -0
  301. {testsuit-0.3.2 → testsuit-0.3.4}/tests/ref/loaddata_test/influxdb.h5 +0 -0
  302. {testsuit-0.3.2 → testsuit-0.3.4}/tests/ref/loaddata_test/sample_csv.h5 +0 -0
  303. {testsuit-0.3.2 → testsuit-0.3.4}/tests/ref/loaddata_test/sample_csv_date_at_the_end.h5 +0 -0
  304. {testsuit-0.3.2 → testsuit-0.3.4}/tests/report_html_t.py +0 -0
  305. {testsuit-0.3.2 → testsuit-0.3.4}/tests/tdms_t.py +0 -0
  306. {testsuit-0.3.2 → testsuit-0.3.4}/tests/templating_t.py +0 -0
  307. {testsuit-0.3.2 → testsuit-0.3.4}/ui/e2e/smoke.mjs +0 -0
  308. {testsuit-0.3.2 → testsuit-0.3.4}/ui/index.html +0 -0
  309. {testsuit-0.3.2 → testsuit-0.3.4}/ui/package-lock.json +0 -0
  310. {testsuit-0.3.2 → testsuit-0.3.4}/ui/package.json +0 -0
  311. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/editor/DictionaryDialog.tsx +0 -0
  312. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/editor/EditorHome.tsx +0 -0
  313. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/editor/Generate.tsx +0 -0
  314. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/editor/Publish.tsx +0 -0
  315. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/editor/Session.tsx +0 -0
  316. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/editor/SetupForm.tsx +0 -0
  317. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/editor/TemplateEditor.tsx +0 -0
  318. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/editor/TestdefForm.tsx +0 -0
  319. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/editor/wizards.tsx +0 -0
  320. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/fields.tsx +0 -0
  321. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/files.tsx +0 -0
  322. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/graph.tsx +0 -0
  323. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/main.tsx +0 -0
  324. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/monaco.tsx +0 -0
  325. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/pages/Config.tsx +0 -0
  326. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/pages/Datapacks.tsx +0 -0
  327. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/pages/Logs.tsx +0 -0
  328. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/pages/Queue.tsx +0 -0
  329. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/pages/Runs.tsx +0 -0
  330. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/styles.css +0 -0
  331. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/util.tsx +0 -0
  332. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/vendor.d.ts +0 -0
  333. {testsuit-0.3.2 → testsuit-0.3.4}/ui/src/yaml.worker.ts +0 -0
  334. {testsuit-0.3.2 → testsuit-0.3.4}/ui/tsconfig.json +0 -0
  335. {testsuit-0.3.2 → testsuit-0.3.4}/ui/vite.config.ts +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testsuit
3
- Version: 0.3.2
3
+ Version: 0.3.4
4
4
  Summary: This toolbox helps preparing and analysing tests data, based on Pandas mainly.
5
5
  Author: Laurent ML
6
6
  License-Expression: Apache-2.0
@@ -508,6 +508,17 @@ The lab library has two levels, each a hierarchy where one `extends` another:
508
508
  - a **lab role** is abstract: what a component is for, as the commands it offers, each with what it does. A datapack binds a logical component by role, so the commands it can use are known from the role alone, whatever the hardware;
509
509
  - a **lab component** is concrete: how a kind of component implements commands, how its state is monitored, its self-test and transport. A component lists the roles it supports, and the library checks it implements all their commands. Each inventory host is a component too: it extends a component (`tsq_extends`), has its role (or picks one of its roles with `tsq_role`) and must implement every command of that role.
510
510
 
511
+ Like classes in object-oriented programming:
512
+
513
+ | Lab | Object-oriented parallel | Example |
514
+ |---|---|---|
515
+ | lab role | abstract class (an interface): the commands offered, each with what it does, and no implementation | `pilot`: `install`, `start`, `stop`, `ready`, `version` |
516
+ | lab component | concrete class: implements the commands of the roles it supports, adds a status probe and a self-test, and inherits the rest from its parent (`extends`) | `arduino_unoq`, extending `linux_system`, supports `pilot` |
517
+ | inventory component (host) | instance of a concrete class (`tsq_extends`), with its own variables: address, remote root, label... It can still override a command (`tsq_commands`), like a per-instance method | `calc_pilot_1: {tsq_extends: arduino_unoq, ansible_host: 10.0.0.21}` |
518
+ | datapack logical component | a variable typed by the abstract class: it uses only the commands of the role | `pilot: {type: pilot_app, stage: train, role: pilot}` in the setup |
519
+
520
+ A datapack references roles only. When it is activated, the sequencer picks, for each logical component, a free inventory component of the required role (in a free stage of the required type), and runs the role's commands with that instance's implementation: the same datapack runs on any lab whose instances implement its roles, real hardware or emulation (section 6.2).
521
+
511
522
  Both are YAML, in the `tsq_library` folders of the inventory: a library file holds `roles:`, `components:` or both. Plugins can also register them in Python (`register_role`, `register_component`).
512
523
 
513
524
  ### 7.1 Lab roles
@@ -610,6 +621,8 @@ The commands of a component come from the lab only: its role lists them (with it
610
621
 
611
622
  A datapack does not redefine commands: what a test runs that the role does not offer is a `run:` step of its pipeline (the exploitation in section 8.3). A stage with a special way of deploying overrides the generic command for every datapack.
612
623
 
624
+ A `run` command can run **through another component** too, with `via` (a role of the component's stage, or another host), like a status probe (section 7.5): for a component in a sub-network behind the stage server, `start: {run: "obc-ctl --host {{ component.host }} start", detach: true, via: stage_server}`. Its processes and pid files are on that component, so `signal`, `kill`, an abort and the end of the run stop them there. The component's own host is then not needed to bind it (with an absolute `tsq_remote_root`, the default).
625
+
613
626
  The commands, status probes and self-test checks of a component can use the **other components of the lab** in their keys, with their id, host, role, label and variables (as seen in their stage):
614
627
  - `{{ stage.roles.<role>.host }}`: the component of that role in the component's stage, for a lab component that works in any stage (`{{ stage.roles.stage_server.vars.psu_address }}`);
615
628
  - `{{ stage.components.<host>.host }}`, `{{ stage.id }}`, `{{ stage.type }}`, `{{ stage.vars }}`: the stage itself and its components by inventory name;
@@ -105,6 +105,11 @@ COMMAND = h(
105
105
  "python": PYTHON,
106
106
  "detach": h("Start the command and go on without waiting for it to end (a server, a simulation). "
107
107
  "Its processes are recorded, then stopped by `signal` or `kill`.", type="boolean"),
108
+ "via": h("Run the command on another component, for a component the sequencer cannot reach itself (in a "
109
+ "sub-network behind the stage server): a role of its stage (`stage_server`), or another host. It "
110
+ "gets `{{ component.host }}` (this component) and `{{ via.host }}`; its processes are recorded "
111
+ "there, so `signal`, `kill` and the end of the run stop them. A `run` command only.",
112
+ type="string"),
108
113
  "timeout": DURATION,
109
114
  "expect": EXPECT,
110
115
  "env": h("Environment variables of the command (templates allowed).", type="object",
@@ -84,6 +84,8 @@ class BoundComponent:
84
84
  transport: Transport
85
85
  root: str = "" # remote root, '~' resolved
86
86
  work: str = "" # where input/ and output/ live; the root unless shared
87
+ vias: dict = field(default_factory=dict) # commands run through another component (a command's via):
88
+ # its id -> (Component, Transport, its remote root)
87
89
 
88
90
  @property
89
91
  def base(self) -> str:
@@ -105,6 +107,12 @@ class BoundComponent:
105
107
  """Pid files of the processes a run started (by concrete id: components may share a remote root)."""
106
108
  return f"{self.root}/.tsq/{run_id}/{self.concrete.id}"
107
109
 
110
+ def pid_places(self, run_id: str) -> list[tuple[Transport, str]]:
111
+ """Where the processes a run started for it are: on itself, and on the components its commands run
112
+ through (``via``), each a transport and the folder of their pid files there."""
113
+ return [(self.transport, self.pid_dir(run_id))] + [
114
+ (transport, f"{root}/.tsq/{run_id}/{self.concrete.id}") for _, transport, root in self.vias.values()]
115
+
108
116
  def keys(self, state: str = "unknown") -> dict:
109
117
  return {"id": self.logical.id, "name": self.logical.name or self.logical.id, "type": self.logical.type,
110
118
  "extends": self.concrete.extends, "host": self.concrete.host, "concrete": self.concrete.id,
@@ -310,10 +318,21 @@ class StepRunner:
310
318
  if "python" in spec:
311
319
  return await self.python(spec, keys, timeout)
312
320
  if "run" in spec:
321
+ on = None
322
+ if spec.get("via"): # on another component: one in a sub-network behind it
323
+ on = self.via_place(str(spec["via"]))
324
+ via = on[0]
325
+ keys = {**keys, "via": {"id": via.id, "host": via.host, "role": via.role, "label": via.label,
326
+ "vars": via.vars}}
313
327
  command = render(spec["run"], keys, self.fs.id)
314
328
  env = {**render(spec.get("env") or {}, keys, self.fs.id), **render(step.env, keys, self.fs.id)}
315
329
  detach = step.detach if step.detach is not None else bool(spec.get("detach", False))
316
330
  expect = step.expect if step.expect is not None else spec.get("expect")
331
+ if on is not None:
332
+ via, transport, root = on
333
+ pidfile = f"{root}/.tsq/{self.ctx.run_id}/{self.component.concrete.id}/{self.fs.id}.pid"
334
+ self.note(f"through {via.id} ({via.host}), for {self.component.concrete.id}")
335
+ return await self.shell(str(command), env, timeout, detach, expect, (transport, pidfile))
317
336
  return await self.shell(str(command), env, timeout, detach, expect)
318
337
  for name, value in spec.items():
319
338
  if name.lower() in registry.step_types:
@@ -359,13 +378,31 @@ class StepRunner:
359
378
  return ERROR, "python exception"
360
379
  return verdict, reason
361
380
 
381
+ def via_place(self, name: str) -> tuple:
382
+ """The component a command's via names, its transport and remote root (bound with the component)."""
383
+ comp = self.component
384
+ if comp is None:
385
+ raise SequencerError(f"step '{self.fs.id}': 'via' needs a component")
386
+ lab = self.ctx.lab
387
+ if lab is None:
388
+ raise SequencerError(f"step '{self.fs.id}': 'via' needs the lab")
389
+ via = lab.find_via(comp.concrete, comp.stage, name, f"step '{self.fs.id}': its command goes via '{name}'")
390
+ if via.id not in comp.vias:
391
+ raise SequencerError(f"step '{self.fs.id}': {via.id} is not bound for {comp.concrete.id}: 'via' is for "
392
+ "the commands of lab components")
393
+ return comp.vias[via.id]
394
+
362
395
  def transport(self) -> Transport:
363
396
  if self.component is None:
364
397
  raise SequencerError(f"step '{self.fs.id}' needs a component")
365
398
  return self.component.transport
366
399
 
367
- async def shell(self, command: str, env: dict, timeout: float | None, detach: bool, expect: dict | None):
368
- if self.component is None: # no component: on the sequencer host, in the run folder
400
+ async def shell(self, command: str, env: dict, timeout: float | None, detach: bool, expect: dict | None,
401
+ on: tuple[Transport, str] | None = None):
402
+ """on: the transport and pid file to run it with, for a command run through another component."""
403
+ if on is not None:
404
+ transport, pidfile = on
405
+ elif self.component is None: # no component: on the sequencer host, in the run folder
369
406
  from testsuit.sequencer.inventory import Component as _Component
370
407
  from testsuit.sequencer.transports.local import LocalTransport
371
408
  transport = LocalTransport(_Component("sequencer", {}), str(self.ctx.bag))
@@ -442,9 +479,16 @@ class StepRunner:
442
479
  return ERROR, f"collected outputs over storage.max_run_output ({self.ctx.max_output} bytes)"
443
480
  return SUCCEEDED, ""
444
481
  if name == "kill":
445
- self.note(f"kill every process started by run {self.ctx.run_id} on {comp.transport.host}")
482
+ self.note(f"kill every process started by run {self.ctx.run_id} on {comp.transport.host}"
483
+ + "".join(f" and {t.host}" for t, _ in comp.pid_places(self.ctx.run_id)[1:]))
446
484
  try:
447
- await comp.transport.signal_dir(comp.pid_dir(self.ctx.run_id), "KILL")
485
+ places = comp.pid_places(self.ctx.run_id)
486
+ for i, (transport, folder) in enumerate(places):
487
+ try:
488
+ await transport.signal_dir(folder, "KILL")
489
+ except Exception:
490
+ if not (i == 0 and comp.vias): # reached through another component only
491
+ raise
448
492
  except Exception as e:
449
493
  return ERROR, f"transport: {e}"
450
494
  self.ctx.expect_state(comp.concrete.id, "idle")
@@ -465,19 +509,31 @@ class StepRunner:
465
509
  comp = self.component
466
510
  if comp is None:
467
511
  raise SequencerError("'signal' needs a component")
468
- folder = comp.pid_dir(self.ctx.run_id)
512
+ places = comp.pid_places(self.ctx.run_id)
469
513
  sig = sig.upper().removeprefix("SIG")
470
- self.note(f"signal {sig} to the processes of {comp.id} on {comp.transport.host}")
514
+ self.note(f"signal {sig} to the processes of {comp.id} on " + " and ".join(t.host for t, _ in places))
515
+ if comp.vias: # reached through another component: its own host may not answer
516
+ reachable = []
517
+ for i, (transport, folder) in enumerate(places):
518
+ try:
519
+ await transport.alive_in(folder)
520
+ reachable.append((transport, folder))
521
+ except Exception:
522
+ if i:
523
+ raise
524
+ places = reachable
471
525
  try:
472
- await comp.transport.signal_dir(folder, sig)
526
+ for transport, folder in places:
527
+ await transport.signal_dir(folder, sig)
473
528
  deadline = time.monotonic() + grace
474
529
  while time.monotonic() < deadline:
475
- if not await comp.transport.alive_in(folder):
530
+ if not any([await transport.alive_in(folder) for transport, folder in places]):
476
531
  break
477
532
  await asyncio.sleep(0.2)
478
533
  else:
479
534
  self.note(f"still alive after {grace:g}s: KILL")
480
- await comp.transport.signal_dir(folder, "KILL")
535
+ for transport, folder in places:
536
+ await transport.signal_dir(folder, "KILL")
481
537
  except Exception as e:
482
538
  return ERROR, f"transport: {e}"
483
539
  self.ctx.expect_state(comp.concrete.id, "idle")
@@ -108,6 +108,10 @@ class Lab:
108
108
  if status.get("builtin") or "http" in (status.get("probe") or {}):
109
109
  raise SequencerError(f"{where}: 'via' needs a 'run' or plugin probe (on the component it goes through, "
110
110
  "'curl' does an HTTP check)")
111
+ return self.find_via(component, stage, name, where)
112
+
113
+ def find_via(self, component: Component, stage: Stage | None, name: str, where: str) -> Component:
114
+ """The component a 'via' names: the component of that role in the stage, or another host."""
111
115
  for cid in stage.components if stage else []:
112
116
  other = self.inventory.components[cid]
113
117
  if cid != component.id and other.role == name:
@@ -118,6 +122,21 @@ class Lab:
118
122
  raise SequencerError(f"{where}, which is neither the role of another component of "
119
123
  + (f"its stage '{stage.id}'" if stage else "its stage (it has none)") + " nor another host")
120
124
 
125
+ def command_vias(self, component: Component, stage: Stage | None = None,
126
+ resolved: Resolved | None = None) -> dict[str, Component]:
127
+ """The components a component's commands run through (a command's ``via``), by command name: for a
128
+ component the sequencer cannot reach itself, in a sub-network behind the stage server."""
129
+ resolved = resolved or self.resolve(component, stage)
130
+ vias = {}
131
+ for name, spec in resolved.commands.items():
132
+ if not isinstance(spec, dict) or not spec.get("via"):
133
+ continue
134
+ where = f"component '{component.id}': its command '{name}' goes via '{spec['via']}'"
135
+ if "run" not in spec:
136
+ raise SequencerError(f"{where}: 'via' needs a 'run' command")
137
+ vias[name] = self.find_via(component, stage, str(spec["via"]), where)
138
+ return vias
139
+
121
140
  def describe(self) -> dict:
122
141
  return {"folder": str(self.folder), "inventory": str(self.inventory.file), "git": self.git,
123
142
  "warnings": self.warnings, "loaded_at": self.loaded_at,
@@ -167,6 +186,7 @@ def load_lab(folder: Path, inventory_file: Path, require_tag: bool = True, stric
167
186
  lab.extra_commands[component.id] = extra
168
187
  try:
169
188
  lab.via(component, stage)
189
+ lab.command_vias(component, stage)
170
190
  except SequencerError as e:
171
191
  if strict:
172
192
  raise SequencerError(f"inventory '{inventory_file}': {e}") from e
@@ -446,7 +446,16 @@ class RunExecution:
446
446
  transport = self.seq.transport_for(concrete_id)
447
447
  bound = BoundComponent(logical=lc, concrete=concrete, stage=stage, logical_stage=stage_logical,
448
448
  resolved=resolved, transport=transport)
449
- bound.root = await transport.resolve_root()
449
+ for via in self.seq.lab.command_vias(concrete, stage, resolved).values():
450
+ if via.id not in bound.vias: # commands run through it: where their pid files go
451
+ via_transport = self.seq.transport_for(via.id)
452
+ bound.vias[via.id] = (via, via_transport, await via_transport.resolve_root())
453
+ try:
454
+ bound.root = await transport.resolve_root()
455
+ except Exception:
456
+ if not bound.vias:
457
+ raise
458
+ bound.root = str(transport._root) # reached through another component only: not needed
450
459
  if concrete.lock != "exclusive":
451
460
  # Several runs may hold it at once: each gets its own input/output folders.
452
461
  bound.work = f"{bound.root}/.tsq/{self.run_id}"
@@ -684,10 +693,15 @@ class RunExecution:
684
693
  self.seq.notify("run", {"run": self.run_id, "abort": mode})
685
694
 
686
695
  async def alive(bound: BoundComponent) -> bool:
687
- try:
688
- return bool(await bound.transport.alive_in(bound.pid_dir(self.run_id)))
689
- except Exception:
690
- return True
696
+ for transport, folder in bound.pid_places(self.run_id):
697
+ try:
698
+ if await transport.alive_in(folder):
699
+ return True
700
+ except Exception:
701
+ if transport is bound.transport and bound.vias:
702
+ continue # reached through another component only
703
+ return True
704
+ return False
691
705
  bound = list(self.ctx.bound.values())
692
706
  if mode == "cancel":
693
707
  live = [b for b, a in zip(bound, await asyncio.gather(*[alive(b) for b in bound])) if a]
@@ -732,10 +746,11 @@ class RunExecution:
732
746
  self.reason = "sequencer restarted during the run"
733
747
  await self.bind_components()
734
748
  for bound in self.ctx.bound.values():
735
- try:
736
- await bound.transport.signal_dir(bound.pid_dir(self.run_id), "KILL")
737
- except Exception:
738
- pass
749
+ for transport, folder in bound.pid_places(self.run_id):
750
+ try:
751
+ await transport.signal_dir(folder, "KILL")
752
+ except Exception:
753
+ pass
739
754
  flat = next((f for f in self.datapack.phases if f.phase.id == phase_id), None)
740
755
  if flat is not None and flat.finally_:
741
756
  runner = PhaseRunner(self.ctx, flat)
@@ -780,13 +795,14 @@ class RunExecution:
780
795
  async def clean_remote(self) -> None:
781
796
  """Kill what is left of the run's processes, and remove their pid files."""
782
797
  for bound in self.ctx.bound.values():
783
- folder = bound.pid_dir(self.run_id)
784
- try:
785
- await bound.transport.signal_dir(folder, "KILL")
786
- await bound.transport.shell(f"rm -rf {shlex.quote(folder)}; rmdir {shlex.quote(folder.rsplit('/', 1)[0])} "
787
- "2>/dev/null; true", timeout=20)
788
- except Exception as e:
789
- log.warning(f"run {self.run_id}: cleaning {bound.concrete.id}: {e}")
798
+ for transport, folder in bound.pid_places(self.run_id):
799
+ try:
800
+ await transport.signal_dir(folder, "KILL")
801
+ await transport.shell(f"rm -rf {shlex.quote(folder)}; rmdir {shlex.quote(folder.rsplit('/', 1)[0])} "
802
+ "2>/dev/null; true", timeout=20)
803
+ except Exception as e:
804
+ if not (transport is bound.transport and bound.vias):
805
+ log.warning(f"run {self.run_id}: cleaning {bound.concrete.id} on {transport.host}: {e}")
790
806
 
791
807
  def write_records(self, verdict: str, run: dict) -> None:
792
808
  bag = self.datapack.dir