testsuit 2.0.1__tar.gz → 2.0.2__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 (439) hide show
  1. {testsuit-2.0.1 → testsuit-2.0.2}/CONTRIBUTING.md +4 -0
  2. {testsuit-2.0.1 → testsuit-2.0.2}/PKG-INFO +3 -2
  3. {testsuit-2.0.1 → testsuit-2.0.2}/README.md +2 -1
  4. testsuit-2.0.2/docs/ai/testdef_prompt.txt +259 -0
  5. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/README.md +1 -1
  6. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/editor/plots.py +40 -7
  7. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/editor/service.py +9 -1
  8. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/README.md +17 -11
  9. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/SPEC.md +12 -5
  10. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/api.py +43 -8
  11. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/editor.py +44 -3
  12. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/editor_api.py +10 -3
  13. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/editor_schemas.py +4 -1
  14. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/model.py +33 -0
  15. testsuit-2.0.1/src/testsuit/sequencer/ui/assets/index-VXlk6Tpz.js → testsuit-2.0.2/src/testsuit/sequencer/ui/assets/index-CRk-UkCE.js +316 -318
  16. testsuit-2.0.2/src/testsuit/sequencer/ui/assets/index-CtluVUmc.css +1 -0
  17. testsuit-2.0.1/src/testsuit/sequencer/ui/assets/python-DfG-oD34.js → testsuit-2.0.2/src/testsuit/sequencer/ui/assets/python-CgCEf-3J.js +1 -1
  18. testsuit-2.0.1/src/testsuit/sequencer/ui/assets/yaml-QZMIPGkQ.js → testsuit-2.0.2/src/testsuit/sequencer/ui/assets/yaml-ai95dmLi.js +1 -1
  19. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/ui/index.html +2 -2
  20. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit.egg-info/PKG-INFO +3 -2
  21. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit.egg-info/SOURCES.txt +5 -4
  22. {testsuit-2.0.1 → testsuit-2.0.2}/tests/criteria_editor_t.py +23 -0
  23. {testsuit-2.0.1 → testsuit-2.0.2}/tests/editor_t.py +5 -3
  24. {testsuit-2.0.1 → testsuit-2.0.2}/tests/plot_webui_t.py +51 -0
  25. {testsuit-2.0.1 → testsuit-2.0.2}/tests/reqs_t.py +5 -0
  26. {testsuit-2.0.1 → testsuit-2.0.2}/tests/sequencer_t.py +63 -4
  27. testsuit-2.0.2/ui/src/comments.tsx +96 -0
  28. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/editor/InventoryForm.tsx +1 -1
  29. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/editor/LibraryForm.tsx +1 -1
  30. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/editor/PipelineEditor.tsx +33 -5
  31. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/editor/TestdefForm.tsx +15 -4
  32. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/fields.tsx +2 -1
  33. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/files.tsx +129 -16
  34. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/navicons.tsx +9 -3
  35. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/pages/Campaigns.tsx +2 -1
  36. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/pages/Datapacks.tsx +18 -8
  37. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/pages/Lab.tsx +2 -1
  38. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/pages/Run.tsx +74 -18
  39. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/styles.css +50 -3
  40. testsuit-2.0.1/src/testsuit/sequencer/ui/assets/index-CgQD7nw8.css +0 -1
  41. testsuit-2.0.1/ui/src/comments.tsx +0 -47
  42. {testsuit-2.0.1 → testsuit-2.0.2}/.editorconfig +0 -0
  43. {testsuit-2.0.1 → testsuit-2.0.2}/.github/workflows/conda.yml +0 -0
  44. {testsuit-2.0.1 → testsuit-2.0.2}/.github/workflows/publish.yml +0 -0
  45. {testsuit-2.0.1 → testsuit-2.0.2}/.github/workflows/tests.yml +0 -0
  46. {testsuit-2.0.1 → testsuit-2.0.2}/.gitignore +0 -0
  47. {testsuit-2.0.1 → testsuit-2.0.2}/LICENSE +0 -0
  48. {testsuit-2.0.1 → testsuit-2.0.2}/conda/icon.png +0 -0
  49. {testsuit-2.0.1 → testsuit-2.0.2}/conda/icon.svg +0 -0
  50. {testsuit-2.0.1 → testsuit-2.0.2}/conda/meta.yaml +0 -0
  51. {testsuit-2.0.1 → testsuit-2.0.2}/docs/diagrams/concepts.puml +0 -0
  52. {testsuit-2.0.1 → testsuit-2.0.2}/docs/diagrams/concepts.svg +0 -0
  53. {testsuit-2.0.1 → testsuit-2.0.2}/docs/diagrams/data_model.puml +0 -0
  54. {testsuit-2.0.1 → testsuit-2.0.2}/docs/diagrams/data_model.svg +0 -0
  55. {testsuit-2.0.1 → testsuit-2.0.2}/docs/diagrams/overview.puml +0 -0
  56. {testsuit-2.0.1 → testsuit-2.0.2}/docs/diagrams/overview.svg +0 -0
  57. {testsuit-2.0.1 → testsuit-2.0.2}/docs/diagrams/render.sh +0 -0
  58. {testsuit-2.0.1 → testsuit-2.0.2}/docs/diagrams/seq_cancel.puml +0 -0
  59. {testsuit-2.0.1 → testsuit-2.0.2}/docs/diagrams/seq_cancel.svg +0 -0
  60. {testsuit-2.0.1 → testsuit-2.0.2}/docs/diagrams/seq_editor.puml +0 -0
  61. {testsuit-2.0.1 → testsuit-2.0.2}/docs/diagrams/seq_editor.svg +0 -0
  62. {testsuit-2.0.1 → testsuit-2.0.2}/docs/diagrams/seq_run.puml +0 -0
  63. {testsuit-2.0.1 → testsuit-2.0.2}/docs/diagrams/seq_run.svg +0 -0
  64. {testsuit-2.0.1 → testsuit-2.0.2}/docs/diagrams/seq_submit.puml +0 -0
  65. {testsuit-2.0.1 → testsuit-2.0.2}/docs/diagrams/seq_submit.svg +0 -0
  66. {testsuit-2.0.1 → testsuit-2.0.2}/docs/diagrams/toytrain_lab.puml +0 -0
  67. {testsuit-2.0.1 → testsuit-2.0.2}/docs/diagrams/toytrain_lab.svg +0 -0
  68. {testsuit-2.0.1 → testsuit-2.0.2}/examples/config_extract_data_any.json +0 -0
  69. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/.dockerignore +0 -0
  70. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/.env.sample +0 -0
  71. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/.gitignore +0 -0
  72. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/Dockerfile +0 -0
  73. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/README.md +0 -0
  74. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/baseline_expected.yml +0 -0
  75. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/campaigns/toytrain_emulated.campaign.yml +0 -0
  76. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/campaigns/toytrain_regression.campaign.yml +0 -0
  77. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/release_store/README.md +0 -0
  78. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/release_store/toytrain-sim/v1.1.0/SIM.txt +0 -0
  79. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/release_store/toytrain-sim/v1.1.0/dataset.yml +0 -0
  80. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/release_store/toytrain-sw/v0.3.0/acquisition/APP.txt +0 -0
  81. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/release_store/toytrain-sw/v0.3.0/dataset.yml +0 -0
  82. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/release_store/toytrain-sw/v0.3.0/pilot/APP.txt +0 -0
  83. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/release_store/toytrain-sw/v0.3.0/pilot/FIRMWARE.txt +0 -0
  84. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/release_store/toytrain-sw/v0.3.0/telemetry/APP.txt +0 -0
  85. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/requirements.yml +0 -0
  86. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/setup/globals.yml +0 -0
  87. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/setup/platforms/emulated.yml +0 -0
  88. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/setup/platforms/sim_bench.yml +0 -0
  89. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/setup/scripts/check_data.py +0 -0
  90. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/setup/templates/acquisition.yml +0 -0
  91. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/setup/templates/piezo_sim.yml +0 -0
  92. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/setup/templates/pilot.yml +0 -0
  93. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/setup/templates/propulsion_sim.yml +0 -0
  94. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/setup/templates/telemetry.yml +0 -0
  95. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/setup/toytrain_setup.yml +0 -0
  96. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/front_contact/criteria/front_contact/front_contact.mexploit.yml +0 -0
  97. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/front_contact/scenario.yml +0 -0
  98. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/front_contact/testdef.yml +0 -0
  99. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/criteria/max_speed/max_speed.mexploit.yml +0 -0
  100. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/criteria_utests/max_speed/contact/propulsion.propj +0 -0
  101. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/criteria_utests/max_speed/contact/telemetry.csv +0 -0
  102. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/criteria_utests/max_speed/gap/propulsion.propj +0 -0
  103. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/criteria_utests/max_speed/gap/telemetry.csv +0 -0
  104. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/criteria_utests/max_speed/overspeed/propulsion.propj +0 -0
  105. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/criteria_utests/max_speed/overspeed/telemetry.csv +0 -0
  106. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/criteria_utests/max_speed/propulsion_over/propulsion.propj +0 -0
  107. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/criteria_utests/max_speed/propulsion_over/telemetry.csv +0 -0
  108. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/criteria_utests/max_speed/start_profile/propulsion.propj +0 -0
  109. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/criteria_utests/max_speed/start_profile/telemetry.csv +0 -0
  110. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/criteria_utests/max_speed/utests.yml +0 -0
  111. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/scenario.yml +0 -0
  112. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/testdef.yml +0 -0
  113. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/docker-compose.yml +0 -0
  114. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/lab/classes/toytrain.yml +0 -0
  115. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/lab/classes_emulated/toytrain.yml +0 -0
  116. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/lab/roles/toytrain.yml +0 -0
  117. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/lab/toytrain_emulated.yml +0 -0
  118. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/lab/toytrain_lab.yml +0 -0
  119. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/pyproject.toml +0 -0
  120. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/sample/data/front_contact/propulsion.propj +0 -0
  121. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/sample/data/front_contact/telemetry.csv +0 -0
  122. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/sample/data/max_speed/propulsion.propj +0 -0
  123. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/sample/data/max_speed/telemetry.csv +0 -0
  124. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/sample/exploit_front_contact.yml +0 -0
  125. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/sample/exploit_max_speed.yml +0 -0
  126. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/sample/make_runs.py +0 -0
  127. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/src/toytrain/__init__.py +0 -0
  128. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/src/toytrain/assets/toytrain_logo.svg +0 -0
  129. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/src/toytrain/checks.py +0 -0
  130. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/src/toytrain/cli.py +0 -0
  131. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/src/toytrain/criteria.py +0 -0
  132. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/src/toytrain/filemgrs.py +0 -0
  133. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/src/toytrain/importer.py +0 -0
  134. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/src/toytrain/plugin.py +0 -0
  135. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/tests/conftest.py +0 -0
  136. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/tests/etc/exploit_nok.yml +0 -0
  137. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/tests/etc/overspeed/overspeed.sim.yml +0 -0
  138. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/tests/test_cli.py +0 -0
  139. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/tests/test_criteria.py +0 -0
  140. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/tests/test_criteria_utests.py +0 -0
  141. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/tests/test_datapack.py +0 -0
  142. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/tests/test_exploit_runner.py +0 -0
  143. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/tests/test_formats.py +0 -0
  144. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/tsq.dev.yml +0 -0
  145. {testsuit-2.0.1 → testsuit-2.0.2}/examples/toytrain/tsq.yml +0 -0
  146. {testsuit-2.0.1 → testsuit-2.0.2}/pyproject.toml +0 -0
  147. {testsuit-2.0.1 → testsuit-2.0.2}/setup.cfg +0 -0
  148. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/__init__.py +0 -0
  149. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/cli/__init__.py +0 -0
  150. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/cli/apply_clock_correction.py +0 -0
  151. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/cli/data2db.py +0 -0
  152. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/cli/data2h5.py +0 -0
  153. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/cli/datapack.py +0 -0
  154. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/cli/evalfile.py +0 -0
  155. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/cli/exploit_runner.py +0 -0
  156. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/cli/extract_data_any.py +0 -0
  157. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/cli/extract_data_flags.py +0 -0
  158. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/cli/mxp.py +0 -0
  159. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/cli/mxp_tools.py +0 -0
  160. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/cli/notebooks.py +0 -0
  161. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/cli/reqs.py +0 -0
  162. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/cli/tsq.py +0 -0
  163. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/credentials.py +0 -0
  164. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/DataFileMgrs/AFileMgr.py +0 -0
  165. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/DataFileMgrs/ClickhouseFileMgr.py +0 -0
  166. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/DataFileMgrs/CsvFileMgr.py +0 -0
  167. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/DataFileMgrs/DxdFileMgr.py +0 -0
  168. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/DataFileMgrs/FolderParamMgr.py +0 -0
  169. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/DataFileMgrs/H5FileMgr.py +0 -0
  170. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/DataFileMgrs/InfluxDbFileMgr.py +0 -0
  171. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/DataFileMgrs/MdfFileMgr.py +0 -0
  172. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/DataFileMgrs/TdmsFileMgr.py +0 -0
  173. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/DataFileMgrs/UdbfFileMgr.py +0 -0
  174. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/DataFileMgrs/__init__.py +0 -0
  175. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/DataFileMgrs/formats.py +0 -0
  176. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/DataframeToHdf5.py +0 -0
  177. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/__init__.py +0 -0
  178. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/data2db.py +0 -0
  179. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/datapack/ADataImporter.py +0 -0
  180. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/datapack/GitImporter.py +0 -0
  181. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/datapack/README.md +0 -0
  182. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/datapack/__init__.py +0 -0
  183. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/datapack/baseline.py +0 -0
  184. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/datapack/campaign.py +0 -0
  185. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/datapack/datapack_tools.py +0 -0
  186. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/datapack/generators.py +0 -0
  187. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/datapack/importers.py +0 -0
  188. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/datapack/model.py +0 -0
  189. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/datapack/processors.py +0 -0
  190. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/datapack/procs.py +0 -0
  191. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/datapack/templating.py +0 -0
  192. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/datatoolbox.py +0 -0
  193. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/h5diff.py +0 -0
  194. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/plotBackends/__init__.py +0 -0
  195. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/plotBackends/common.py +0 -0
  196. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/plotBackends/matplotlibBackend.py +0 -0
  197. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/plotBackends/plotlyBackend.py +0 -0
  198. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/datatools/plotHelpers.py +0 -0
  199. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/editor/__init__.py +0 -0
  200. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/editor/routes.py +0 -0
  201. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/editor/runs.py +0 -0
  202. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/editor/standalone.py +0 -0
  203. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/__init__.py +0 -0
  204. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/conftest.py +0 -0
  205. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/conftest_scn_template.py +0 -0
  206. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/criteria.py +0 -0
  207. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/describe.py +0 -0
  208. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/helpers.py +0 -0
  209. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/includes.py +0 -0
  210. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/lint.py +0 -0
  211. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/mexploit.py +0 -0
  212. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/registry.py +0 -0
  213. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/spec.py +0 -0
  214. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/utest.py +0 -0
  215. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/utest_plugin.py +0 -0
  216. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/vscode.py +0 -0
  217. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/runner/__init__.py +0 -0
  218. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/runner/exploit_runner.py +0 -0
  219. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/runner/report.py +0 -0
  220. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/runner/report_html.py +0 -0
  221. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/runner/report_libs/README.md +0 -0
  222. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/runner/report_libs/showdown.min.js +0 -0
  223. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/runner/report_libs/toastui-editor-all.min.js +0 -0
  224. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/runner/report_libs/toastui-editor.min.css +0 -0
  225. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/runner/runProcess.py +0 -0
  226. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/exploit/runner/utils.py +0 -0
  227. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/jupytertools/FileDialog.py +0 -0
  228. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/jupytertools/JupyterGui.py +0 -0
  229. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/jupytertools/MexploitJupyterGui.py +0 -0
  230. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/jupytertools/PlotJupyterGui.py +0 -0
  231. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/jupytertools/__init__.py +0 -0
  232. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/jupytertools/h5ConvertJupyterGui.py +0 -0
  233. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/jupytertools/install.py +0 -0
  234. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/jupytertools/notebooks/__init__.py +0 -0
  235. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/jupytertools/notebooks/data_plot.ipynb +0 -0
  236. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/jupytertools/notebooks/h5_convert.ipynb +0 -0
  237. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/jupytertools/notebooks/mexploit.ipynb +0 -0
  238. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/misc/MonitorProgress.py +0 -0
  239. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/misc/__init__.py +0 -0
  240. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/misc/files.py +0 -0
  241. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/misc/logger.py +0 -0
  242. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/plugins.py +0 -0
  243. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/reqs/__init__.py +0 -0
  244. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/reqs/backend.py +0 -0
  245. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/reqs/coverage.py +0 -0
  246. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/reqs/links.py +0 -0
  247. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/reqs/model.py +0 -0
  248. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/reqs/render.py +0 -0
  249. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/reqs/reqif.py +0 -0
  250. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/reqs/rest.py +0 -0
  251. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/reqs/snapshot.py +0 -0
  252. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/reqs/sources.py +0 -0
  253. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/__init__.py +0 -0
  254. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/benchmark.md +0 -0
  255. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/campaigns.py +0 -0
  256. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/cmdparams.py +0 -0
  257. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/config.py +0 -0
  258. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/daemon.py +0 -0
  259. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/engine.py +0 -0
  260. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/exploitstep.py +0 -0
  261. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/gitlab/README.md +0 -0
  262. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/gitlab/cleanup.sh +0 -0
  263. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/gitlab/config.sh +0 -0
  264. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/gitlab/prepare.sh +0 -0
  265. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/gitlab/run.sh +0 -0
  266. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/httpcall.py +0 -0
  267. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/intake.py +0 -0
  268. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/inventory.py +0 -0
  269. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/lab.py +0 -0
  270. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/labview.py +0 -0
  271. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/library.py +0 -0
  272. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/logbuffer.py +0 -0
  273. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/manualstep.py +0 -0
  274. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/monitor.py +0 -0
  275. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/registry.py +0 -0
  276. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/results.py +0 -0
  277. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/runlog.py +0 -0
  278. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/scheduler.py +0 -0
  279. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/sequencer.py +0 -0
  280. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/store.py +0 -0
  281. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/transports/__init__.py +0 -0
  282. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/transports/local.py +0 -0
  283. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/transports/ssh.py +0 -0
  284. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/ui/assets/codicon-DCmgc-ay.ttf +0 -0
  285. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/ui/assets/editor.worker-B4pQIWZD.js +0 -0
  286. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/ui/assets/ini-BvajGCUy.js +0 -0
  287. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/ui/assets/markdown-B811l8j2.js +0 -0
  288. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/ui/assets/shell-CsDZo4DB.js +0 -0
  289. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/ui/assets/yaml.worker-0FgWxutO.js +0 -0
  290. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/util.py +0 -0
  291. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit/sequencer/yamledit.py +0 -0
  292. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit.egg-info/dependency_links.txt +0 -0
  293. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit.egg-info/entry_points.txt +0 -0
  294. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit.egg-info/requires.txt +0 -0
  295. {testsuit-2.0.1 → testsuit-2.0.2}/src/testsuit.egg-info/top_level.txt +0 -0
  296. {testsuit-2.0.1 → testsuit-2.0.2}/tests/campaign_t.py +0 -0
  297. {testsuit-2.0.1 → testsuit-2.0.2}/tests/clickhousefilemgr_t.py +0 -0
  298. {testsuit-2.0.1 → testsuit-2.0.2}/tests/cmdparams_t.py +0 -0
  299. {testsuit-2.0.1 → testsuit-2.0.2}/tests/credentials_t.py +0 -0
  300. {testsuit-2.0.1 → testsuit-2.0.2}/tests/data2db_t.py +0 -0
  301. {testsuit-2.0.1 → testsuit-2.0.2}/tests/datapack_t.py +0 -0
  302. {testsuit-2.0.1 → testsuit-2.0.2}/tests/datatoolbox_t.py +0 -0
  303. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/data/csv/CorridorParam.csv +0 -0
  304. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/data/csv/National_Instruments.csv +0 -0
  305. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/data/csv/channels_recording.csv +0 -0
  306. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/data/csv/clocks.csv +0 -0
  307. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/data/csv/demo_exploit.clean_01.csv +0 -0
  308. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/data/csv/demo_exploit.clean_02.csv +0 -0
  309. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/data/csv/flags.csv +0 -0
  310. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/data/csv/influxdb.csv +0 -0
  311. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/data/csv/test_date_at_the_end.csv +0 -0
  312. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/datapack/setup/globals.yml +0 -0
  313. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/datapack/setup/includes/header.txt +0 -0
  314. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/datapack/setup/utest_ref_files/conf_dir/limits.yml +0 -0
  315. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/datapack/setup/utest_ref_files/ref1.txt +0 -0
  316. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/datapack/setup/utest_ref_files/ref2.txt +0 -0
  317. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/datapack/setup/utest_setup.yml +0 -0
  318. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/datapack/testdef/datapack_utest.yml +0 -0
  319. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/datapack/testdef/local_ref_files/my_ref_file.txt +0 -0
  320. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/datapack/testdef/overrides.yml +0 -0
  321. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/datapack/testdef/values.yml +0 -0
  322. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/exploit_runner/exploit_config_NOK.yml +0 -0
  323. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/exploit_runner/exploit_config_NOK_comments.yml +0 -0
  324. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/exploit_runner/exploit_config_OK.yml +0 -0
  325. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/exploit_runner/exploit_config_OK_comments.yml +0 -0
  326. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/exploit_runner/exploit_shiftDateConst_OK.yml +0 -0
  327. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/exploit_runner/exploit_shiftDateParam_OK.yml +0 -0
  328. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/compute_clock_drift/clock_drift.mexploit.yml +0 -0
  329. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/session_NOK/testrun_01/testsuite01.mexploit.yaml +0 -0
  330. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/session_NOK/testrun_02/testsuite_02.mexploit.yaml +0 -0
  331. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/session_OK/testrun_01/testsuite01.mexploit.yml +0 -0
  332. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/session_OK/testrun_01/testsuite02.mexploit.yml +0 -0
  333. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/session_OK/testrun_01/testsuite03.mexploit.yaml +0 -0
  334. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/session_OK/testrun_01/testsuite04.mexploit.yaml +0 -0
  335. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/session_OK/testrun_02/testsuite01.mexploit.yml +0 -0
  336. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/session_OK/testrun_02/testsuite02.mexploit.yml +0 -0
  337. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/session_OK/testrun_02/testsuite03.mexploit.yaml +0 -0
  338. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/shiftDateConst_OK/param1_partially_shifted.mexploit.yml +0 -0
  339. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/shiftDateConst_OK/param2_not_shifted.mexploit.yml +0 -0
  340. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/shiftDateParam_OK/param1_partially_shifted.mexploit.yml +0 -0
  341. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/shiftDateParam_OK/param2_not_shifted.mexploit.yml +0 -0
  342. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/exploit_runner/values.yml +0 -0
  343. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/mexploit/custom_exploit/custom_criteria.py +0 -0
  344. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/mexploit/custom_exploit/custom_helpers.py +0 -0
  345. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_NOK_check_param_at_rst/1_check_param_at_rest.mexploit.yaml +0 -0
  346. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_NOK_corridor/0_corridor.mexploit.yaml +0 -0
  347. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_NOK_registered_crit/1_registered.mexploit.yaml +0 -0
  348. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_NOK_sequence/0_sequence.mexploit.yaml +0 -0
  349. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_NOK_sequence_multi/0_sequence.mexploit.yaml +0 -0
  350. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_OK_custom_crit/1_custom.mexploit.yaml +0 -0
  351. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_OK_main_functions/0_time_origin.mexploit.yml +0 -0
  352. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_OK_main_functions/1_computed_param.mexploit.yml +0 -0
  353. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_OK_main_functions/1_computed_param_multiline.mexploit.yml +0 -0
  354. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_OK_main_functions/1_corridor.mexploit.yaml +0 -0
  355. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_OK_main_functions/1_sequence.mexploit.yaml +0 -0
  356. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_OK_main_functions/2_plot.mexploit.yaml +0 -0
  357. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_OK_main_functions/3_helper_dropdups.mexploit.yml +0 -0
  358. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_OK_main_functions/3_helper_mask_values_on_event.mexploit.yml +0 -0
  359. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_OK_registered_crit/1_registered.mexploit.yaml +0 -0
  360. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/mexploit/utests/limits/high/values.csv +0 -0
  361. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/mexploit/utests/limits/limits.yml +0 -0
  362. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/mexploit/utests/limits/low/values.csv +0 -0
  363. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/mexploit/utests/limits/scenario/1_limits.mexploit.yml +0 -0
  364. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/mexploit/utests/limits/utests.yml +0 -0
  365. {testsuit-2.0.1 → testsuit-2.0.2}/tests/etc/misc/flags_desc.yml +0 -0
  366. {testsuit-2.0.1 → testsuit-2.0.2}/tests/exploit_runner_crash_t.py +0 -0
  367. {testsuit-2.0.1 → testsuit-2.0.2}/tests/exploit_runner_t.py +0 -0
  368. {testsuit-2.0.1 → testsuit-2.0.2}/tests/exploit_webui_t.py +0 -0
  369. {testsuit-2.0.1 → testsuit-2.0.2}/tests/extensions_t.py +0 -0
  370. {testsuit-2.0.1 → testsuit-2.0.2}/tests/h5filemgr_t.py +0 -0
  371. {testsuit-2.0.1 → testsuit-2.0.2}/tests/license_t.py +0 -0
  372. {testsuit-2.0.1 → testsuit-2.0.2}/tests/loaddata_t.py +0 -0
  373. {testsuit-2.0.1 → testsuit-2.0.2}/tests/logbuffer_t.py +0 -0
  374. {testsuit-2.0.1 → testsuit-2.0.2}/tests/manualstep_t.py +0 -0
  375. {testsuit-2.0.1 → testsuit-2.0.2}/tests/mexploit_t.py +0 -0
  376. {testsuit-2.0.1 → testsuit-2.0.2}/tests/mexploit_tools_t.py +0 -0
  377. {testsuit-2.0.1 → testsuit-2.0.2}/tests/misc_t.py +0 -0
  378. {testsuit-2.0.1 → testsuit-2.0.2}/tests/notebooks_t.py +0 -0
  379. {testsuit-2.0.1 → testsuit-2.0.2}/tests/plot_backends_t.py +0 -0
  380. {testsuit-2.0.1 → testsuit-2.0.2}/tests/ref/loaddata_test/National_Instruments.h5 +0 -0
  381. {testsuit-2.0.1 → testsuit-2.0.2}/tests/ref/loaddata_test/channels_recording.h5 +0 -0
  382. {testsuit-2.0.1 → testsuit-2.0.2}/tests/ref/loaddata_test/flags_flags.h5 +0 -0
  383. {testsuit-2.0.1 → testsuit-2.0.2}/tests/ref/loaddata_test/influxdb.h5 +0 -0
  384. {testsuit-2.0.1 → testsuit-2.0.2}/tests/ref/loaddata_test/sample_csv.h5 +0 -0
  385. {testsuit-2.0.1 → testsuit-2.0.2}/tests/ref/loaddata_test/sample_csv_date_at_the_end.h5 +0 -0
  386. {testsuit-2.0.1 → testsuit-2.0.2}/tests/report_html_t.py +0 -0
  387. {testsuit-2.0.1 → testsuit-2.0.2}/tests/tdms_t.py +0 -0
  388. {testsuit-2.0.1 → testsuit-2.0.2}/tests/templating_t.py +0 -0
  389. {testsuit-2.0.1 → testsuit-2.0.2}/ui/e2e/smoke.mjs +0 -0
  390. {testsuit-2.0.1 → testsuit-2.0.2}/ui/index.html +0 -0
  391. {testsuit-2.0.1 → testsuit-2.0.2}/ui/package-lock.json +0 -0
  392. {testsuit-2.0.1 → testsuit-2.0.2}/ui/package.json +0 -0
  393. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/api.ts +0 -0
  394. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/criteria/CriteriaEditor.tsx +0 -0
  395. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/criteria/CriteriaPage.tsx +0 -0
  396. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/criteria/DataView.tsx +0 -0
  397. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/criteria/FolderPicker.tsx +0 -0
  398. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/criteria/UnitTests.tsx +0 -0
  399. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/criteria/adapter.ts +0 -0
  400. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/criteria/expressions.ts +0 -0
  401. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/criteria/scenario.ts +0 -0
  402. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/criteria/utestsSchema.ts +0 -0
  403. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/editor/DictionaryDialog.tsx +0 -0
  404. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/editor/EditorHome.tsx +0 -0
  405. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/editor/Generate.tsx +0 -0
  406. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/editor/KeysExplorer.tsx +0 -0
  407. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/editor/LabPicture.tsx +0 -0
  408. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/editor/Publish.tsx +0 -0
  409. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/editor/RequirementsForm.tsx +0 -0
  410. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/editor/Session.tsx +0 -0
  411. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/editor/SetupForm.tsx +0 -0
  412. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/editor/TemplateEditor.tsx +0 -0
  413. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/editor/commands.tsx +0 -0
  414. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/editor/links.tsx +0 -0
  415. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/editor/state.tsx +0 -0
  416. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/editor/wizards.tsx +0 -0
  417. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/editor/workspace.tsx +0 -0
  418. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/exploit/ExploitPage.tsx +0 -0
  419. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/graph.tsx +0 -0
  420. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/keysbyhand.tsx +0 -0
  421. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/kinds.tsx +0 -0
  422. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/labicons.tsx +0 -0
  423. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/main.tsx +0 -0
  424. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/monaco.tsx +0 -0
  425. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/pages/Config.tsx +0 -0
  426. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/pages/LabGraph.tsx +0 -0
  427. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/pages/Logs.tsx +0 -0
  428. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/pages/Manual.tsx +0 -0
  429. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/pages/Operator.tsx +0 -0
  430. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/pages/Queue.tsx +0 -0
  431. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/pages/Requirements.tsx +0 -0
  432. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/pages/Runs.tsx +0 -0
  433. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/plot/PlotPage.tsx +0 -0
  434. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/title.ts +0 -0
  435. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/util.tsx +0 -0
  436. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/vendor.d.ts +0 -0
  437. {testsuit-2.0.1 → testsuit-2.0.2}/ui/src/yaml.worker.ts +0 -0
  438. {testsuit-2.0.1 → testsuit-2.0.2}/ui/tsconfig.json +0 -0
  439. {testsuit-2.0.1 → testsuit-2.0.2}/ui/vite.config.ts +0 -0
