testsuit 2.0.0__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.0 → testsuit-2.0.2}/CONTRIBUTING.md +4 -0
  2. {testsuit-2.0.0 → testsuit-2.0.2}/PKG-INFO +6 -2
  3. {testsuit-2.0.0 → testsuit-2.0.2}/README.md +4 -1
  4. {testsuit-2.0.0 → testsuit-2.0.2}/conda/meta.yaml +1 -0
  5. testsuit-2.0.2/docs/ai/testdef_prompt.txt +259 -0
  6. {testsuit-2.0.0 → testsuit-2.0.2}/pyproject.toml +2 -1
  7. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/cli/data2db.py +4 -2
  8. testsuit-2.0.2/src/testsuit/credentials.py +55 -0
  9. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/DataFileMgrs/ClickhouseFileMgr.py +5 -2
  10. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/DataFileMgrs/InfluxDbFileMgr.py +5 -2
  11. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/README.md +1 -1
  12. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/editor/plots.py +40 -7
  13. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/editor/service.py +9 -1
  14. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/reqs/__init__.py +2 -0
  15. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/reqs/backend.py +2 -2
  16. testsuit-2.0.2/src/testsuit/reqs/rest.py +285 -0
  17. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/reqs/sources.py +16 -11
  18. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/README.md +47 -14
  19. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/SPEC.md +15 -8
  20. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/api.py +43 -8
  21. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/editor.py +71 -5
  22. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/editor_api.py +17 -3
  23. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/editor_schemas.py +10 -5
  24. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/model.py +33 -0
  25. testsuit-2.0.0/src/testsuit/sequencer/ui/assets/index-C-N0zKcA.js → testsuit-2.0.2/src/testsuit/sequencer/ui/assets/index-CRk-UkCE.js +330 -332
  26. testsuit-2.0.2/src/testsuit/sequencer/ui/assets/index-CtluVUmc.css +1 -0
  27. testsuit-2.0.0/src/testsuit/sequencer/ui/assets/python-DKUrdut1.js → testsuit-2.0.2/src/testsuit/sequencer/ui/assets/python-CgCEf-3J.js +1 -1
  28. testsuit-2.0.0/src/testsuit/sequencer/ui/assets/yaml-NW0UjfDK.js → testsuit-2.0.2/src/testsuit/sequencer/ui/assets/yaml-ai95dmLi.js +1 -1
  29. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/ui/index.html +2 -2
  30. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit.egg-info/PKG-INFO +6 -2
  31. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit.egg-info/SOURCES.txt +8 -4
  32. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit.egg-info/requires.txt +1 -0
  33. testsuit-2.0.2/tests/credentials_t.py +47 -0
  34. {testsuit-2.0.0 → testsuit-2.0.2}/tests/criteria_editor_t.py +23 -0
  35. {testsuit-2.0.0 → testsuit-2.0.2}/tests/editor_t.py +5 -3
  36. {testsuit-2.0.0 → testsuit-2.0.2}/tests/plot_webui_t.py +51 -0
  37. {testsuit-2.0.0 → testsuit-2.0.2}/tests/reqs_t.py +133 -0
  38. {testsuit-2.0.0 → testsuit-2.0.2}/tests/sequencer_t.py +63 -4
  39. testsuit-2.0.2/ui/src/comments.tsx +96 -0
  40. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/editor/InventoryForm.tsx +3 -3
  41. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/editor/LibraryForm.tsx +2 -2
  42. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/editor/PipelineEditor.tsx +33 -5
  43. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/editor/RequirementsForm.tsx +49 -11
  44. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/editor/TestdefForm.tsx +17 -5
  45. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/editor/links.tsx +3 -3
  46. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/fields.tsx +6 -5
  47. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/files.tsx +129 -16
  48. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/kinds.tsx +4 -1
  49. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/navicons.tsx +9 -3
  50. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/pages/Campaigns.tsx +2 -1
  51. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/pages/Datapacks.tsx +18 -8
  52. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/pages/Lab.tsx +2 -1
  53. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/pages/Run.tsx +74 -18
  54. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/styles.css +60 -5
  55. testsuit-2.0.0/src/testsuit/sequencer/ui/assets/index-C4DBMEnE.css +0 -1
  56. testsuit-2.0.0/ui/src/comments.tsx +0 -47
  57. {testsuit-2.0.0 → testsuit-2.0.2}/.editorconfig +0 -0
  58. {testsuit-2.0.0 → testsuit-2.0.2}/.github/workflows/conda.yml +0 -0
  59. {testsuit-2.0.0 → testsuit-2.0.2}/.github/workflows/publish.yml +0 -0
  60. {testsuit-2.0.0 → testsuit-2.0.2}/.github/workflows/tests.yml +0 -0
  61. {testsuit-2.0.0 → testsuit-2.0.2}/.gitignore +0 -0
  62. {testsuit-2.0.0 → testsuit-2.0.2}/LICENSE +0 -0
  63. {testsuit-2.0.0 → testsuit-2.0.2}/conda/icon.png +0 -0
  64. {testsuit-2.0.0 → testsuit-2.0.2}/conda/icon.svg +0 -0
  65. {testsuit-2.0.0 → testsuit-2.0.2}/docs/diagrams/concepts.puml +0 -0
  66. {testsuit-2.0.0 → testsuit-2.0.2}/docs/diagrams/concepts.svg +0 -0
  67. {testsuit-2.0.0 → testsuit-2.0.2}/docs/diagrams/data_model.puml +0 -0
  68. {testsuit-2.0.0 → testsuit-2.0.2}/docs/diagrams/data_model.svg +0 -0
  69. {testsuit-2.0.0 → testsuit-2.0.2}/docs/diagrams/overview.puml +0 -0
  70. {testsuit-2.0.0 → testsuit-2.0.2}/docs/diagrams/overview.svg +0 -0
  71. {testsuit-2.0.0 → testsuit-2.0.2}/docs/diagrams/render.sh +0 -0
  72. {testsuit-2.0.0 → testsuit-2.0.2}/docs/diagrams/seq_cancel.puml +0 -0
  73. {testsuit-2.0.0 → testsuit-2.0.2}/docs/diagrams/seq_cancel.svg +0 -0
  74. {testsuit-2.0.0 → testsuit-2.0.2}/docs/diagrams/seq_editor.puml +0 -0
  75. {testsuit-2.0.0 → testsuit-2.0.2}/docs/diagrams/seq_editor.svg +0 -0
  76. {testsuit-2.0.0 → testsuit-2.0.2}/docs/diagrams/seq_run.puml +0 -0
  77. {testsuit-2.0.0 → testsuit-2.0.2}/docs/diagrams/seq_run.svg +0 -0
  78. {testsuit-2.0.0 → testsuit-2.0.2}/docs/diagrams/seq_submit.puml +0 -0
  79. {testsuit-2.0.0 → testsuit-2.0.2}/docs/diagrams/seq_submit.svg +0 -0
  80. {testsuit-2.0.0 → testsuit-2.0.2}/docs/diagrams/toytrain_lab.puml +0 -0
  81. {testsuit-2.0.0 → testsuit-2.0.2}/docs/diagrams/toytrain_lab.svg +0 -0
  82. {testsuit-2.0.0 → testsuit-2.0.2}/examples/config_extract_data_any.json +0 -0
  83. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/.dockerignore +0 -0
  84. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/.env.sample +0 -0
  85. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/.gitignore +0 -0
  86. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/Dockerfile +0 -0
  87. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/README.md +0 -0
  88. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/baseline_expected.yml +0 -0
  89. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/campaigns/toytrain_emulated.campaign.yml +0 -0
  90. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/campaigns/toytrain_regression.campaign.yml +0 -0
  91. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/release_store/README.md +0 -0
  92. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/release_store/toytrain-sim/v1.1.0/SIM.txt +0 -0
  93. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/release_store/toytrain-sim/v1.1.0/dataset.yml +0 -0
  94. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/release_store/toytrain-sw/v0.3.0/acquisition/APP.txt +0 -0
  95. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/release_store/toytrain-sw/v0.3.0/dataset.yml +0 -0
  96. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/release_store/toytrain-sw/v0.3.0/pilot/APP.txt +0 -0
  97. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/release_store/toytrain-sw/v0.3.0/pilot/FIRMWARE.txt +0 -0
  98. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/release_store/toytrain-sw/v0.3.0/telemetry/APP.txt +0 -0
  99. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/requirements.yml +0 -0
  100. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/setup/globals.yml +0 -0
  101. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/setup/platforms/emulated.yml +0 -0
  102. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/setup/platforms/sim_bench.yml +0 -0
  103. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/setup/scripts/check_data.py +0 -0
  104. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/setup/templates/acquisition.yml +0 -0
  105. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/setup/templates/piezo_sim.yml +0 -0
  106. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/setup/templates/pilot.yml +0 -0
  107. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/setup/templates/propulsion_sim.yml +0 -0
  108. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/setup/templates/telemetry.yml +0 -0
  109. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/setup/toytrain_setup.yml +0 -0
  110. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/front_contact/criteria/front_contact/front_contact.mexploit.yml +0 -0
  111. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/front_contact/scenario.yml +0 -0
  112. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/front_contact/testdef.yml +0 -0
  113. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/criteria/max_speed/max_speed.mexploit.yml +0 -0
  114. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/criteria_utests/max_speed/contact/propulsion.propj +0 -0
  115. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/criteria_utests/max_speed/contact/telemetry.csv +0 -0
  116. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/criteria_utests/max_speed/gap/propulsion.propj +0 -0
  117. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/criteria_utests/max_speed/gap/telemetry.csv +0 -0
  118. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/criteria_utests/max_speed/overspeed/propulsion.propj +0 -0
  119. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/criteria_utests/max_speed/overspeed/telemetry.csv +0 -0
  120. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/criteria_utests/max_speed/propulsion_over/propulsion.propj +0 -0
  121. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/criteria_utests/max_speed/propulsion_over/telemetry.csv +0 -0
  122. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/criteria_utests/max_speed/start_profile/propulsion.propj +0 -0
  123. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/criteria_utests/max_speed/start_profile/telemetry.csv +0 -0
  124. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/criteria_utests/max_speed/utests.yml +0 -0
  125. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/scenario.yml +0 -0
  126. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/datapack/testdef/max_speed/testdef.yml +0 -0
  127. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/docker-compose.yml +0 -0
  128. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/lab/classes/toytrain.yml +0 -0
  129. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/lab/classes_emulated/toytrain.yml +0 -0
  130. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/lab/roles/toytrain.yml +0 -0
  131. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/lab/toytrain_emulated.yml +0 -0
  132. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/lab/toytrain_lab.yml +0 -0
  133. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/pyproject.toml +0 -0
  134. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/sample/data/front_contact/propulsion.propj +0 -0
  135. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/sample/data/front_contact/telemetry.csv +0 -0
  136. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/sample/data/max_speed/propulsion.propj +0 -0
  137. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/sample/data/max_speed/telemetry.csv +0 -0
  138. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/sample/exploit_front_contact.yml +0 -0
  139. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/sample/exploit_max_speed.yml +0 -0
  140. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/sample/make_runs.py +0 -0
  141. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/src/toytrain/__init__.py +0 -0
  142. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/src/toytrain/assets/toytrain_logo.svg +0 -0
  143. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/src/toytrain/checks.py +0 -0
  144. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/src/toytrain/cli.py +0 -0
  145. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/src/toytrain/criteria.py +0 -0
  146. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/src/toytrain/filemgrs.py +0 -0
  147. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/src/toytrain/importer.py +0 -0
  148. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/src/toytrain/plugin.py +0 -0
  149. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/tests/conftest.py +0 -0
  150. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/tests/etc/exploit_nok.yml +0 -0
  151. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/tests/etc/overspeed/overspeed.sim.yml +0 -0
  152. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/tests/test_cli.py +0 -0
  153. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/tests/test_criteria.py +0 -0
  154. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/tests/test_criteria_utests.py +0 -0
  155. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/tests/test_datapack.py +0 -0
  156. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/tests/test_exploit_runner.py +0 -0
  157. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/tests/test_formats.py +0 -0
  158. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/tsq.dev.yml +0 -0
  159. {testsuit-2.0.0 → testsuit-2.0.2}/examples/toytrain/tsq.yml +0 -0
  160. {testsuit-2.0.0 → testsuit-2.0.2}/setup.cfg +0 -0
  161. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/__init__.py +0 -0
  162. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/cli/__init__.py +0 -0
  163. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/cli/apply_clock_correction.py +0 -0
  164. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/cli/data2h5.py +0 -0
  165. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/cli/datapack.py +0 -0
  166. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/cli/evalfile.py +0 -0
  167. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/cli/exploit_runner.py +0 -0
  168. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/cli/extract_data_any.py +0 -0
  169. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/cli/extract_data_flags.py +0 -0
  170. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/cli/mxp.py +0 -0
  171. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/cli/mxp_tools.py +0 -0
  172. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/cli/notebooks.py +0 -0
  173. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/cli/reqs.py +0 -0
  174. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/cli/tsq.py +0 -0
  175. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/DataFileMgrs/AFileMgr.py +0 -0
  176. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/DataFileMgrs/CsvFileMgr.py +0 -0
  177. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/DataFileMgrs/DxdFileMgr.py +0 -0
  178. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/DataFileMgrs/FolderParamMgr.py +0 -0
  179. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/DataFileMgrs/H5FileMgr.py +0 -0
  180. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/DataFileMgrs/MdfFileMgr.py +0 -0
  181. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/DataFileMgrs/TdmsFileMgr.py +0 -0
  182. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/DataFileMgrs/UdbfFileMgr.py +0 -0
  183. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/DataFileMgrs/__init__.py +0 -0
  184. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/DataFileMgrs/formats.py +0 -0
  185. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/DataframeToHdf5.py +0 -0
  186. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/__init__.py +0 -0
  187. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/data2db.py +0 -0
  188. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/datapack/ADataImporter.py +0 -0
  189. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/datapack/GitImporter.py +0 -0
  190. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/datapack/README.md +0 -0
  191. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/datapack/__init__.py +0 -0
  192. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/datapack/baseline.py +0 -0
  193. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/datapack/campaign.py +0 -0
  194. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/datapack/datapack_tools.py +0 -0
  195. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/datapack/generators.py +0 -0
  196. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/datapack/importers.py +0 -0
  197. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/datapack/model.py +0 -0
  198. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/datapack/processors.py +0 -0
  199. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/datapack/procs.py +0 -0
  200. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/datapack/templating.py +0 -0
  201. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/datatoolbox.py +0 -0
  202. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/h5diff.py +0 -0
  203. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/plotBackends/__init__.py +0 -0
  204. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/plotBackends/common.py +0 -0
  205. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/plotBackends/matplotlibBackend.py +0 -0
  206. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/plotBackends/plotlyBackend.py +0 -0
  207. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/datatools/plotHelpers.py +0 -0
  208. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/editor/__init__.py +0 -0
  209. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/editor/routes.py +0 -0
  210. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/editor/runs.py +0 -0
  211. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/editor/standalone.py +0 -0
  212. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/__init__.py +0 -0
  213. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/conftest.py +0 -0
  214. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/conftest_scn_template.py +0 -0
  215. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/criteria.py +0 -0
  216. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/describe.py +0 -0
  217. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/helpers.py +0 -0
  218. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/includes.py +0 -0
  219. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/lint.py +0 -0
  220. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/mexploit.py +0 -0
  221. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/registry.py +0 -0
  222. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/spec.py +0 -0
  223. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/utest.py +0 -0
  224. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/utest_plugin.py +0 -0
  225. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/mexploit/vscode.py +0 -0
  226. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/runner/__init__.py +0 -0
  227. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/runner/exploit_runner.py +0 -0
  228. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/runner/report.py +0 -0
  229. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/runner/report_html.py +0 -0
  230. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/runner/report_libs/README.md +0 -0
  231. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/runner/report_libs/showdown.min.js +0 -0
  232. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/runner/report_libs/toastui-editor-all.min.js +0 -0
  233. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/runner/report_libs/toastui-editor.min.css +0 -0
  234. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/runner/runProcess.py +0 -0
  235. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/exploit/runner/utils.py +0 -0
  236. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/jupytertools/FileDialog.py +0 -0
  237. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/jupytertools/JupyterGui.py +0 -0
  238. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/jupytertools/MexploitJupyterGui.py +0 -0
  239. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/jupytertools/PlotJupyterGui.py +0 -0
  240. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/jupytertools/__init__.py +0 -0
  241. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/jupytertools/h5ConvertJupyterGui.py +0 -0
  242. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/jupytertools/install.py +0 -0
  243. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/jupytertools/notebooks/__init__.py +0 -0
  244. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/jupytertools/notebooks/data_plot.ipynb +0 -0
  245. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/jupytertools/notebooks/h5_convert.ipynb +0 -0
  246. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/jupytertools/notebooks/mexploit.ipynb +0 -0
  247. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/misc/MonitorProgress.py +0 -0
  248. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/misc/__init__.py +0 -0
  249. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/misc/files.py +0 -0
  250. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/misc/logger.py +0 -0
  251. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/plugins.py +0 -0
  252. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/reqs/coverage.py +0 -0
  253. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/reqs/links.py +0 -0
  254. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/reqs/model.py +0 -0
  255. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/reqs/render.py +0 -0
  256. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/reqs/reqif.py +0 -0
  257. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/reqs/snapshot.py +0 -0
  258. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/__init__.py +0 -0
  259. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/benchmark.md +0 -0
  260. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/campaigns.py +0 -0
  261. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/cmdparams.py +0 -0
  262. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/config.py +0 -0
  263. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/daemon.py +0 -0
  264. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/engine.py +0 -0
  265. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/exploitstep.py +0 -0
  266. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/gitlab/README.md +0 -0
  267. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/gitlab/cleanup.sh +0 -0
  268. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/gitlab/config.sh +0 -0
  269. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/gitlab/prepare.sh +0 -0
  270. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/gitlab/run.sh +0 -0
  271. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/httpcall.py +0 -0
  272. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/intake.py +0 -0
  273. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/inventory.py +0 -0
  274. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/lab.py +0 -0
  275. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/labview.py +0 -0
  276. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/library.py +0 -0
  277. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/logbuffer.py +0 -0
  278. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/manualstep.py +0 -0
  279. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/monitor.py +0 -0
  280. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/registry.py +0 -0
  281. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/results.py +0 -0
  282. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/runlog.py +0 -0
  283. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/scheduler.py +0 -0
  284. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/sequencer.py +0 -0
  285. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/store.py +0 -0
  286. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/transports/__init__.py +0 -0
  287. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/transports/local.py +0 -0
  288. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/transports/ssh.py +0 -0
  289. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/ui/assets/codicon-DCmgc-ay.ttf +0 -0
  290. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/ui/assets/editor.worker-B4pQIWZD.js +0 -0
  291. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/ui/assets/ini-BvajGCUy.js +0 -0
  292. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/ui/assets/markdown-B811l8j2.js +0 -0
  293. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/ui/assets/shell-CsDZo4DB.js +0 -0
  294. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/ui/assets/yaml.worker-0FgWxutO.js +0 -0
  295. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/util.py +0 -0
  296. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit/sequencer/yamledit.py +0 -0
  297. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit.egg-info/dependency_links.txt +0 -0
  298. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit.egg-info/entry_points.txt +0 -0
  299. {testsuit-2.0.0 → testsuit-2.0.2}/src/testsuit.egg-info/top_level.txt +0 -0
  300. {testsuit-2.0.0 → testsuit-2.0.2}/tests/campaign_t.py +0 -0
  301. {testsuit-2.0.0 → testsuit-2.0.2}/tests/clickhousefilemgr_t.py +0 -0
  302. {testsuit-2.0.0 → testsuit-2.0.2}/tests/cmdparams_t.py +0 -0
  303. {testsuit-2.0.0 → testsuit-2.0.2}/tests/data2db_t.py +0 -0
  304. {testsuit-2.0.0 → testsuit-2.0.2}/tests/datapack_t.py +0 -0
  305. {testsuit-2.0.0 → testsuit-2.0.2}/tests/datatoolbox_t.py +0 -0
  306. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/data/csv/CorridorParam.csv +0 -0
  307. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/data/csv/National_Instruments.csv +0 -0
  308. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/data/csv/channels_recording.csv +0 -0
  309. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/data/csv/clocks.csv +0 -0
  310. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/data/csv/demo_exploit.clean_01.csv +0 -0
  311. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/data/csv/demo_exploit.clean_02.csv +0 -0
  312. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/data/csv/flags.csv +0 -0
  313. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/data/csv/influxdb.csv +0 -0
  314. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/data/csv/test_date_at_the_end.csv +0 -0
  315. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/datapack/setup/globals.yml +0 -0
  316. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/datapack/setup/includes/header.txt +0 -0
  317. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/datapack/setup/utest_ref_files/conf_dir/limits.yml +0 -0
  318. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/datapack/setup/utest_ref_files/ref1.txt +0 -0
  319. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/datapack/setup/utest_ref_files/ref2.txt +0 -0
  320. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/datapack/setup/utest_setup.yml +0 -0
  321. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/datapack/testdef/datapack_utest.yml +0 -0
  322. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/datapack/testdef/local_ref_files/my_ref_file.txt +0 -0
  323. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/datapack/testdef/overrides.yml +0 -0
  324. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/datapack/testdef/values.yml +0 -0
  325. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/exploit_runner/exploit_config_NOK.yml +0 -0
  326. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/exploit_runner/exploit_config_NOK_comments.yml +0 -0
  327. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/exploit_runner/exploit_config_OK.yml +0 -0
  328. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/exploit_runner/exploit_config_OK_comments.yml +0 -0
  329. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/exploit_runner/exploit_shiftDateConst_OK.yml +0 -0
  330. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/exploit_runner/exploit_shiftDateParam_OK.yml +0 -0
  331. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/compute_clock_drift/clock_drift.mexploit.yml +0 -0
  332. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/session_NOK/testrun_01/testsuite01.mexploit.yaml +0 -0
  333. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/session_NOK/testrun_02/testsuite_02.mexploit.yaml +0 -0
  334. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/session_OK/testrun_01/testsuite01.mexploit.yml +0 -0
  335. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/session_OK/testrun_01/testsuite02.mexploit.yml +0 -0
  336. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/session_OK/testrun_01/testsuite03.mexploit.yaml +0 -0
  337. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/session_OK/testrun_01/testsuite04.mexploit.yaml +0 -0
  338. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/session_OK/testrun_02/testsuite01.mexploit.yml +0 -0
  339. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/session_OK/testrun_02/testsuite02.mexploit.yml +0 -0
  340. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/session_OK/testrun_02/testsuite03.mexploit.yaml +0 -0
  341. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/shiftDateConst_OK/param1_partially_shifted.mexploit.yml +0 -0
  342. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/shiftDateConst_OK/param2_not_shifted.mexploit.yml +0 -0
  343. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/shiftDateParam_OK/param1_partially_shifted.mexploit.yml +0 -0
  344. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/exploit_runner/scenario/shiftDateParam_OK/param2_not_shifted.mexploit.yml +0 -0
  345. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/exploit_runner/values.yml +0 -0
  346. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/mexploit/custom_exploit/custom_criteria.py +0 -0
  347. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/mexploit/custom_exploit/custom_helpers.py +0 -0
  348. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_NOK_check_param_at_rst/1_check_param_at_rest.mexploit.yaml +0 -0
  349. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_NOK_corridor/0_corridor.mexploit.yaml +0 -0
  350. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_NOK_registered_crit/1_registered.mexploit.yaml +0 -0
  351. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_NOK_sequence/0_sequence.mexploit.yaml +0 -0
  352. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_NOK_sequence_multi/0_sequence.mexploit.yaml +0 -0
  353. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_OK_custom_crit/1_custom.mexploit.yaml +0 -0
  354. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_OK_main_functions/0_time_origin.mexploit.yml +0 -0
  355. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_OK_main_functions/1_computed_param.mexploit.yml +0 -0
  356. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_OK_main_functions/1_computed_param_multiline.mexploit.yml +0 -0
  357. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_OK_main_functions/1_corridor.mexploit.yaml +0 -0
  358. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_OK_main_functions/1_sequence.mexploit.yaml +0 -0
  359. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_OK_main_functions/2_plot.mexploit.yaml +0 -0
  360. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_OK_main_functions/3_helper_dropdups.mexploit.yml +0 -0
  361. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_OK_main_functions/3_helper_mask_values_on_event.mexploit.yml +0 -0
  362. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/mexploit/scenarii/mxp_OK_registered_crit/1_registered.mexploit.yaml +0 -0
  363. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/mexploit/utests/limits/high/values.csv +0 -0
  364. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/mexploit/utests/limits/limits.yml +0 -0
  365. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/mexploit/utests/limits/low/values.csv +0 -0
  366. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/mexploit/utests/limits/scenario/1_limits.mexploit.yml +0 -0
  367. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/mexploit/utests/limits/utests.yml +0 -0
  368. {testsuit-2.0.0 → testsuit-2.0.2}/tests/etc/misc/flags_desc.yml +0 -0
  369. {testsuit-2.0.0 → testsuit-2.0.2}/tests/exploit_runner_crash_t.py +0 -0
  370. {testsuit-2.0.0 → testsuit-2.0.2}/tests/exploit_runner_t.py +0 -0
  371. {testsuit-2.0.0 → testsuit-2.0.2}/tests/exploit_webui_t.py +0 -0
  372. {testsuit-2.0.0 → testsuit-2.0.2}/tests/extensions_t.py +0 -0
  373. {testsuit-2.0.0 → testsuit-2.0.2}/tests/h5filemgr_t.py +0 -0
  374. {testsuit-2.0.0 → testsuit-2.0.2}/tests/license_t.py +0 -0
  375. {testsuit-2.0.0 → testsuit-2.0.2}/tests/loaddata_t.py +0 -0
  376. {testsuit-2.0.0 → testsuit-2.0.2}/tests/logbuffer_t.py +0 -0
  377. {testsuit-2.0.0 → testsuit-2.0.2}/tests/manualstep_t.py +0 -0
  378. {testsuit-2.0.0 → testsuit-2.0.2}/tests/mexploit_t.py +0 -0
  379. {testsuit-2.0.0 → testsuit-2.0.2}/tests/mexploit_tools_t.py +0 -0
  380. {testsuit-2.0.0 → testsuit-2.0.2}/tests/misc_t.py +0 -0
  381. {testsuit-2.0.0 → testsuit-2.0.2}/tests/notebooks_t.py +0 -0
  382. {testsuit-2.0.0 → testsuit-2.0.2}/tests/plot_backends_t.py +0 -0
  383. {testsuit-2.0.0 → testsuit-2.0.2}/tests/ref/loaddata_test/National_Instruments.h5 +0 -0
  384. {testsuit-2.0.0 → testsuit-2.0.2}/tests/ref/loaddata_test/channels_recording.h5 +0 -0
  385. {testsuit-2.0.0 → testsuit-2.0.2}/tests/ref/loaddata_test/flags_flags.h5 +0 -0
  386. {testsuit-2.0.0 → testsuit-2.0.2}/tests/ref/loaddata_test/influxdb.h5 +0 -0
  387. {testsuit-2.0.0 → testsuit-2.0.2}/tests/ref/loaddata_test/sample_csv.h5 +0 -0
  388. {testsuit-2.0.0 → testsuit-2.0.2}/tests/ref/loaddata_test/sample_csv_date_at_the_end.h5 +0 -0
  389. {testsuit-2.0.0 → testsuit-2.0.2}/tests/report_html_t.py +0 -0
  390. {testsuit-2.0.0 → testsuit-2.0.2}/tests/tdms_t.py +0 -0
  391. {testsuit-2.0.0 → testsuit-2.0.2}/tests/templating_t.py +0 -0
  392. {testsuit-2.0.0 → testsuit-2.0.2}/ui/e2e/smoke.mjs +0 -0
  393. {testsuit-2.0.0 → testsuit-2.0.2}/ui/index.html +0 -0
  394. {testsuit-2.0.0 → testsuit-2.0.2}/ui/package-lock.json +0 -0
  395. {testsuit-2.0.0 → testsuit-2.0.2}/ui/package.json +0 -0
  396. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/api.ts +0 -0
  397. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/criteria/CriteriaEditor.tsx +0 -0
  398. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/criteria/CriteriaPage.tsx +0 -0
  399. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/criteria/DataView.tsx +0 -0
  400. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/criteria/FolderPicker.tsx +0 -0
  401. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/criteria/UnitTests.tsx +0 -0
  402. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/criteria/adapter.ts +0 -0
  403. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/criteria/expressions.ts +0 -0
  404. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/criteria/scenario.ts +0 -0
  405. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/criteria/utestsSchema.ts +0 -0
  406. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/editor/DictionaryDialog.tsx +0 -0
  407. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/editor/EditorHome.tsx +0 -0
  408. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/editor/Generate.tsx +0 -0
  409. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/editor/KeysExplorer.tsx +0 -0
  410. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/editor/LabPicture.tsx +0 -0
  411. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/editor/Publish.tsx +0 -0
  412. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/editor/Session.tsx +0 -0
  413. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/editor/SetupForm.tsx +0 -0
  414. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/editor/TemplateEditor.tsx +0 -0
  415. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/editor/commands.tsx +0 -0
  416. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/editor/state.tsx +0 -0
  417. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/editor/wizards.tsx +0 -0
  418. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/editor/workspace.tsx +0 -0
  419. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/exploit/ExploitPage.tsx +0 -0
  420. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/graph.tsx +0 -0
  421. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/keysbyhand.tsx +0 -0
  422. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/labicons.tsx +0 -0
  423. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/main.tsx +0 -0
  424. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/monaco.tsx +0 -0
  425. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/pages/Config.tsx +0 -0
  426. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/pages/LabGraph.tsx +0 -0
  427. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/pages/Logs.tsx +0 -0
  428. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/pages/Manual.tsx +0 -0
  429. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/pages/Operator.tsx +0 -0
  430. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/pages/Queue.tsx +0 -0
  431. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/pages/Requirements.tsx +0 -0
  432. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/pages/Runs.tsx +0 -0
  433. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/plot/PlotPage.tsx +0 -0
  434. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/title.ts +0 -0
  435. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/util.tsx +0 -0
  436. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/vendor.d.ts +0 -0
  437. {testsuit-2.0.0 → testsuit-2.0.2}/ui/src/yaml.worker.ts +0 -0
  438. {testsuit-2.0.0 → testsuit-2.0.2}/ui/tsconfig.json +0 -0
  439. {testsuit-2.0.0 → 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.0
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
@@ -35,6 +35,7 @@ Requires-Dist: python-dateutil>=2.8
35
35
  Requires-Dist: pyarrow>=15
36
36
  Requires-Dist: Jinja2>=3.1
37
37
  Requires-Dist: pydantic>=2.5
38
+ Requires-Dist: jq>=1.6
38
39
  Provides-Extra: plotly
39
40
  Requires-Dist: anywidget>=0.9; extra == "plotly"
40
41
  Provides-Extra: jupyter
@@ -204,7 +205,7 @@ setup_config: sim_bench
204
205
  dictionaries: [scenario.yml]
205
206
  ```
206
207
 
207
- 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.
208
209
 
209
210
  ## Repository layout
210
211
 
@@ -223,6 +224,7 @@ src/testsuit/ the installable package
223
224
  misc/ logging, progress reporting, file helpers
224
225
  cli/ command-line tools (see below)
225
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
226
228
  examples/toytrain/ the example project: a toy train's test environment (library extending testsuit, sequencer configuration)
227
229
  tests/ pytest suite (*_t.py)
228
230
  etc/ input data, scenarios and configs used by the tests
@@ -249,6 +251,8 @@ Installing the package puts these commands on your `PATH`. Each prints its full
249
251
  | `evalfile` | render a Jinja2 template file with keys from YAML dictionaries |
250
252
  | `testsuit-notebooks` | copy the Jupyter GUI notebooks into a folder, optionally open Jupyter |
251
253
 
254
+ **Secrets.** Wherever a password or a token is given (the `token` of an InfluxDB config file, the `password` of a ClickHouse one, `data2db --token`, the credentials of a requirements source), it can be a reference rather than the secret itself: `env:<VARIABLE>` reads an environment variable, and `file:<path>` the content of a file, such as a Docker or Kubernetes secret (`token: file:/run/secrets/influx_token`; trailing white space dropped; a relative path is relative to the config file, or to the current folder on the command line). The sources file of the requirements accepts references only.
255
+
252
256
  ## Using the library
253
257
 
254
258
  ```python
@@ -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
@@ -183,6 +184,8 @@ Installing the package puts these commands on your `PATH`. Each prints its full
183
184
  | `evalfile` | render a Jinja2 template file with keys from YAML dictionaries |
184
185
  | `testsuit-notebooks` | copy the Jupyter GUI notebooks into a folder, optionally open Jupyter |
185
186
 
187
+ **Secrets.** Wherever a password or a token is given (the `token` of an InfluxDB config file, the `password` of a ClickHouse one, `data2db --token`, the credentials of a requirements source), it can be a reference rather than the secret itself: `env:<VARIABLE>` reads an environment variable, and `file:<path>` the content of a file, such as a Docker or Kubernetes secret (`token: file:/run/secrets/influx_token`; trailing white space dropped; a relative path is relative to the config file, or to the current folder on the command line). The sources file of the requirements accepts references only.
188
+
186
189
  ## Using the library
187
190
 
188
191
  ```python
@@ -78,6 +78,7 @@ requirements:
78
78
  - pyarrow >=15
79
79
  - jinja2 >=3.1
80
80
  - pydantic >=2.5
81
+ - jq.py >=1.6 # the jq Python bindings (PyPI: jq): the rest requirements backend
81
82
  # the criteria editor (testsuit[editor]): the web UI of the app
82
83
  - fastapi >=0.110
83
84
  - uvicorn >=0.29
@@ -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}
@@ -38,7 +38,8 @@ dependencies = [
38
38
  "python-dateutil>=2.8",
39
39
  "pyarrow>=15",
40
40
  "Jinja2>=3.1",
41
- "pydantic>=2.5"
41
+ "pydantic>=2.5",
42
+ "jq>=1.6"
42
43
  ]
43
44
 
44
45
  [project.optional-dependencies]
@@ -20,6 +20,7 @@ from testsuit.plugins import load_plugins
20
20
  from testsuit.datatools.DataFileMgrs.AFileMgr import enable_pandas_display_helpers
21
21
  from testsuit.misc.MonitorProgress import MonitorProgress,consoleRichProgressCb
22
22
  from testsuit.datatools.data2db import create_data2db
23
+ from testsuit.credentials import resolve_secret
23
24
  from testsuit.misc.logger import create_logger,get_logger
24
25
 
25
26
 
@@ -67,7 +68,8 @@ def main():
67
68
  formatter_class=argparse.RawTextHelpFormatter)
68
69
  parser.add_argument('sourceFolderOrFile', metavar="FolderOrFile", help="source folder or file where to scan data files",type=isInputReadable)
69
70
  parser.add_argument('confJson', help="Conf for DB parameters. See up there of details about expected contents",type=isInputReadable)
70
- parser.add_argument('-t','--token',help="DB password or token")
71
+ parser.add_argument('-t','--token',help="DB password or token: env:<VARIABLE> or file:<path> (such as a Docker secret) "
72
+ "to read it from there rather than give it on the command line")
71
73
  parser.add_argument("--test",action='store_true', default=False, help="Dry-run: does not actually inject data")
72
74
  parser.add_argument('-d',"--debug",action='store_true', default=False, help="Show debug messages")
73
75
  parser.add_argument('--extensions',type=lambda s: s.split(","),metavar='ext1,ext2,...',
@@ -83,7 +85,7 @@ def main():
83
85
 
84
86
  monitorProgress=MonitorProgress(progressCb=consoleRichProgressCb,name="data2db")
85
87
  dbHandler = create_data2db(conf["db"]["dbtype"])
86
- rst = dbHandler.data2db(args.sourceFolderOrFile,conf,args.extensions,token=args.token,dryRun=args.test,monitorProgress=monitorProgress,silent=True)
88
+ rst = dbHandler.data2db(args.sourceFolderOrFile,conf,args.extensions,token=resolve_secret(args.token,what='--token'),dryRun=args.test,monitorProgress=monitorProgress,silent=True)
87
89
 
88
90
  if rst == True:
89
91
  sys.exit(0)
@@ -0,0 +1,55 @@
1
+ # Copyright (C) 2026 Laurent Millet-Lacombe
2
+ # SPDX-License-Identifier: AGPL-3.0-or-later
3
+ #
4
+ # This file is part of testsuit.
5
+ # testsuit is free software: you can redistribute it and/or modify it under the terms of the GNU Affero
6
+ # General Public License as published by the Free Software Foundation, either version 3 of the License,
7
+ # or (at your option) any later version.
8
+ # testsuit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
9
+ # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General
10
+ # Public License for more details.
11
+ # You should have received a copy of the GNU Affero General Public License along with testsuit. If not,
12
+ # see <https://www.gnu.org/licenses/>.
13
+
14
+ """Secrets given by reference: wherever testsuit reads a password or a token from a configuration file or the command
15
+ line, the value can be ``env:<VARIABLE>`` (an environment variable) or ``file:<path>`` (the content of a file, such as a
16
+ Docker or Kubernetes secret ``/run/secrets/<name>``; trailing white space dropped; a relative path is relative to the
17
+ configuration file, or the current folder on the command line), so that it is never written where it would be shared.
18
+ """
19
+ from __future__ import annotations
20
+
21
+ import os
22
+ import re
23
+ from pathlib import Path
24
+ from typing import Any
25
+
26
+ _ENV = re.compile(r"^env:\s*([A-Za-z_][A-Za-z0-9_]*)\s*$")
27
+
28
+
29
+ class CredentialError(ValueError):
30
+ """A secret given by reference cannot be read: its variable is not set, or its file not readable."""
31
+
32
+
33
+ def is_reference(value: Any) -> bool:
34
+ return isinstance(value, str) and (value.startswith("env:") or value.startswith("file:"))
35
+
36
+
37
+ def resolve_secret(value: Any, base_dir: str | Path | None = None, what: str = "secret") -> Any:
38
+ """The secret a value names: ``env:<VARIABLE>`` or ``file:<path>`` read now; any other value as it is (a literal,
39
+ or None)."""
40
+ if not is_reference(value):
41
+ return value
42
+ if value.startswith("env:"):
43
+ m = _ENV.match(value)
44
+ if not m:
45
+ raise CredentialError(f"{what}: '{value}' is not 'env:<VARIABLE>'")
46
+ if m[1] not in os.environ:
47
+ raise CredentialError(f"{what}: environment variable '{m[1]}' is not set")
48
+ return os.environ[m[1]]
49
+ path = Path(os.path.expanduser(value[5:].strip()))
50
+ if not path.is_absolute():
51
+ path = Path(base_dir or Path.cwd()) / path
52
+ try:
53
+ return path.read_text(encoding="utf-8").rstrip()
54
+ except (OSError, UnicodeDecodeError) as e:
55
+ raise CredentialError(f"{what}: file '{path}' is not readable ({getattr(e, 'strerror', None) or e})") from e
@@ -12,6 +12,7 @@
12
12
  # see <https://www.gnu.org/licenses/>.
13
13
 
14
14
  import yaml
15
+ import os
15
16
  import re
16
17
  import threading
17
18
  from typing import Any
@@ -24,6 +25,7 @@ from testsuit.misc.logger import get_logger
24
25
  from testsuit.misc.MonitorProgress import MonitorProgress
25
26
 
26
27
  from testsuit.datatools.DataFileMgrs.AFileMgr import AFileMgr
28
+ from testsuit.credentials import resolve_secret
27
29
 
28
30
 
29
31
  class ClickhouseFileMgr(AFileMgr):
@@ -41,7 +43,7 @@ class ClickhouseFileMgr(AFileMgr):
41
43
  host: clickhouse # or url: http://clickhouse:9000 (same as data2db conf)
42
44
  port: 9000 # OPTIONAL
43
45
  user: default # OPTIONAL
44
- password: ... # OPTIONAL
46
+ password: ... # OPTIONAL: env:<VARIABLE> or file:<path> (a Docker secret) rather than written here
45
47
  database: testDb
46
48
  table: testTable # regex, might match several tables of the database
47
49
  timestampColumn: ts # OPTIONAL
@@ -78,7 +80,8 @@ class ClickhouseFileMgr(AFileMgr):
78
80
  if m.group(2): self._port = int(m.group(2))
79
81
  self._port = int(config.get('port', self._port))
80
82
  self._user = config.get('user', self._user)
81
- self._password = config.get('password')
83
+ self._password = resolve_secret(config.get('password'), os.path.dirname(os.path.abspath(self.getFileName())),
84
+ f"'{self.getFileName()}': password")
82
85
  self._database = config.get('database')
83
86
  self._table = config.get('table')
84
87
  self._tsCol = config.get('timestampColumn', self._tsCol)
@@ -22,8 +22,11 @@ from testsuit.misc.MonitorProgress import MonitorProgress
22
22
 
23
23
  from testsuit.datatools.DataFileMgrs.AFileMgr import AFileMgr
24
24
 
25
+ import os
25
26
  import re
26
27
 
28
+ from testsuit.credentials import resolve_secret
29
+
27
30
  class InfluxDbV3FileMgr(AFileMgr):
28
31
  """Uses a YML description as a pseudo data file to access DB contents."""
29
32
  def __init__(self, filename: str, fileIdx: int) -> None:
@@ -44,7 +47,7 @@ class InfluxDbV3FileMgr(AFileMgr):
44
47
  with open(self.getFileName()) as f:
45
48
  config = yaml.safe_load(f)
46
49
  self._host = config.get('host')
47
- self._token = config.get('token')
50
+ self._token = resolve_secret(config.get('token'), os.path.dirname(os.path.abspath(self.getFileName())), f"'{self.getFileName()}': token")
48
51
  self._org = config.get('org')
49
52
  self._database = config.get('database') # Changed from 'bucket'
50
53
  self._table = config.get('table')
@@ -558,7 +561,7 @@ class InfluxDbV2FileMgr(AFileMgr):
558
561
  with open(self.getFileName()) as f:
559
562
  config = yaml.safe_load(f)
560
563
  self._host = config.get('host')
561
- self._token = config.get('token')
564
+ self._token = resolve_secret(config.get('token'), os.path.dirname(os.path.abspath(self.getFileName())), f"'{self.getFileName()}': token")
562
565
  self._org = config.get('org')
563
566
  self._bucket = config.get('bucket')
564
567
  self._measurement = config.get('measurement')
@@ -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