@@ -19,6 +19,10 @@ Both commands must pass before a pull request is merged; CI runs them on Python
19
19
  - New runtime dependencies go in `[project].dependencies` of `pyproject.toml`; dependencies only needed by one feature go in an extra under `[project.optional-dependencies]`.
20
20
  - Versions come from git tags (setuptools-scm): tag a release as `vX.Y.Z` on `main`.
21
21
 
22
+ ## Keeping the documents in sync
23
+
24
+ A change of behaviour or of a file format updates, in the same pull request, the README concerned, the condensed specification [src/testsuit/sequencer/SPEC.md](src/testsuit/sequencer/SPEC.md), and, when it touches test definitions, setups, pipelines, template keys or mexploit scenarios, the AI prompt [docs/ai/testdef_prompt.txt](docs/ai/testdef_prompt.txt). The prompt is read by an AI, not a person: keep it terse and exact, and check it still works by having an AI write a test definition with it, then running `tsq validate` and `mxp lint` on the result.
25
+
22
26
  ## License notice
23
27
 
24
28
  testsuit is licensed under the GNU AGPL, version 3 or later (see [LICENSE](LICENSE)). Every source file (`.py`, `.sh`, `.ts`, `.tsx`, `.js`, `.mjs`, `.css`, `.html`), new ones included, starts with this notice, in the file's comment syntax and after a `#!` or `<!doctype>` line if there is one:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testsuit
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: This toolbox helps preparing and analysing tests data, based on Pandas mainly.
5
5
  Author: Laurent ML
6
6
  License-Expression: AGPL-3.0-or-later
@@ -205,7 +205,7 @@ setup_config: sim_bench
205
205
  dictionaries: [scenario.yml]
206
206
  ```
207
207
 
208
- Input files are Jinja2 templates (`{{ train.speed_limit_mps }}`, `{% include "x" %}`, loops, filters) rendered with keys from YAML dictionaries: setup dictionaries first, then imported datasets, then test definition dictionaries, each overriding the previous ones. A key can reference other keys (`output_dir: "{{ testdef.path }}/../datapacks"`), and an undefined key is an error. The zip follows the BagIt layout: `data/<slot>/input/` holds the generated files, `datapack.yml` records what they were built from and which keys each file used, and `context.yml` holds every resolved key, so a datapack can be used without its dictionaries. `datapack --setup-config <name>` uses another configuration of the setup than the test definition's, for example to build the same test for another platform. `datapack --verify <zip>` checks its checksums. A **campaign** file (`<name>.campaign.yml`) lists test definitions to generate with the same version of every dataset and to run together: `datapack <name>.campaign.yml` builds all their datapacks, and the sequencer runs them as one campaign run with a synthetic report. Test definitions and checks can list the **requirements** they verify (`reqs`), from a YAML file of the tests repository or any requirements tool through a plugin: `reqs matrix` builds the coverage matrices of tests, results and campaigns, and `reqs uncovered` lists what no test covers ([sequencer README, section 10.3](src/testsuit/sequencer/README.md#103-requirements-coverage)). `examples/toytrain/datapack` is a complete example. The [datapack README](src/testsuit/datatools/datapack/README.md) gives the usage, the file formats and the architecture.
208
+ Input files are Jinja2 templates (`{{ train.speed_limit_mps }}`, `{% include "x" %}`, loops, filters) rendered with keys from YAML dictionaries: setup dictionaries first, then imported datasets, then test definition dictionaries, each overriding the previous ones. A key can reference other keys (`output_dir: "{{ testdef.path }}/../datapacks"`), and an undefined key is an error. The zip follows the BagIt layout: `data/<slot>/input/` holds the generated files, `datapack.yml` records what they were built from and which keys each file used, and `context.yml` holds every resolved key, so a datapack can be used without its dictionaries. `datapack --setup-config <name>` uses another configuration of the setup than the test definition's, for example to build the same test for another platform. `datapack --verify <zip>` checks its checksums. A **campaign** file (`<name>.campaign.yml`) lists test definitions to generate with the same version of every dataset and to run together: `datapack <name>.campaign.yml` builds all their datapacks, and the sequencer runs them as one campaign run with a synthetic report. Test definitions and checks can list the **requirements** they verify (`reqs`), from a YAML file of the tests repository or any requirements tool through a plugin: `reqs matrix` builds the coverage matrices of tests, results and campaigns, and `reqs uncovered` lists what no test covers ([sequencer README, section 10.3](src/testsuit/sequencer/README.md#103-requirements-coverage)). `examples/toytrain/datapack` is a complete example. To have an AI write a test definition from a test specification, give it [docs/ai/testdef_prompt.txt](docs/ai/testdef_prompt.txt) followed by the specification, the lab roles and, when there is one, the setup to reuse (the prompt lists its inputs). The [datapack README](src/testsuit/datatools/datapack/README.md) gives the usage, the file formats and the architecture.
209
209
 
210
210
  ## Repository layout
211
211
 
@@ -224,6 +224,7 @@ src/testsuit/ the installable package
224
224
  misc/ logging, progress reporting, file helpers
225
225
  cli/ command-line tools (see below)
226
226
  docs/diagrams/ PlantUML figures of the READMEs (sources and rendered SVG)
227
+ docs/ai/ prompts for AI tools: testdef_prompt.txt writes a test definition from a specification
227
228
  examples/toytrain/ the example project: a toy train's test environment (library extending testsuit, sequencer configuration)
228
229
  tests/ pytest suite (*_t.py)
229
230
  etc/ input data, scenarios and configs used by the tests
@@ -138,7 +138,7 @@ setup_config: sim_bench
138
138
  dictionaries: [scenario.yml]
139
139
  ```
140
140
 
141
- Input files are Jinja2 templates (`{{ train.speed_limit_mps }}`, `{% include "x" %}`, loops, filters) rendered with keys from YAML dictionaries: setup dictionaries first, then imported datasets, then test definition dictionaries, each overriding the previous ones. A key can reference other keys (`output_dir: "{{ testdef.path }}/../datapacks"`), and an undefined key is an error. The zip follows the BagIt layout: `data/<slot>/input/` holds the generated files, `datapack.yml` records what they were built from and which keys each file used, and `context.yml` holds every resolved key, so a datapack can be used without its dictionaries. `datapack --setup-config <name>` uses another configuration of the setup than the test definition's, for example to build the same test for another platform. `datapack --verify <zip>` checks its checksums. A **campaign** file (`<name>.campaign.yml`) lists test definitions to generate with the same version of every dataset and to run together: `datapack <name>.campaign.yml` builds all their datapacks, and the sequencer runs them as one campaign run with a synthetic report. Test definitions and checks can list the **requirements** they verify (`reqs`), from a YAML file of the tests repository or any requirements tool through a plugin: `reqs matrix` builds the coverage matrices of tests, results and campaigns, and `reqs uncovered` lists what no test covers ([sequencer README, section 10.3](src/testsuit/sequencer/README.md#103-requirements-coverage)). `examples/toytrain/datapack` is a complete example. The [datapack README](src/testsuit/datatools/datapack/README.md) gives the usage, the file formats and the architecture.
141
+ Input files are Jinja2 templates (`{{ train.speed_limit_mps }}`, `{% include "x" %}`, loops, filters) rendered with keys from YAML dictionaries: setup dictionaries first, then imported datasets, then test definition dictionaries, each overriding the previous ones. A key can reference other keys (`output_dir: "{{ testdef.path }}/../datapacks"`), and an undefined key is an error. The zip follows the BagIt layout: `data/<slot>/input/` holds the generated files, `datapack.yml` records what they were built from and which keys each file used, and `context.yml` holds every resolved key, so a datapack can be used without its dictionaries. `datapack --setup-config <name>` uses another configuration of the setup than the test definition's, for example to build the same test for another platform. `datapack --verify <zip>` checks its checksums. A **campaign** file (`<name>.campaign.yml`) lists test definitions to generate with the same version of every dataset and to run together: `datapack <name>.campaign.yml` builds all their datapacks, and the sequencer runs them as one campaign run with a synthetic report. Test definitions and checks can list the **requirements** they verify (`reqs`), from a YAML file of the tests repository or any requirements tool through a plugin: `reqs matrix` builds the coverage matrices of tests, results and campaigns, and `reqs uncovered` lists what no test covers ([sequencer README, section 10.3](src/testsuit/sequencer/README.md#103-requirements-coverage)). `examples/toytrain/datapack` is a complete example. To have an AI write a test definition from a test specification, give it [docs/ai/testdef_prompt.txt](docs/ai/testdef_prompt.txt) followed by the specification, the lab roles and, when there is one, the setup to reuse (the prompt lists its inputs). The [datapack README](src/testsuit/datatools/datapack/README.md) gives the usage, the file formats and the architecture.
142
142
 
143
143
  ## Repository layout
144
144
 
@@ -157,6 +157,7 @@ src/testsuit/ the installable package
157
157
  misc/ logging, progress reporting, file helpers
158
158
  cli/ command-line tools (see below)
159
159
  docs/diagrams/ PlantUML figures of the READMEs (sources and rendered SVG)
160
+ docs/ai/ prompts for AI tools: testdef_prompt.txt writes a test definition from a specification
160
161
  examples/toytrain/ the example project: a toy train's test environment (library extending testsuit, sequencer configuration)
161
162
  tests/ pytest suite (*_t.py)
162
163
  etc/ input data, scenarios and configs used by the tests
@@ -0,0 +1,259 @@
1
+ TESTSUIT TESTDEF GENERATOR. System prompt for an AI. Terse by design.
2
+ Maintained with the product: keep in sync with src/testsuit/sequencer/SPEC.md (sections 5 to 7), datatools/datapack/model.py,
3
+ sequencer/model.py, sequencer/editor_schemas.py, exploit/README.md. Where they differ, the code wins.
4
+
5
+ == TASK
6
+ From SPEC (below), emit the files of ONE complete testsuit test definition (testdef): testdef.yml, its dictionaries,
7
+ its criteria scenarios, and a setup file only when none is given. YAML only. No prose outside files.
8
+
9
+ == INPUT (blocks appended after this prompt; only SPEC and ROLES are mandatory)
10
+ SPEC: the test to write, natural language.
11
+ ROLES: lab role library YAML, `roles: {<role>: {extends, description, commands, inputs, outputs}}`.
12
+ commands: {<cmd>: <description> | {description, params: {<param>: <description>}}}.
13
+ inputs/outputs: [{name: <path>[/], type: file|folder, optional: bool, description}]: what the role expects in its input
14
+ folder / leaves in its output folder.
15
+ Built-in roles, always present: component (no command); linux_system extends component: deploy, collect, kill.
16
+ Commands of a role = its own + those of every ancestor (extends chain).
17
+ STAGE_TYPES (optional): stage type names, and the roles each stage type holds. Needed only for stage slots.
18
+ SETUP (optional): an existing setup file (path relative to the testdef folder + content), with its dictionaries and
19
+ input templates. Given: reuse it as is, do not emit a setup, use its configuration, slot ids, roles, slot classes.
20
+ Every key its templates read that its own dictionaries do not define must be defined by the testdef's dictionaries
21
+ (same structure and types as the templates use).
22
+ DICTIONARIES (optional): existing key files to reuse.
23
+ CRITERIA (optional): `mxp describe` JSON (criterion types with fields), else built-in types only (see CRITERIA).
24
+ REQS (optional): requirement ids the test verifies.
25
+ DATA (optional): parameter names in the output files to check (columns of CSV, channels...).
26
+
27
+ Never invent a role, command, command parameter, stage type, criterion type or field absent from the input or this
28
+ prompt. Information missing from SPEC: pick a sensible value and write `# ASSUMPTION: <what>` beside it.
29
+
30
+ == OUTPUT
31
+ One fenced ```yaml block per file, first line `# file: <path relative to the testdef folder>`. Layout:
32
+ testdef.yml
33
+ <name>.yml dictionaries (e.g. scenario.yml)
34
+ criteria/<scenario>/<n>_<topic>.mexploit.yml criteria (one folder = one scenario; files run in name order)
35
+ ../setup/<setup>.yml, ../setup/templates/* only without SETUP
36
+ Then a final block `# file: NOTES.txt`: assumptions, and what the lab must provide (roles, stage types, params).
37
+
38
+ == LAB ABSTRACTION
39
+ The testdef names only roles (through the setup's slots), commands of those roles and their declared params, stage types
40
+ (through stage slots). Never: hosts, addresses, inventory variables, component ids, lab tags.
41
+ Forbidden keys in templates: component.*, stage.*, lab.*, via.*, stage_slots.<id>.stage (they are lab-side).
42
+ Prefer `do: <command>` over inline `run`/`http`/`wait_for {tcp,file,log,cmd}` on a slot, which assume the component's
43
+ implementation. Use inline actions only when no role command fits, and say so in NOTES.
44
+
45
+ == TESTDEF: testdef.yml (unknown key = error)
46
+ id: <str> REQUIRED. [a-z0-9_]. Part of the datapack name.
47
+ name: <str> REQUIRED.
48
+ description: <str>
49
+ setup_file: <path> REQUIRED. Relative to testdef.yml.
50
+ setup_config: <name> REQUIRED. A key of the setup's `configurations`.
51
+ dictionaries: [<path>...] Relative to testdef.yml.
52
+ user_keys: {<dotted.key>: {description: <str>, choices: [<v>...]}} given by the user at each generation
53
+ (`datapack --set k=v`); no choices = free text. Must NOT be defined in any dictionary.
54
+ reqs: ["[<source>:]<id>[@<version>]"...] requirements verified by the verdict (prefer `reqs` on the checks).
55
+ pipeline: {...} see PIPELINE.
56
+ All fields except `pipeline` are Jinja-rendered at generation with the dictionary keys. `pipeline` is kept as written and
57
+ rendered at run time.
58
+
59
+ == DICTIONARIES
60
+ YAML mappings, nested. Keys read as `{{ a.b.c }}`. Values may be templates of other keys (`"{{ scenario.v * 2 }}"`,
61
+ quoted). Precedence, later wins: setup dictionaries < datasets < testdef dictionaries. Undefined key = error
62
+ (StrictUndefined). Put every test parameter (durations, limits, thresholds, profiles) in a dictionary, under one
63
+ top-level namespace (e.g. `scenario:`), and reference it from pipeline and criteria: no magic numbers there.
64
+ Reserved top-level names, never define: testdef setup datapack slot slots campaign params run phase component stage lab
65
+ remote_root via verdict.
66
+
67
+ == SETUP (only without SETUP input; unknown key = error)
68
+ id: <str> REQUIRED
69
+ name: <str>
70
+ dictionaries: [<path>...] relative to the setup file; may be templates ("platforms/{{ testdef.setup_config }}.yml")
71
+ datarepositories: [...] datasets to import; omit unless SPEC names versioned data
72
+ slot_classes:
73
+ <class>:
74
+ role: <role> the role whose `inputs` this class provides
75
+ description: <str>
76
+ configurations:
77
+ <cfg>: e.g. standard
78
+ inputs:
79
+ - {source: <path|glob>, target: <path>[/], method: template|copy|generate, optional: bool,
80
+ generator: <name>, options: {...}, postprocess: [...]}
81
+ # source: relative to the testdef folder, then the setup folder; templates allowed.
82
+ # method template (default): rendered with dictionary keys at generation (run-time keys forbidden).
83
+ # target ending with / = folder. generate needs generator.
84
+ configurations:
85
+ <setup_config>:
86
+ stage_slots: {<id>: {type: <stage type>}} slots bound together in one lab stage of that type
87
+ slots:
88
+ <slot id>: {name: <str>, slot_class: <class>, configuration: <cfg>, role: <role>, stage_slot: <id>, needs: [<slot>]}
89
+ # REQUIRED: slot_class, configuration, role. stage_slot absent = ad hoc slot. No `commands`, no `tags`.
90
+ # needs: slots generated first; then readable via read_input('<slot>/<file>'), slots.<id>.input_dir.
91
+ Every input a role declares non-optional must be provided by the class. Templates of inputs: the generation keys only.
92
+ Forbidden former names: component_types slot_types components stages realms stage realm type(on a slot).
93
+
94
+ == PIPELINE (unknown key = error)
95
+ pipeline:
96
+ timeout: <duration> whole run. Durations: 30s, 2m, 1h, 250ms, or a number of seconds.
97
+ reserve: phase | all default phase
98
+ include: [<file>...] shared sub-pipeline files ({subpipelines: {...}}); testdef's own win on name clash
99
+ subpipelines: {<name>: {params: {<p>: <default>}, steps: [<step>...], comments: [...]}}
100
+ phases:
101
+ - id: <id> unique
102
+ needs: [<phase>...] phases run in needs order; acyclic
103
+ stage_slots: [<stage slot>...] locked for the phase, with all their slots
104
+ slots: [<ad hoc slot>...] locked for the phase. A slot of a stage slot: list its stage slot instead.
105
+ inputs: [{from: "<phase>:<slot|*>/output/<path>", to: "<slot>/input/<path>"}] copied in the run folder
106
+ before the phase; then `do: deploy` that slot to put them on its component.
107
+ steps: [<step>...]
108
+ finally: [<step>...] always run after steps, even on failure/cancel/kill. Without needs: in written order.
109
+ timeout: <duration>
110
+ comments: [<markdown> | {text, step, color}] notes, never run. color: yellow|orange|red|pink|purple|blue|green|grey|#rrggbb
111
+
112
+ STEP:
113
+ - id: <id> unique in its phase (steps+finally together) or sub-pipeline; no . [ /
114
+ # target, at most one:
115
+ slot: <slot> a slot held by the phase
116
+ for_each: [<slot>...] | slots | <role> | "{{ params.x }}" parallel fan-out; slots = all slots of the phase;
117
+ <role> = slots of the phase whose role is exactly it
118
+ # action, exactly one:
119
+ do: <command> command of the target slot's role (ancestors included). Needs slot/for_each.
120
+ run: <shell script> on the target component, or in the run folder on the sequencer host without target.
121
+ One shell, set -e; multi-line `|` allowed.
122
+ python: {script: <path> | code: <inline, not templated>, args: [...], interpreter: <path>}
123
+ keys available as `keys` dict / $TSQ_KEYS JSON. Exception = error.
124
+ http: <url> | {url, method, headers, params, json|body|body_file, extract, expect: {status, regex, json}, save,
125
+ timeout, verify} default expects status < 400
126
+ exploit: {criteria: [<folder>...], data: ["[<phase>:]<slot|*>/<path|glob>"...], name, description} see EXPLOIT
127
+ manual: {title, text: <markdown>, checks: [<str>...], redo_from: [<step id>...]} see MANUAL
128
+ push: {from: <path in run folder>, to: <path on component>} needs slot
129
+ pull: {from: <path on component>, to: <path in run folder>} needs slot
130
+ delay: <duration> e.g. "{{ scenario.duration_s }}s"
131
+ wait_for: {<kind>: <value>, slot: <slot>, timeout: <duration>(default 60s), interval: <duration>}
132
+ kind: state (running|idle|configured|broken|offline|unknown or list), tcp, http,
133
+ file, log {file, regex}, cmd. Prefer state. Timeout = error.
134
+ uses: <sub-pipeline> expands; ids become <uses id>.<step id>; no target
135
+ # options:
136
+ needs: [<step id>...] same phase part (steps or finally), acyclic. Needing a uses step waits for all
137
+ its steps. Inside a sub-pipeline: only ids of that sub-pipeline.
138
+ if: <jinja expr> succeeded('<id>') failed() errored() skipped() verdict, keys. False = skipped.
139
+ expect: {exit: [<int>...] | any, stdout: <regex>, stderr: <regex>} default exit [0]
140
+ timeout: <duration>
141
+ retries: <int>
142
+ detach: <bool>
143
+ continue_on_error: <bool> true: dependants run, step excluded from verdict
144
+ env: {<VAR>: <template>}
145
+ with: {<name>: <template>} ONLY on do (params the role declares for that command, plain identifiers),
146
+ uses (params of the sub-pipeline), exploit (criteria keys). Refused elsewhere.
147
+
148
+ Command params: give in `with` every param ROLES declares for the command (lab defaults are unknown to you). In the
149
+ lab command they are read as params.<name>. Never give an undeclared one.
150
+
151
+ Results: step succeeded | failed | error | skipped. Verdict over steps without continue_on_error: error > failed >
152
+ succeeded. Use `if: "not succeeded('<id>')"` for cleanup only when needed.
153
+
154
+ == RUN-TIME KEYS (pipeline templates)
155
+ dictionary keys; testdef.{id,name,file,path,setup_file,setup_config}; setup.{id,name,file,path,configuration};
156
+ datapack.*; <dataset>.{path,version};
157
+ slot.{id,name,slot_class,role,stage_slot,input_dir,output_dir,remote_root} (target slot);
158
+ slots.<id>.{id,name,slot_class,role,stage_slot,input_dir,output_dir,remote_root}; run.{id,dir,priority}; phase.id;
159
+ params.<name> (in a sub-pipeline: its params; in criteria: exploit with); if-functions in `if`.
160
+ Generation keys (setup input templates): dictionary keys, testdef.*, setup.*, datapack.*, <dataset>.*,
161
+ slot.{id,name,slot_class,configuration,input_dir}, slots.<needed>.{id,input_dir}, read_input().
162
+
163
+ == DATA FLOW (canonical)
164
+ phase "test" (locks what runs the test):
165
+ steps: deploy (for_each: slots, do: deploy) -> start/configure in dependency order (do: <cmd>, needs) ->
166
+ wait ready (do: ready, or wait_for state running) -> stimulus/duration (do, delay, manual) -> stop (do: stop)
167
+ finally: kill leftovers (do: kill, if: "not succeeded('<stop id>')") -> collect (for_each: slots, do: collect)
168
+ phase "exploit" (needs test): exploit step(s) on "test:<slot>/output/<file>" (role outputs). Needs no slot.
169
+ Outputs exist in the run folder only after `do: collect` on that slot succeeded; collect checks the role's
170
+ non-optional outputs. deploy/collect/kill exist on every role extending linux_system.
171
+
172
+ == EXPLOIT
173
+ - No slot/for_each. criteria: non-empty, static (no template), relative to testdef.yml, folders holding *.mexploit.yml.
174
+ - data: non-empty; phase (if given) and slot must exist; reads data/<slot>/<path> of the run folder (so write
175
+ <slot>/output/<file>, e.g. "test:telemetry/output/telemetry.csv"). Globs allowed.
176
+ - with: {params.<name>: <template>} preferred (criteria read {{ params.<name> }}). A plain key already defined by the
177
+ testdef keys is refused.
178
+ - Every key a scenario reads must be defined (dictionaries or with).
179
+ - Result: succeeded (all checks met), failed (one not met), error. Dependants run anyway unless continue_on_error: false.
180
+
181
+ == MANUAL
182
+ No slot/for_each. text or checks REQUIRED. Pictures ![alt](<path>): relative to testdef folder, no .., or a URL.
183
+ redo_from: earlier step ids of the same phase/sub-pipeline that this step needs, directly or not.
184
+ Set a step timeout. Use only for actions a person must do on the bench.
185
+
186
+ == CRITERIA (mexploit scenario files)
187
+ File = mapping of checks, run in order: `<check name>: {type: <criterion>, description: <str>, reqs: [<id>], <fields>}`.
188
+ Names unique per file; later checks see cp.<name> of earlier computed_param/time_origin. Unknown field = warning,
189
+ soon error. Files are Jinja templates rendered with the run-time keys: quote templated values ("{{ scenario.max }}").
190
+ `{% for p in list %}` loops: each entry name must contain the loop variable. `{% include "x.inc.yml" %}` (never name
191
+ includes *.mexploit.yml).
192
+ Expressions: Python on pandas series: param("<name or regex matching one>"), params(...) (list), cp.<name>,
193
+ helpers timerange(data,min,max) dropdups gradient autoz voffset mask_values_on_event addPoints overlap firstEqual
194
+ firstOverpass get_min_val get_max_val dateOf, and pd np re datetime. Index = time in seconds. No imports, no dunders.
195
+ get_param: <name> | {name, minDate, maxDate}; get_params: <name|regex> | [names] | {names, minDate, maxDate}.
196
+ Built-in types (REQUIRED fields):
197
+ time_origin {expression} date that becomes t=0 for parameters loaded afterwards
198
+ computed_param {expression} -> cp.<check name>; multi-line = function body with return
199
+ assert {expression}
200
+ assert_compare {expression_left, compOperator(< <= == != >= >), expression_right} [epsilon]
201
+ check_corridor_param {get_param} [minExpr, maxExpr, withPlot]
202
+ check_corridor_expr {expression, boundaries: {<n>: {expression, compOp}}} [withPlot] holds: bound compOp value
203
+ sequence {events: {<event>: {expression: <bool series or date>, mode: multi|once,
204
+ constraints: {<n>: {expression: "<event> < <other> + 1.5", plot_date}}}}} events in written order
205
+ plot_param {get_param}, plot_params {get_params}, plot_each_param {get_params}, plot {values|expression},
206
+ plot_histogram*, all with [title, xLabel, yLabel, color]
207
+ Plugin types (e.g. within_range, settles): only if listed in CRITERIA input, with exactly its fields.
208
+ Every requirement of SPEC = at least one asserting check (not plot), with `reqs` when ids are given. Add one plot of
209
+ the main parameters.
210
+
211
+ == SELF-CHECK BEFORE ANSWERING
212
+ 1 every slot/stage slot named in pipeline exists in setup_config; steps target only slots their phase holds.
213
+ 2 every `do` command exists for the slot's role (or every for_each slot's role); `with` = its declared params.
214
+ 3 every needs/redo_from id exists, no cycle, phases acyclic; ids unique, no . [ /.
215
+ 4 exactly one action per step; with only on do/uses/exploit; no slot on exploit/manual/uses.
216
+ 5 every {{ key }} defined (dictionaries, built-ins of the right context); no lab-side key; user_keys not in dictionaries.
217
+ 6 exploit criteria folders are emitted; data paths point to role outputs collected in an earlier or same phase.
218
+ 7 durations valid; YAML valid; templated scalars quoted.
219
+
220
+ == EXAMPLE (roles: app extends linux_system {start, stop, ready, set_speed{params: {mps}}}, outputs [{name: log.csv}];
221
+ setup ../setup/bench.yml, config bench: slots dut {role: app}, analysis {role: sequencer})
222
+ # file: testdef.yml
223
+ id: speed_hold
224
+ name: Speed hold
225
+ setup_file: ../setup/bench.yml
226
+ setup_config: bench
227
+ dictionaries: [scenario.yml]
228
+ reqs: [SPD-1]
229
+ pipeline:
230
+ timeout: 10m
231
+ phases:
232
+ - id: test
233
+ slots: [dut]
234
+ steps:
235
+ - {id: deploy, slot: dut, do: deploy}
236
+ - {id: start, slot: dut, do: start, needs: [deploy]}
237
+ - {id: ready, slot: dut, do: ready, needs: [start]}
238
+ - {id: speed, slot: dut, do: set_speed, with: {mps: "{{ scenario.target_mps }}"}, needs: [ready]}
239
+ - {id: hold, delay: "{{ scenario.duration_s }}s", needs: [speed]}
240
+ - {id: stop, slot: dut, do: stop, needs: [hold]}
241
+ finally:
242
+ - {id: kill, slot: dut, do: kill, if: "not succeeded('stop')"}
243
+ - {id: collect, slot: dut, do: collect}
244
+ - id: exploit
245
+ needs: [test]
246
+ steps:
247
+ - id: check
248
+ exploit: {criteria: [criteria/speed_hold], data: ["test:dut/output/log.csv"]}
249
+ # file: scenario.yml
250
+ scenario: {target_mps: 0.3, tolerance_mps: 0.01, duration_s: 20}
251
+ # file: criteria/speed_hold/1_speed.mexploit.yml
252
+ speed_held:
253
+ type: check_corridor_param
254
+ description: Speed stays at target once reached.
255
+ reqs: [SPD-1]
256
+ get_param: {name: speed_mps, minDate: 5}
257
+ minExpr: "{{ scenario.target_mps - scenario.tolerance_mps }}"
258
+ maxExpr: "{{ scenario.target_mps + scenario.tolerance_mps }}"
259
+ speed_plot: {type: plot_param, get_param: speed_mps, title: Speed}
@@ -335,7 +335,7 @@ In **tsqd**, with the Editor on, the same editor opens on an editing session: **
335
335
  2. **Fields**: the parameters of every source, named `<source>::<parameter>` (the source: the name of the file or folder picked), filtered as you type: words found anywhere in the name, or a regex, `source::param` matching the source and the parameter apart as in the notebook. Tick fields then **Plot**, or double-click one. The time of the values is the one of the format, or another field (**time:**, the notebook's *Use First Line for Timestamps*).
336
336
  3. **Traces**: each one with its own color, label, line, markers, steps, line width, dot size, fill under the line (2D: plain, or a gradient fading towards zero) and vertical offset (a number or expression, or `autoz:XXs` to start from zero: minus the mean of the first XX seconds). A trace can be hidden or removed; one that cannot be drawn says why.
337
337
 
338
- The figure is redrawn as the traces change, by the plotly backend of the reports ([plots](../../../README.md#plots)), and is moved by dragging, zoomed with the mouse wheel (or the zoom tool of its toolbar), hovered and (3D) rotated in the page. **Δ** on two traces (2D) draws, at the mouse, a vertical line between them with their difference (values interpolated, or held for steps). Nothing leaves the computer: the page loads plotly.js from `mxp webui`, and the "Share to Plotly Cloud" button of plotly.js is off, in the page, the HTML exports, the figure pages of the reports and the figures of the notebooks (`plotlyBackend.PRIVATE_CONFIG`). **2D** draws the values against time (**Time axis**: dates as times of the day), **3D** a trajectory: tick 3 fields, taken as X, Y and Z in the order ticked, or one field of 3 columns. Beyond **Points** per trace (100k by default), the min and max of each slice are drawn, so peaks stay. **Export**: a PNG image, an interactive HTML page (working offline), or the CSV of every point inside the current zoom, all traces on one time column. The page is kept in the browser: it opens as it was left.
338
+ The figure is redrawn as the traces change, by the plotly backend of the reports ([plots](../../../README.md#plots)), and is moved by dragging, zoomed with the mouse wheel (or the zoom tool of its toolbar), hovered and (3D) rotated in the page. **Δ** on two traces (2D) draws, at the mouse, a vertical line between them with their difference (values interpolated, or held for steps). Nothing leaves the computer: the page loads plotly.js from `mxp webui`, and the "Share to Plotly Cloud" button of plotly.js is off, in the page, the HTML exports, the figure pages of the reports and the figures of the notebooks (`plotlyBackend.PRIVATE_CONFIG`). **2D** draws the values against time (**Time axis**: dates as times of the day), **3D** a trajectory: tick 3 fields, taken as X, Y and Z in the order ticked, or one field of 3 columns. Beyond **Points** per trace (100k by default), the min and max of each slice are drawn, so peaks stay. **Export**: a PNG image, an interactive HTML page (working offline), or the CSV of every point inside the current zoom, all traces on one time column. The fields loaded stay in the memory of `mxp webui` so that restyling redraws fast, 2 GB of them at most (the oldest go first). The page is kept in the browser: it opens as it was left.
339
339
 
340
340
  The editor is [testsuit/exploit/editor](editor) (Python services on a folder, and their REST routes, with no dependency on the sequencer) and [ui/src/criteria](../../../ui/src/criteria) (the web component, given the routes of its host).
341
341
 
@@ -46,6 +46,9 @@ from testsuit.exploit.editor.service import CriteriaError, NotFound
46
46
 
47
47
  # loaded parameters kept, and opened sources: a figure is restyled many times
48
48
  MAX_CACHED_PARAMS = 256
49
+ # the memory the loaded parameters kept may take, at most (the oldest go first; the last one loaded stays):
50
+ # a field of a data file of GBs is GBs too, and the Plot page runs in the server (tsqd, mxp webui)
51
+ MAX_CACHED_BYTES = 2 << 30
49
52
  MAX_CACHED_SOURCES = 4
50
53
  # points per trace sent to the page by default (min/max of buckets, so peaks stay): plotly.js stays smooth
51
54
  DEFAULT_MAX_POINTS = 100_000
@@ -55,6 +58,10 @@ MAX_TRACES = 64
55
58
  READABLE_TIMEOUT_S = 3.0
56
59
  # readable() lists the fields of a file up to this many
57
60
  READABLE_NAMES = 10
61
+ # loaders listing fields at once for readable(): one still reading a big file past READABLE_TIMEOUT_S keeps its
62
+ # thread, so they are few, and what each found is kept (by file version) for the next time the file is shown
63
+ READABLE_WORKERS = 4
64
+ MAX_CACHED_READABLE = 256
58
65
 
59
66
 
60
67
  def decimate(series: pd.Series, maxPoints: int | None) -> pd.Series:
@@ -124,6 +131,10 @@ class PlotData:
124
131
  self._lock = threading.Lock()
125
132
  self._sources: collections.OrderedDict = collections.OrderedDict()
126
133
  self._params: collections.OrderedDict = collections.OrderedDict()
134
+ self._sizes: dict = {} # cache key of a loaded parameter -> its bytes in memory
135
+ # the fields of a file, by (path, mtime, size, format): a Future, done or still running
136
+ self._readable: collections.OrderedDict = collections.OrderedDict()
137
+ self._readablePool = None
127
138
 
128
139
  # ── sources ─────────────────────────────────────────────────────────
129
140
 
@@ -180,6 +191,7 @@ class PlotData:
180
191
  old, _ = self._sources.popitem(last=False)
181
192
  for k in [k for k in self._params if k[0] == old]:
182
193
  del self._params[k]
194
+ self._sizes.pop(k, None)
183
195
  return key, opened
184
196
 
185
197
  @staticmethod
@@ -214,20 +226,32 @@ class PlotData:
214
226
  def fields() -> list[str]:
215
227
  return list(fmt.factory(str(p), 0).getFieldNames() or [])
216
228
 
217
- pool = ThreadPoolExecutor(max_workers=1)
229
+ stat = p.stat()
230
+ key = (str(p), stat.st_mtime_ns, stat.st_size, fmt.name)
231
+ with self._lock:
232
+ # a file shown again while its loader still lists its fields waits for the same listing: a loader
233
+ # reading a whole file to list its fields (InfluxDB CSV) is not started again on each look
234
+ listing = self._readable.get(key)
235
+ if listing is None:
236
+ if self._readablePool is None:
237
+ self._readablePool = ThreadPoolExecutor(max_workers=READABLE_WORKERS,
238
+ thread_name_prefix="plot-readable")
239
+ listing = self._readable[key] = self._readablePool.submit(fields)
240
+ while len(self._readable) > MAX_CACHED_READABLE:
241
+ self._readable.popitem(last=False)
242
+ else:
243
+ self._readable.move_to_end(key)
218
244
  try:
219
- names = pool.submit(fields).result(timeout=READABLE_TIMEOUT_S)
245
+ names = listing.result(timeout=READABLE_TIMEOUT_S)
220
246
  count = len(names)
221
247
  except Late:
222
248
  names, count = [], None # a big file: its loader takes its time, the Plot page tells the rest
223
249
  except Exception as e: # the loaders raise anything
224
250
  raise NotFound(f"the {fmt.name} loader cannot read '{p.name}': {e}") from e
225
- finally:
226
- pool.shutdown(wait=False)
227
251
  if count is not None and count < 1:
228
252
  raise NotFound(f"the {fmt.name} loader finds no field in '{p.name}'")
229
253
  return {"path": str(p), "format": fmt.name, "fields": count, "label": p.name,
230
- "names": names if count is not None and count <= READABLE_NAMES else None, "size": p.stat().st_size}
254
+ "names": names if count is not None and count <= READABLE_NAMES else None, "size": stat.st_size}
231
255
 
232
256
  def sources(self, paths: list[str]) -> dict:
233
257
  """The sources picked: each file, or each folder with the data files found in it, what their loaders
@@ -249,10 +273,19 @@ class PlotData:
249
273
 
250
274
  def _store(self, cacheKey: tuple, frame) -> pd.DataFrame:
251
275
  frame = frame.to_frame() if isinstance(frame, pd.Series) else frame
276
+ try:
277
+ size = int(frame.memory_usage(index=True, deep=False).sum())
278
+ except Exception:
279
+ size = 0
252
280
  with self._lock:
253
281
  self._params[cacheKey] = frame
254
- while len(self._params) > MAX_CACHED_PARAMS:
255
- self._params.popitem(last=False)
282
+ self._params.move_to_end(cacheKey)
283
+ self._sizes[cacheKey] = size
284
+ # the oldest go first, by count and by memory; the one just loaded stays (a figure is drawn with it)
285
+ while len(self._params) > 1 and (len(self._params) > MAX_CACHED_PARAMS
286
+ or sum(self._sizes.values()) > MAX_CACHED_BYTES):
287
+ old, _ = self._params.popitem(last=False)
288
+ self._sizes.pop(old, None)
256
289
  return frame
257
290
 
258
291
  @staticmethod
@@ -66,9 +66,17 @@ class CriteriaConflict(CriteriaError):
66
66
  self.current = current
67
67
 
68
68
 
69
+ # file_version() hashes files up to this size; a bigger one is versioned by its size and modification time
70
+ VERSION_HASH_BYTES = 8 << 20
71
+
72
+
69
73
  def file_version(path: Path) -> str | None:
70
- """A hash of the bytes of a file (None: no such file)."""
74
+ """A hash of the bytes of a file (None: no such file); of its size and modification time for a file over
75
+ VERSION_HASH_BYTES (a data file), not read again each time the Editor asks."""
71
76
  try:
77
+ stat = path.stat()
78
+ if stat.st_size > VERSION_HASH_BYTES:
79
+ return "s" + hashlib.sha1(f"{stat.st_size}:{stat.st_mtime_ns}".encode()).hexdigest()[:15]
72
80
  return hashlib.sha1(path.read_bytes()).hexdigest()[:16]
73
81
  except (FileNotFoundError, IsADirectoryError):
74
82
  return None
@@ -163,7 +163,7 @@ A test never names a host: the same datapack runs on any stage of the right type
163
163
 
164
164
  **UC-5 Run a test and follow it** (test author; sections 9 and 10):
165
165
  - Post it with `tsq submit <zip> --priority 70 --follow`, or from the **Queue** subtab of the **Runs** tab.
166
- - See it waiting with `tsq queue` (change its priority with `tsq priority <run> 90`), then running with `tsq show <run>` and `tsq logs <run>`, or on its page (**Runs** tab) with its pipeline graph and live logs.
166
+ - See it waiting with `tsq queue` (change its priority with `tsq priority <run> 90`), then running with `tsq show <run>` and `tsq logs <run>`, or on its page (**Runs** tab) with its pipeline graph and live logs. The page follows the step running now (selected, its log shown) until another step is clicked; clicking a running step, or **Follow the running step**, follows again, to each next step as it starts.
167
167
 
168
168
  **UC-6 Stop a run** (section 11): `tsq cancel <run>` stops the commands, then kills them; `tsq kill <run>` kills at once. Either way the `finally` steps still run and collect the outputs. `tsq repost <run>` puts an ended run back in the queue.
169
169
 
@@ -904,6 +904,8 @@ The criteria are not inputs of a slot: the exploit steps of the pipeline name th
904
904
 
905
905
  The pipeline lives in the test definition (already kept as is in the datapack). Its syntax is close to GitLab CI so that it reads familiar. Every phase follows the same rules, the exploit phase included: it lists the stage slots and ad hoc slots it needs, can take earlier phases' outputs as inputs, and runs steps.
906
906
 
907
+ An AI can write a whole test definition (pipeline, dictionaries, criteria) from a test specification with the prompt [docs/ai/testdef_prompt.txt](../../../docs/ai/testdef_prompt.txt): give it the prompt, the specification, the roles of the lab library and the setup to reuse, then check its output with `tsq validate <testdef.yml> --lab <inventory>` and `mxp lint`.
908
+
907
909
  ```yaml
908
910
  pipeline:
909
911
  timeout: 15m
@@ -957,9 +959,12 @@ pipeline:
957
959
  Phase fields: `id`, `needs`, `stage_slots` (stage slots, each with the lab stage bound to it), `slots` (ad hoc slots), `inputs`, `steps`, `finally`, `timeout`, `comments`.
958
960
 
959
961
  **Comment cards.** A phase, and a sub-pipeline (section 8.4), can carry `comments`: notes on its graph in the Editor, like sticky notes, for the people who read the pipeline (Markdown). They never change what runs: the sequencer neither runs nor renders them (a `{{ ... }}` in them stays as written and reads no key). Each card has its `text`, and optionally:
960
- - `step`: the step it is pinned to, an id of its phase (`steps` or `finally`) or sub-pipeline; without it the card is free;
962
+ - `step`: the step it is pinned to, an id of its phase (`steps` or `finally`) or sub-pipeline; without it the card is free. A dashed line links a pinned card to its step, in the Editor and on the run page (to the frame of a sub-pipeline when pinned to its `uses` step);
961
963
  - `x` and `y`: its place in pixels, written by the Editor when the card is dragged: on the graph for a free card, from its step for a pinned one, so that a pinned card follows its step when the graph is laid out again. Without them, a free card goes under the steps and a pinned one above its step;
962
- - `width` (default 220).
964
+ - `width` (default 220);
965
+ - `color`: `yellow` (the default), `orange`, `red`, `pink`, `purple`, `blue`, `green` or `grey` (each with a light and a dark shade, following the UI theme), or any `#rrggbb` (or `#rgb`).
966
+
967
+ The run page shows every card: those of a phase under its frame, and those of a sub-pipeline at the bottom of its frame, once for each `uses` step of it (at any depth).
963
968
 
964
969
  A card can also be given as its text only. A card pinned to a step that its phase or sub-pipeline does not have is shown free, with a warning in the Editor (never an error: a note does not stop a run).
965
970
 
@@ -973,6 +978,7 @@ A card can also be given as its text only. A card pinned to a step that its phas
973
978
  width: 320
974
979
  - text: "only when `down` failed"
975
980
  step: kill_leftovers # pinned: follows the step; x, y (if any) are from it
981
+ color: red
976
982
  - "Check the logger first" # its text only: free, placed by the Editor
977
983
  ```
978
984
 
@@ -1344,7 +1350,7 @@ Links use the same key at both levels, `reqs`: on the test definition (`reqs: [R
1344
1350
  - the **Requirements** section of a campaign run's page, and of its synthetic report: coverage over all its runs, one column per run;
1345
1351
  - the **Requirements** subtab of **Datapacks** (Editor mode): the path tree of the requirements source, each node with its counts and worst status; a node's requirements (with or without its sub-nodes), their text on a click, and which test definitions and checks cover them, verified by the latest ended run of each test definition. Uncovered requirements are listed too. A campaign filter keeps the test definitions of one campaign. **Report** gives the matrices as one HTML page.
1346
1352
 
1347
- **Editing `requirements.yml`** (Editor mode): the file opens in a form, as test definitions do (and in the YAML view). **Sources** lists each source with its backend (picked among those the loaded plugins register, with their description and capabilities), its label, its options (those the backend declares proposed with their help) and its credentials (each read on the sequencer host from an environment variable, `env:JAMA_TOKEN`, or a file such as a Docker secret, `file:/run/secrets/jama_token`), and which one is the default; **Use several sources…** turns a file holding the requirements into the source `reqs` of a sources file. **Tree** gives a label to each node, and **Requirements** is a table of the requirements of the built-in YAML backend (id, path picked in the tree, title, status, tags; a click unfolds description, rationale, comments, version and link), filtered by id, path, title or tag. A file named by the `file` option of a `yaml` source opens in the same form. The Editor's problems list a backend no plugin registers, a file that is not there, an unknown field, and (as warnings) a credential whose variable is not set, or whose file cannot be read, on the sequencer host. The Requirements subtab of Datapacks has **Edit…** to open it, or **Create requirements.yml…** when there is none.
1353
+ **Editing `requirements.yml`** (Editor mode): the file opens in a form, as test definitions do (and in the YAML view). **Sources** lists each source with its backend (picked among those the loaded plugins register, with their description and capabilities), its label, its options (those the backend declares proposed with their help) and its credentials (each read on the sequencer host from an environment variable, `env:JAMA_TOKEN`, or a file such as a Docker secret, `file:/run/secrets/jama_token`), and which one is the default; **Use several sources…** turns a file holding the requirements into the source `reqs` of a sources file. **Tree** gives a label to each node, and **Requirements** is a table of the requirements of the built-in YAML backend (id, path picked in the tree, title, status, tags; a click unfolds description, rationale, comments, version and link), filtered by id, path, title or tag. A file named by the `file` option of a `yaml` source opens in the same form. The Editor's problems list a backend no plugin registers, a file that is not there, an unknown field, and (as warnings) a credential whose variable is not set, or whose file cannot be read, on the sequencer host. In the test definition form, the **Requirements** field proposes every active requirement of the sources when clicked, searched by id, title or path as you type (`GET /edit/sessions/{id}/requirements/search`). The Requirements subtab of Datapacks has **Edit…** to open it, or **Create requirements.yml…** when there is none.
1348
1354
 
1349
1355
  A backend declares what the form proposes with class attributes: `description` (one line), `options_help` and `credentials_help` (each `{name: help}`).
1350
1356
 
@@ -1428,7 +1434,7 @@ tsq config # settings in use, a
1428
1434
  - `POST /campaigns` (multipart: the `campaign.yml` manifest and its datapacks, priority), `GET /campaigns`, `GET /campaigns/{id}` (the campaign run, its runs at a glance), `GET /campaigns/{id}/report[?download=true]` (the synthetic report, HTML), `POST /campaigns/{id}/cancel|kill` (section 10.2); a run of a campaign carries `campaign_run` and `routing`;
1429
1435
  - `GET /runs/{id}/requirements[/report]`, `GET /campaigns/{id}/requirements[/report]` (requirements coverage, JSON or HTML, section 10.3);
1430
1436
  - `GET /events` (Server-Sent Events: run, campaign and component state changes, log lines);
1431
- - `GET /runs/{id}/pipeline` (phases and steps after sub-pipeline expansion, with their `needs`: the run graph of the UI);
1437
+ - `GET /runs/{id}/pipeline` (phases and steps after sub-pipeline expansion, with their `needs`, and the comment cards of each phase and of the sub-pipelines it uses, each with `text`, `step`, `color`, `group` (the `uses` step id, empty for the phase's own) and `part` (`steps` or `finally`): the run graph of the UI);
1432
1438
  - Editor mode only (section 13.2):
1433
1439
  - `GET /edit/repositories/{id}/diff[?download=true]` (its local changes: files and patch, or the patch as a file), `POST /edit/repositories/{id}/revert` (`paths` relative to its folder, or all), `GET /edit/repositories/{id}/archive` (its folder as a zip);
1434
1440
  - `POST /edit/repositories` (add a tests repository: `url`, `branch` (required, cloned alone), `name`, `path`, and the user's credentials for this clone only), `DELETE /edit/repositories/{id}` (only a clean one), `GET /edit/repositories/{id}/status` (git state, local changes, commits ahead and behind, last push from the Editor, a stamp of its files), `POST /edit/repositories/{id}/pull` (credentials optional);
@@ -1458,19 +1464,19 @@ The kernel never depends on the UI below: it is a web front end on the REST API,
1458
1464
  | Take a run step by step | the **Step mode** of the Run page pauses after each step or at breakpoints: a banner per paused step with **Next**, **Run again** and **Continue anyway**; the same actions on the selected step of the running phase; **⏸ paused** in All runs and on the campaign page; the **Operator actions** list on the Run page |
1459
1465
  | Follow requirements coverage | the **Requirements** tab of a run, the **Requirements** section of a campaign run and its report, and the **Requirements** subtab of Datapacks (section 10.3): statuses per requirement and per test, matrices both ways, links to the requirements, runs and exploit reports |
1460
1466
  | Manage and monitor the queue | queued datapacks in order, with priority (editable), age and what each waits for; cancel |
1461
- | Monitor running datapacks | the pipeline as a graph of phases, sub-pipelines and steps, with live states and logs, each phase's finally steps in a lane of their own after its steps, and the comment cards of each phase (read-only, under its frame, a pinned one naming its step); cancel and kill, re-post an ended run, or run an ended run of a campaign again (its earlier attempt kept) |
1462
- | Access a datapack's contents | before the run (queued: inputs, definition, keys, baseline), during the run (inputs, outputs collected so far, logs) and after it (the results datapack): a file tree with viewers for text, YAML, CSV and logs, and downloads for the rest, large files included. A file generated from a template lists the keys it used and the dictionary of each (from `datapack.yml`); each `{{ expression }}` output is underlined, and hovering it shows the expression and the keys it read (from the datapack's `values.json`, written since this was added: older datapacks have the list only). Text written by `{% if %}`/`{% for %}` alone has no hover, a loop variable shows its expression with no key, and a file changed by a postprocess or that a filter makes impossible to locate (such as `length` of a value) keeps the list only |
1467
+ | Monitor running datapacks | the pipeline as a graph of phases, sub-pipelines and steps, with live states and logs, each phase's finally steps in a lane of their own after its steps, and the comment cards of each phase (read-only, in their color, under its frame, a pinned one naming its step and linked to it by a dashed line) and of each sub-pipeline (at the bottom of its frame); cancel and kill, re-post an ended run, or run an ended run of a campaign again (its earlier attempt kept) |
1468
+ | Access a datapack's contents | before the run (queued: inputs, definition, keys, baseline), during the run (inputs, outputs collected so far, logs) and after it (the results datapack): a file tree with viewers for text, YAML, CSV and logs, and downloads for the rest, large files included. A viewer shows the first 5 MB of a file, the rest not even downloaded (a data file of GBs opens at once): **Load 5 MB more** adds the next part, **Load whole file** the rest of a file of 50 MB at most; the viewer shows 50 MB at most, **Download** (or the Plot tab) is for the rest. A CSV table shows 1000 rows, **Show 1000 more rows** more of what is loaded. The parts are HTTP range requests (`Range: bytes=a-b`, answered 206), files of a results zip or a generated datapack included. A file generated from a template lists the keys it used and the dictionary of each (from `datapack.yml`); each `{{ expression }}` output is underlined, and hovering it shows the expression and the keys it read (from the datapack's `values.json`, written since this was added: older datapacks have the list only). Text written by `{% if %}`/`{% for %}` alone has no hover, a loop variable shows its expression with no key, and a file changed by a postprocess or that a filter makes impossible to locate (such as `length` of a value) keeps the list only |
1463
1469
 
1464
1470
  ### 13.2 Editor mode
1465
1471
 
1466
1472
  An optional mode of the same UI, enabled with `server.editor` (off by default, since it writes files). It edits the YAML files the CLI tools read, and adds nothing the files cannot express: whatever it does can also be done with a text editor and git.
1467
1473
 
1468
1474
  **Where it is.** Two entry points replace a separate Editor tab:
1469
- - **Datapacks** (top-level tab) lists the test definitions of the `server.workspaces` repositories, through an in-place session on each. For the one selected it shows its baseline, read-only (each dataset, the version in use, the versions its importer lists, and the dictionary key or file that writes it; a version is changed in the files in the Editor, or for one generation in **Generate…**), its logical configuration (stage slots and slots, with their role), its template and input files per slot, and its dictionaries with their keys. **Generate…** runs the datapack tool on it; **Edit…** opens the repository in the Editor. The versions come from the importer's optional `listVersions()`: tags then branches of the remote for `git` (`git ls-remote`), the releases of the store for the toy-train importer.
1475
+ - **Datapacks** (top-level tab) lists the test definitions of the `server.workspaces` repositories, through an in-place session on each. For the one selected it shows its baseline, read-only (each dataset, the version in use, the versions its importer lists, and the dictionary key or file that writes it; a version is changed in the files in the Editor, or for one generation in **Generate…**), its logical configuration (stage slots and slots, with their role), its template and input files per slot, and its dictionaries with their keys. **Generate…** runs the datapack tool on it; **Edit**, beside it, opens that test definition in the Editor, and **Edit workspace files…** (in the workspace bar) the whole repository, each in a new browser tab. The versions come from the importer's optional `listVersions()`: tags then branches of the remote for `git` (`git ls-remote`), the releases of the store for the toy-train importer.
1470
1476
  - **Campaigns**, the second subtab of **Datapacks** (next to **Test definitions**), lists the campaign files of the repository (`*.campaign.yml`). For the one selected it shows its test definitions (configuration, priority, problems), the datasets they import with the version each one writes and the one the campaign pins (a dataset not listed in the campaign is a problem that blocks generating), and its routing tags, checked against the lab. **New campaign…** writes a campaign file from the test definitions picked, listing the versions they write today. **Generate and run…** generates every datapack (all or none), lists them with their conformity, and posts them as one campaign run, then opens its page (section 10.2).
1471
- - **Workspaces.** The tests repositories are those of `server.workspaces`, plus those added from the Datapacks tab with **Add repository…**: a git URL and a branch (required), with an optional name and the folder of the repository holding the datapack definitions. tsqd clones that branch only (`git clone --single-branch`) into `<storage.root>/workspaces/<name>`, and lists it in `<storage.root>/workspaces.yml` (URL, branch, folder, who added it and when; never credentials). A URL holding a password or token is refused: credentials are typed in the dialog, used for that clone only, and never stored. **Remove…** deletes such a clone and its editing sessions, only once it is clean (nothing not committed, no commit not pushed); a repository of `server.workspaces` is removed from the configuration instead. **Download files** gives any workspace's folder as it is now, local changes included, as a zip without its git history. These buttons, and **Edit…**, are under the details of the workspace picked, as they act on it only; **Remove…** is greyed out for a workspace of `server.workspaces`.
1477
+ - **Workspaces.** The tests repositories are those of `server.workspaces`, plus those added from the Datapacks tab with **Add repository…**: a git URL and a branch (required), with an optional name and the folder of the repository holding the datapack definitions. tsqd clones that branch only (`git clone --single-branch`) into `<storage.root>/workspaces/<name>`, and lists it in `<storage.root>/workspaces.yml` (URL, branch, folder, who added it and when; never credentials). A URL holding a password or token is refused: credentials are typed in the dialog, used for that clone only, and never stored. **Remove…** deletes such a clone and its editing sessions, only once it is clean (nothing not committed, no commit not pushed); a repository of `server.workspaces` is removed from the configuration instead. **Download files** gives any workspace's folder as it is now, local changes included, as a zip without its git history. These buttons, and **Edit workspace files…**, are under the details of the workspace picked, as they act on it only; **Remove…** is greyed out for a workspace of `server.workspaces`.
1472
1478
 
1473
- **Exploit.** A tab of its own when the Editor is on: it runs exploit_runner on the tsqd host, with scenarios of the workspaces, dictionaries, keys set by hand and data of the runs (`storage.runs`), as `mxp webui` does ([exploit README](../exploit/README.md#running-exploit_runner-from-the-web-ui)). Each run is kept in `<storage.root>/exploit/`. Its **Plot** subtab (`#/exploit/plot`) is the Plot page of `mxp webui` ([exploit README](../exploit/README.md#plotting-data-by-hand-the-plot-page)) on the same folders: the data of the runs (the **Runs** folder of its picker) and the workspaces, nothing else of the host. A data file of a run, in its **Files** or **Results** tab, gets a **Plot…** button opening it there in a new browser tab, added to the data sources with its fields shown (plotted at once when it has 3 fields or fewer, its times left out); a small one (3 fields or fewer, its times left out, of 2 to 100k values) is also plotted right in the file viewer, a quick look above its text: a file the data loaders read (their registry, the formats of plugins included), once its loader lists its fields; not when only the results zip of the run is left. The files of a datapack just generated (the **Generate a datapack** dialog) get it too: the file is extracted from the zip first, under `<storage.root>/plot/datapacks` (kept a day).
1479
+ **Exploit.** A tab of its own when the Editor is on: it runs exploit_runner on the tsqd host, with scenarios of the workspaces, dictionaries, keys set by hand and data of the runs (`storage.runs`), as `mxp webui` does ([exploit README](../exploit/README.md#running-exploit_runner-from-the-web-ui)). Each run is kept in `<storage.root>/exploit/`. Its **Plot** subtab (`#/exploit/plot`) is the Plot page of `mxp webui` ([exploit README](../exploit/README.md#plotting-data-by-hand-the-plot-page)) on the same folders: the data of the runs (the **Runs** folder of its picker) and the workspaces, nothing else of the host. A data file of a run, in its **Files** or **Results** tab, gets a **Plot…** button opening it there in a new browser tab, added to the data sources with its fields shown (plotted at once when it has 3 fields or fewer, its times left out); a small one (3 fields or fewer, its times left out, of 2 to 100k values) is also plotted right in the file viewer, a quick look above its text: a file the data loaders read (their registry, the formats of plugins included), once its loader lists its fields; not when only the results zip of the run is left. The files of a datapack just generated (the **Generate a datapack** dialog) get it too: the file is extracted from the zip first, under `<storage.root>/plot/datapacks` (kept a day). The fields loaded for plotting stay in tsqd's memory so that a figure redraws fast, 2 GB of them at most (the oldest go first): a field of a data file of GBs is loaded again when it is plotted after others.
1474
1480
  - **Local changes.** **Show changes…**, in the workspace bar when a workspace has local changes, lists what is not committed against its last commit, file by file with its diff; **Download patch** gives them as a patch to apply at the root of the repository (`git apply`); **Revert this file…** and **Revert all…** (each confirmed by a second click) put the files back as committed and delete new ones. Commits are never touched there: the Datapacks tab is not a git client, and offers no merge, reset or branch handling (pull is fast-forward only). When there are several, the workspace worked on is picked on the Datapacks tab (one card each: name, branch, URL), named in the Editor's session bar (with a switch to another one) and in the **Generate a datapack** dialog.
1475
1481
  - **Changes made meanwhile** in a tests repository are followed as the Lab page follows the lab files: the Datapacks tab asks `GET /edit/repositories/<id>/status` every 2 s and shows a banner when the files changed since it read them (another browser, a hand edit, a pull), with **Read them again**. Its workspace bar (under the card naming the workspace, its branch and URL) shows the revision of the folder and its git actions: when the folder has local changes or commits not pushed, **Commit and push…** (the Review and push dialog of its in-place session); and when a newer revision was pushed from the Editor (a scratch clone), or the upstream branch is ahead as last fetched, a chip, and **Pull…**, always there, highlighted then (`POST /edit/repositories/<id>/pull`: fetch, then fast-forward only; local changes not committed stay as they are, unless upstream changed one of those files: then nothing is pulled, and the dialog says which files to commit and push, or revert, first).
1476
1482
  - **Edit lab config**, on the Lab tab, opens the lab repository in the Editor, in place.
@@ -1503,7 +1509,7 @@ The Editor home (`#/edit`, linked as **Editing sessions** on the Configuration t
1503
1509
  - the phases listed in the order they run (each after the phases it needs), reordered by dragging one (or **◀ earlier** / **later ▶**): when each phase runs after the one before it, `needs` follow the new order; otherwise a move putting a phase before one it needs is refused;
1504
1510
  - a palette of what a step can do on each slot, built from the commands its lab role offers, with the implementation of each bound host (`deploy`, `start`, `ready`, `install`...), plus `run`, `python`, `http`, `delay`, `wait_for` and the plugin step types; the resources of each phase are proposed from the setup's stage slots and slots;
1505
1511
  - a form per step for its options (`timeout`, `expect`, `if`, `retries`...), with the YAML view kept in sync;
1506
- - comment cards (section 8.3), like sticky notes on the graph of a phase or a sub-pipeline: **comment** in the palette (*anywhere*) adds one in the middle of the graph shown; a click selects it and edits its text (Markdown), its width and the step it is pinned to (**Pinned to**, or nothing for a free card; the card stays where it is) in the panel on the right; dragging it moves it (its `x`/`y` are written in the file, from its step when it is pinned); Delete, or **Delete** in its panel, removes it. A card pinned to a step that is deleted stays, free, where it was; one pinned to a step that is renamed follows the new id, and one pinned to steps grouped into a sub-pipeline is pinned to the `uses` step that replaces them. They are never run, and the run page (and the pipeline preview of the Datapacks tab) shows the cards of each phase under its frame, read-only, a pinned one naming its step;
1512
+ - comment cards (section 8.3), like sticky notes on the graph of a phase or a sub-pipeline: **comment** in the palette (*anywhere*) adds one in the middle of the graph shown; a click selects it and edits its text (Markdown), its width, its color (a swatch per named color, or any other one) and the step it is pinned to (**Pinned to**, or nothing for a free card; the card stays where it is) in the panel on the right; dragging it moves it (its `x`/`y` are written in the file, from its step when it is pinned); Delete, or **Delete** in its panel, removes it. A card pinned to a step that is deleted stays, free, where it was; one pinned to a step that is renamed follows the new id, and one pinned to steps grouped into a sub-pipeline is pinned to the `uses` step that replaces them. They are never run, and the run page (and the pipeline preview of the Datapacks tab) shows the cards of each phase under its frame and those of each sub-pipeline at the bottom of its frame, read-only, in their color, a pinned one naming its step;
1507
1513
  - validation as `tsq validate` (cycles, unknown ids, components outside the phase), and a flattened view of the whole pipeline with every command expanded for the chosen setup configuration.
1508
1514
 
1509
1515
  **Criteria.** The criteria of a test definition (its mexploit scenarios, `criteria/<name>/*.mexploit.yml`) and their unit tests (`criteria_utests/<name>/utests.yml`) open in the criteria editor, the same one `mxp webui` serves on its own ([exploit README](../exploit/README.md#the-web-ui-mxp-webui-and-in-tsqd)): **open the criteria editor** in the **Criteria** section of a test definition on the Datapacks tab (the criteria its exploit steps check, per step with the data each reads, the last result of their unit tests, and the scenarios no step uses), or **Open in the criteria editor** on such a file in the Editor. It completes and checks the scenarios as they are typed, with the keys of the test definition, and runs their unit tests on the tsqd host (one `mxp` process per case). Its changes are saved in the session and pushed with the rest.