evaltrack 0.3.0__tar.gz → 0.5.0__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 (262) hide show
  1. {evaltrack-0.3.0 → evaltrack-0.5.0}/.gitignore +1 -0
  2. {evaltrack-0.3.0 → evaltrack-0.5.0}/CHANGELOG.md +36 -1
  3. {evaltrack-0.3.0 → evaltrack-0.5.0}/CONTRIBUTING.md +3 -1
  4. {evaltrack-0.3.0 → evaltrack-0.5.0}/PKG-INFO +7 -4
  5. {evaltrack-0.3.0 → evaltrack-0.5.0}/README.md +5 -3
  6. evaltrack-0.5.0/docs/ci-cd.md +393 -0
  7. {evaltrack-0.3.0 → evaltrack-0.5.0}/docs/cli.md +29 -4
  8. {evaltrack-0.3.0 → evaltrack-0.5.0}/docs/configuration.md +5 -5
  9. {evaltrack-0.3.0 → evaltrack-0.5.0}/docs/flakiness.md +3 -3
  10. {evaltrack-0.3.0 → evaltrack-0.5.0}/docs/getting-started.md +9 -7
  11. {evaltrack-0.3.0 → evaltrack-0.5.0}/docs/index.md +6 -4
  12. {evaltrack-0.3.0 → evaltrack-0.5.0}/docs/repositories.md +11 -7
  13. {evaltrack-0.3.0 → evaltrack-0.5.0}/docs/roadmap.md +0 -6
  14. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/cli.py +236 -30
  15. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/core/run_record.py +11 -2
  16. evaltrack-0.5.0/evaltrack/report/__init__.py +1 -0
  17. evaltrack-0.5.0/evaltrack/report/page.py +205 -0
  18. evaltrack-0.5.0/evaltrack/report/static/report.html +77 -0
  19. evaltrack-0.5.0/evaltrack/ui/__init__.py +1 -0
  20. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/ui/app.py +12 -13
  21. evaltrack-0.5.0/evaltrack/ui/models.py +45 -0
  22. evaltrack-0.5.0/evaltrack/ui/routes/history.py +35 -0
  23. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/ui/routes/refs.py +10 -27
  24. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/ui/routes/runs.py +43 -19
  25. evaltrack-0.3.0/evaltrack/ui/static/assets/index-BZO2JqWB.css → evaltrack-0.5.0/evaltrack/ui/static/assets/index-C64eCxny.css +1 -1
  26. evaltrack-0.5.0/evaltrack/ui/static/assets/index-CdxqKllv.js +56 -0
  27. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/ui/static/index.html +2 -2
  28. evaltrack-0.5.0/evaltrack/views/__init__.py +2 -0
  29. evaltrack-0.5.0/evaltrack/views/mainline.py +174 -0
  30. evaltrack-0.5.0/evaltrack/views/models.py +37 -0
  31. evaltrack-0.5.0/evaltrack/views/refs.py +41 -0
  32. {evaltrack-0.3.0/evaltrack/ui → evaltrack-0.5.0/evaltrack/views}/run_view.py +24 -16
  33. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/README.md +5 -1
  34. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/eslint.config.js +19 -0
  35. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/package-lock.json +99 -0
  36. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/package.json +2 -1
  37. evaltrack-0.5.0/frontend/report.html +21 -0
  38. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/App.tsx +12 -8
  39. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/api.test.ts +15 -1
  40. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/api.ts +10 -0
  41. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/baseline.test.ts +27 -5
  42. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/baseline.ts +18 -10
  43. evaltrack-0.5.0/frontend/src/components/Brand.tsx +24 -0
  44. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/components/RunDetail.tsx +88 -72
  45. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/components/RunDiff.tsx +27 -3
  46. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/components/Sidebar.tsx +7 -23
  47. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/deferred.ts +18 -9
  48. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/index.css +28 -0
  49. evaltrack-0.5.0/frontend/src/report.tsx +187 -0
  50. evaltrack-0.5.0/frontend/src/reportData.test.ts +152 -0
  51. evaltrack-0.5.0/frontend/src/reportData.ts +106 -0
  52. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/tsconfig.json +1 -1
  53. evaltrack-0.5.0/frontend/vite.report.config.ts +23 -0
  54. evaltrack-0.5.0/hatch_build.py +42 -0
  55. {evaltrack-0.3.0 → evaltrack-0.5.0}/pyproject.toml +9 -5
  56. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/cli/test_promote.py +21 -1
  57. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/cli/test_push.py +22 -1
  58. evaltrack-0.5.0/tests/cli/test_report.py +415 -0
  59. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/cli/test_ui_command.py +1 -1
  60. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/conftest.py +17 -0
  61. evaltrack-0.5.0/tests/report_support.py +39 -0
  62. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/ui/conftest.py +9 -5
  63. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/ui/test_history.py +19 -1
  64. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/ui/test_reads.py +2 -2
  65. evaltrack-0.5.0/tests/ui/test_report.py +315 -0
  66. evaltrack-0.5.0/tests/ui/test_report_route.py +82 -0
  67. evaltrack-0.3.0/docs/ci-cd.md +0 -152
  68. evaltrack-0.3.0/evaltrack/ui/__init__.py +0 -7
  69. evaltrack-0.3.0/evaltrack/ui/models.py +0 -77
  70. evaltrack-0.3.0/evaltrack/ui/routes/history.py +0 -119
  71. evaltrack-0.3.0/evaltrack/ui/static/assets/index-Bf-jmLAW.js +0 -56
  72. evaltrack-0.3.0/hatch_build.py +0 -32
  73. {evaltrack-0.3.0 → evaltrack-0.5.0}/LICENSE +0 -0
  74. {evaltrack-0.3.0 → evaltrack-0.5.0}/SECURITY.md +0 -0
  75. {evaltrack-0.3.0 → evaltrack-0.5.0}/docs/changelog.md +0 -0
  76. {evaltrack-0.3.0 → evaltrack-0.5.0}/docs/contributing.md +0 -0
  77. {evaltrack-0.3.0 → evaltrack-0.5.0}/docs/eval-runners.md +0 -0
  78. {evaltrack-0.3.0 → evaltrack-0.5.0}/docs/eval-shape.md +0 -0
  79. {evaltrack-0.3.0 → evaltrack-0.5.0}/docs/examples.md +0 -0
  80. {evaltrack-0.3.0 → evaltrack-0.5.0}/docs/marker.md +0 -0
  81. {evaltrack-0.3.0 → evaltrack-0.5.0}/docs/outputs.md +0 -0
  82. {evaltrack-0.3.0 → evaltrack-0.5.0}/docs/reference/api.md +0 -0
  83. {evaltrack-0.3.0 → evaltrack-0.5.0}/docs/stylesheets/extra.css +0 -0
  84. {evaltrack-0.3.0 → evaltrack-0.5.0}/docs/translators.md +0 -0
  85. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/__init__.py +0 -0
  86. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/config.py +0 -0
  87. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/context.py +0 -0
  88. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/converters.py +0 -0
  89. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/core/__init__.py +0 -0
  90. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/core/converters.py +0 -0
  91. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/core/errors.py +0 -0
  92. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/core/eval_round.py +0 -0
  93. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/core/gate.py +0 -0
  94. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/core/projection.py +0 -0
  95. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/core/recorder.py +0 -0
  96. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/core/refs.py +0 -0
  97. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/core/repetition.py +0 -0
  98. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/core/results.py +0 -0
  99. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/core/run_context.py +0 -0
  100. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/core/score_bars.py +0 -0
  101. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/core/type_paths.py +0 -0
  102. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/core/user_values.py +0 -0
  103. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/failure.py +0 -0
  104. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/history/__init__.py +0 -0
  105. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/history/reliability.py +0 -0
  106. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/history/score_history.py +0 -0
  107. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/history/segments.py +0 -0
  108. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/marked_test.py +0 -0
  109. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/py.typed +0 -0
  110. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/pytest_plugin.py +0 -0
  111. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/repositories/__init__.py +0 -0
  112. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/repositories/azure.py +0 -0
  113. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/repositories/file.py +0 -0
  114. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/repositories/lifecycle.py +0 -0
  115. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/repositories/repository.py +0 -0
  116. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/repositories/s3.py +0 -0
  117. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/repositories/store.py +0 -0
  118. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/translators/__init__.py +0 -0
  119. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/translators/deepeval.py +0 -0
  120. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/translators/protocol.py +0 -0
  121. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/translators/pydantic_evals.py +0 -0
  122. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/ui/routes/__init__.py +0 -0
  123. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/ui/routes/meta.py +0 -0
  124. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/ui/routes/static.py +0 -0
  125. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/ui/run_cache.py +0 -0
  126. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/ui/security.py +0 -0
  127. {evaltrack-0.3.0 → evaltrack-0.5.0}/evaltrack/ui/static/favicon.svg +0 -0
  128. {evaltrack-0.3.0 → evaltrack-0.5.0}/examples/README.md +0 -0
  129. {evaltrack-0.3.0 → evaltrack-0.5.0}/examples/test_01_function.py +0 -0
  130. {evaltrack-0.3.0 → evaltrack-0.5.0}/examples/test_02_scores.py +0 -0
  131. {evaltrack-0.3.0 → evaltrack-0.5.0}/examples/test_03_reliability.py +0 -0
  132. {evaltrack-0.3.0 → evaltrack-0.5.0}/examples/test_04_agent_tool_use.py +0 -0
  133. {evaltrack-0.3.0 → evaltrack-0.5.0}/examples/test_05_llm_judge.py +0 -0
  134. {evaltrack-0.3.0 → evaltrack-0.5.0}/examples/test_06_fake_tool_in_inputs.py +0 -0
  135. {evaltrack-0.3.0 → evaltrack-0.5.0}/examples/test_07_deepeval.py +0 -0
  136. {evaltrack-0.3.0 → evaltrack-0.5.0}/examples/test_08_deepeval_repeats.py +0 -0
  137. {evaltrack-0.3.0 → evaltrack-0.5.0}/examples/test_09_other_eval_runner.py +0 -0
  138. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/.gitignore +0 -0
  139. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/index.html +0 -0
  140. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/public/favicon.svg +0 -0
  141. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/attemptCounts.test.ts +0 -0
  142. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/attemptCounts.ts +0 -0
  143. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/attemptErrors.test.ts +0 -0
  144. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/attemptErrors.ts +0 -0
  145. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/binaryEnvelope.test.ts +0 -0
  146. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/binaryEnvelope.ts +0 -0
  147. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/caseFilter.test.ts +0 -0
  148. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/caseFilter.ts +0 -0
  149. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/caseSections.test.ts +0 -0
  150. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/caseSections.ts +0 -0
  151. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/checks.test.ts +0 -0
  152. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/checks.ts +0 -0
  153. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/clamp.test.ts +0 -0
  154. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/clamp.ts +0 -0
  155. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/components/ConfirmDialog.tsx +0 -0
  156. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/components/CopyButton.tsx +0 -0
  157. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/components/Drawer.tsx +0 -0
  158. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/components/EvaluatorList.tsx +0 -0
  159. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/components/JsonDiff.tsx +0 -0
  160. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/components/JsonView.test.ts +0 -0
  161. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/components/JsonView.tsx +0 -0
  162. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/components/OutcomeCard.test.ts +0 -0
  163. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/components/OutcomeCard.tsx +0 -0
  164. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/components/PrRef.tsx +0 -0
  165. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/components/RunDetail.test.ts +0 -0
  166. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/components/RunDiff.test.ts +0 -0
  167. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/components/ScoreMeter.tsx +0 -0
  168. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/components/ScoreTrend.tsx +0 -0
  169. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/components/TableScroll.tsx +0 -0
  170. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/components/TextDiff.test.ts +0 -0
  171. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/components/TextDiff.tsx +0 -0
  172. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/components/ThemeToggle.test.ts +0 -0
  173. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/components/ThemeToggle.tsx +0 -0
  174. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/deferred.test.ts +0 -0
  175. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/diff.test.ts +0 -0
  176. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/diff.ts +0 -0
  177. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/drawerOpener.test.ts +0 -0
  178. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/drawerOpener.ts +0 -0
  179. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/extract.test.ts +0 -0
  180. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/extract.ts +0 -0
  181. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/format.test.ts +0 -0
  182. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/format.ts +0 -0
  183. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/grouping.test.ts +0 -0
  184. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/grouping.ts +0 -0
  185. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/load.test.ts +0 -0
  186. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/main.tsx +0 -0
  187. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/reliabilityNote.test.ts +0 -0
  188. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/reliabilityNote.ts +0 -0
  189. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/results.ts +0 -0
  190. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/runBody.test.ts +0 -0
  191. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/runOutcome.test.ts +0 -0
  192. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/runOutcome.ts +0 -0
  193. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/scoreTrend.test.ts +0 -0
  194. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/scoreTrend.ts +0 -0
  195. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/shortenUrl.test.ts +0 -0
  196. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/shortenUrl.ts +0 -0
  197. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/test-support.ts +0 -0
  198. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/src/types.ts +0 -0
  199. {evaltrack-0.3.0 → evaltrack-0.5.0}/frontend/vite.config.ts +0 -0
  200. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/__init__.py +0 -0
  201. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/cli/__init__.py +0 -0
  202. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/cli/helpers.py +0 -0
  203. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/cli/test_export.py +0 -0
  204. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/cli/test_listing.py +0 -0
  205. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/cli/test_main.py +0 -0
  206. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/core/__init__.py +0 -0
  207. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/core/test_converters.py +0 -0
  208. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/core/test_errors.py +0 -0
  209. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/core/test_eval_round.py +0 -0
  210. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/core/test_recorder.py +0 -0
  211. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/core/test_refs.py +0 -0
  212. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/core/test_results.py +0 -0
  213. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/core/test_run_record.py +0 -0
  214. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/core/test_score_bars.py +0 -0
  215. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/core/test_user_values.py +0 -0
  216. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/factories.py +0 -0
  217. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/fakes.py +0 -0
  218. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/history/__init__.py +0 -0
  219. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/history/test_reliability.py +0 -0
  220. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/history/test_score_history.py +0 -0
  221. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/marked_test/__init__.py +0 -0
  222. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/marked_test/conftest.py +0 -0
  223. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/marked_test/test_api.py +0 -0
  224. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/marked_test/test_merge.py +0 -0
  225. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/marked_test/test_run_loop.py +0 -0
  226. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/plugin/__init__.py +0 -0
  227. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/plugin/helpers.py +0 -0
  228. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/plugin/test_async_plugins.py +0 -0
  229. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/plugin/test_context.py +0 -0
  230. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/plugin/test_converters.py +0 -0
  231. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/plugin/test_gate_integration.py +0 -0
  232. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/plugin/test_large_outputs.py +0 -0
  233. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/plugin/test_marker.py +0 -0
  234. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/plugin/test_options.py +0 -0
  235. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/plugin/test_outcomes.py +0 -0
  236. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/plugin/test_reruns.py +0 -0
  237. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/plugin/test_termination.py +0 -0
  238. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/repositories/__init__.py +0 -0
  239. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/repositories/conftest.py +0 -0
  240. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/repositories/helpers.py +0 -0
  241. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/repositories/test_azure_store.py +0 -0
  242. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/repositories/test_file_store.py +0 -0
  243. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/repositories/test_open_repository.py +0 -0
  244. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/repositories/test_repository_refs.py +0 -0
  245. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/repositories/test_repository_retention.py +0 -0
  246. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/repositories/test_repository_runs.py +0 -0
  247. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/repositories/test_s3_store.py +0 -0
  248. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/repositories/test_store_contract.py +0 -0
  249. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/test_config.py +0 -0
  250. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/test_context.py +0 -0
  251. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/test_failure.py +0 -0
  252. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/test_public_api.py +0 -0
  253. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/translators/__init__.py +0 -0
  254. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/translators/contract.py +0 -0
  255. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/translators/test_deepeval.py +0 -0
  256. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/translators/test_pydantic_evals.py +0 -0
  257. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/translators/test_registry.py +0 -0
  258. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/ui/__init__.py +0 -0
  259. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/ui/test_hardening.py +0 -0
  260. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/ui/test_run_cache.py +0 -0
  261. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/ui/test_static.py +0 -0
  262. {evaltrack-0.3.0 → evaltrack-0.5.0}/tests/ui/test_writes.py +0 -0
@@ -32,6 +32,7 @@ dist/
32
32
  # directory, so `node_modules/` does not match it and it lands in a commit.
33
33
  node_modules
34
34
  evaltrack/ui/static/
35
+ evaltrack/report/static/
35
36
 
36
37
  # documentation site build output
37
38
  site/
@@ -9,6 +9,39 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ ## [0.5.0] - 2026-10-25
13
+
14
+ ### Added
15
+
16
+ - Support for Python 3.15.
17
+ - `evaltrack report --run-file`, which reports the run in a run file. CI can then report a run with
18
+ no repository, and link the report on a pull request without a remote.
19
+
20
+ ## [0.4.0] - 2026-10-08
21
+
22
+ ### Added
23
+
24
+ - `evaltrack report`, which writes a recorded run as one HTML file with the run embedded. It shows
25
+ the run as the dashboard does and opens anywhere with no server and no network, for CI artifacts
26
+ and sharing results. The page also holds the run's history over the mainline and the `baseline`
27
+ run, so **Compare to mainline** works in it. A value over 16 KB is left out of the page unless
28
+ `--full` is passed, so a report of a large run stays small. See
29
+ [CLI › report](https://evaltrack.jesravnbol.dk/latest/cli/#evaltrack-report).
30
+ - **Report** in the dashboard, on a run, which saves the same page for the run on screen, to share
31
+ with someone without the dashboard.
32
+
33
+ ### Changed
34
+
35
+ - The dashboard's history leaves out a promoted run whose body does not parse, and logs it, instead
36
+ of failing the whole history. A damaged `baseline` reflog still fails it.
37
+ - `evaltrack.ui` no longer re-exports `create_app` and `MountedRepository`. Import them from
38
+ `evaltrack.ui.app`.
39
+ - **Breaking:** the mainline is the configured `remote` and nothing else. A dashboard with only a
40
+ local repository mounted no longer measures reliability history over the local `baseline`.
41
+ `promote` and `push --ref baseline` into the local repository now exit `2`. To tell the local
42
+ repository apart, both read `pyproject.toml`, so an invalid `[tool.evaltrack]` table now stops
43
+ them with `--repository` too.
44
+
12
45
  ## [0.3.0] - 2026-09-26
13
46
 
14
47
  ### Added
@@ -67,7 +100,9 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic
67
100
  The first public release. evaltrack is a pytest plugin that records, gates and tracks LLM evals. See
68
101
  the [README](https://github.com/jesrav/evaltrack#readme) to get started.
69
102
 
70
- [unreleased]: https://github.com/jesrav/evaltrack/compare/v0.3.0...HEAD
103
+ [unreleased]: https://github.com/jesrav/evaltrack/compare/v0.5.0...HEAD
104
+ [0.5.0]: https://github.com/jesrav/evaltrack/releases/tag/v0.5.0
105
+ [0.4.0]: https://github.com/jesrav/evaltrack/releases/tag/v0.4.0
71
106
  [0.3.0]: https://github.com/jesrav/evaltrack/releases/tag/v0.3.0
72
107
  [0.2.0]: https://github.com/jesrav/evaltrack/releases/tag/v0.2.0
73
108
  [0.1.0]: https://github.com/jesrav/evaltrack/releases/tag/v0.1.0
@@ -26,7 +26,7 @@ An editable install serves a fallback page at `evaltrack ui` until `just fronten
26
26
 
27
27
  ```bash
28
28
  just test # run the test suite
29
- just lint # ruff, basedpyright (strict), bandit, prettier (via pre-commit)
29
+ just lint # ruff, basedpyright (strict), import-linter, bandit, prettier (via pre-commit)
30
30
  ```
31
31
 
32
32
  The justfile has the rest: the frontend checks, the runnable examples, and the live cloud
@@ -62,6 +62,8 @@ just docs_fallback # the same site with MkDocs and mkdocs-material, which mus
62
62
  - Add tests for new behavior and for bug fixes.
63
63
  - Prefer dependency injection with fakes over mocking. Test what a caller can observe, not internal
64
64
  behavior.
65
+ - The package's layers are set out in `.importlinter`, and `just lint` checks them. If a new import
66
+ breaks a rule, move the code, or change the rule there and say why.
65
67
  - If you change the stored run format, bump `RUN_SCHEMA_VERSION`. Its docstring in
66
68
  `evaltrack/core/run_record.py` says what else a bump needs.
67
69
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: evaltrack
3
- Version: 0.3.0
3
+ Version: 0.5.0
4
4
  Summary: Pytest plugin to record, gate and track LLM eval runs from pydantic-evals, DeepEval or a runner you write a translator for
5
5
  Project-URL: Homepage, https://github.com/jesrav/evaltrack
6
6
  Project-URL: Repository, https://github.com/jesrav/evaltrack
@@ -21,6 +21,7 @@ Classifier: Programming Language :: Python :: 3.11
21
21
  Classifier: Programming Language :: Python :: 3.12
22
22
  Classifier: Programming Language :: Python :: 3.13
23
23
  Classifier: Programming Language :: Python :: 3.14
24
+ Classifier: Programming Language :: Python :: 3.15
24
25
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
25
26
  Classifier: Topic :: Software Development :: Testing
26
27
  Classifier: Typing :: Typed
@@ -52,7 +53,7 @@ Description-Content-Type: text/markdown
52
53
  <p align="center">
53
54
  <a href="https://pypi.org/project/evaltrack/"><img src="https://img.shields.io/pypi/v/evaltrack.svg" alt="PyPI version"></a>
54
55
  <a href="https://evaltrack.jesravnbol.dk"><img src="https://img.shields.io/badge/docs-evaltrack.jesravnbol.dk-3f6fe4" alt="Documentation"></a>
55
- <a href="https://pypi.org/project/evaltrack/"><img src="https://img.shields.io/badge/python-3.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue" alt="Python versions"></a>
56
+ <a href="https://pypi.org/project/evaltrack/"><img src="https://img.shields.io/badge/python-3.11%20%7C%203.12%20%7C%203.13%20%7C%203.14%20%7C%203.15-blue" alt="Python versions"></a>
56
57
  <a href="https://github.com/jesrav/evaltrack/actions/workflows/ci.yml"><img src="https://github.com/jesrav/evaltrack/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
57
58
  <a href="https://github.com/jesrav/evaltrack/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="License: MIT"></a>
58
59
  <img src="https://img.shields.io/badge/basedpyright-checked-42b983" alt="basedpyright: strict">
@@ -90,8 +91,10 @@ That one marker gives you three things:
90
91
  - **Keep every run.** Runs land in a repository you own (local files, or Azure Blob Storage or
91
92
  Amazon S3 as the remote), with a dashboard you run locally to inspect them and compare them across
92
93
  PRs and releases. Over the mainline (the runs you have promoted) it tracks each case's pass-rate
93
- and each score, so changes in quality that never trip the gate are still visible. See
94
- [Repositories and storage] and [CI/CD].
94
+ and each score, so changes in quality that never trip the gate are still visible. You can save any
95
+ run as a standalone HTML file that opens anywhere, to share or attach to a CI job. You can start
96
+ without a remote: CI writes a report of each pull request's run and links it on the pull request.
97
+ See [Repositories and storage] and [CI/CD].
95
98
 
96
99
  ![Animated demo: a failing eval run in the dashboard, with per-case verdicts, scores against their bars, reliability history, and a comparison against the baseline][dashboard-demo]
97
100
 
@@ -5,7 +5,7 @@
5
5
  <p align="center">
6
6
  <a href="https://pypi.org/project/evaltrack/"><img src="https://img.shields.io/pypi/v/evaltrack.svg" alt="PyPI version"></a>
7
7
  <a href="https://evaltrack.jesravnbol.dk"><img src="https://img.shields.io/badge/docs-evaltrack.jesravnbol.dk-3f6fe4" alt="Documentation"></a>
8
- <a href="https://pypi.org/project/evaltrack/"><img src="https://img.shields.io/badge/python-3.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue" alt="Python versions"></a>
8
+ <a href="https://pypi.org/project/evaltrack/"><img src="https://img.shields.io/badge/python-3.11%20%7C%203.12%20%7C%203.13%20%7C%203.14%20%7C%203.15-blue" alt="Python versions"></a>
9
9
  <a href="https://github.com/jesrav/evaltrack/actions/workflows/ci.yml"><img src="https://github.com/jesrav/evaltrack/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
10
10
  <a href="https://github.com/jesrav/evaltrack/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="License: MIT"></a>
11
11
  <img src="https://img.shields.io/badge/basedpyright-checked-42b983" alt="basedpyright: strict">
@@ -43,8 +43,10 @@ That one marker gives you three things:
43
43
  - **Keep every run.** Runs land in a repository you own (local files, or Azure Blob Storage or
44
44
  Amazon S3 as the remote), with a dashboard you run locally to inspect them and compare them across
45
45
  PRs and releases. Over the mainline (the runs you have promoted) it tracks each case's pass-rate
46
- and each score, so changes in quality that never trip the gate are still visible. See
47
- [Repositories and storage] and [CI/CD].
46
+ and each score, so changes in quality that never trip the gate are still visible. You can save any
47
+ run as a standalone HTML file that opens anywhere, to share or attach to a CI job. You can start
48
+ without a remote: CI writes a report of each pull request's run and links it on the pull request.
49
+ See [Repositories and storage] and [CI/CD].
48
50
 
49
51
  ![Animated demo: a failing eval run in the dashboard, with per-case verdicts, scores against their bars, reliability history, and a comparison against the baseline][dashboard-demo]
50
52
 
@@ -0,0 +1,393 @@
1
+ # CI/CD
2
+
3
+ Your evals are pytest tests, so the CI you already have runs them. This page shows how to add the
4
+ evaltrack CLI to it. There are two setups:
5
+
6
+ - **[Without a remote]**, CI writes a report of the run for each pull request and links it on the
7
+ pull request. You do not need a storage account for this.
8
+ - **[With a remote]**, each pull request pushes its run to a shared repository, and a merge promotes
9
+ that run to [`baseline`][baseline]. evaltrack then keeps each run, and you can compare a pull
10
+ request with what is deployed.
11
+
12
+ The commands are the same in every CI system. [GitHub Actions] has complete workflows for both
13
+ setups.
14
+
15
+ ## Without a remote
16
+
17
+ Run the evals, then write the run as a report:
18
+
19
+ ```bash
20
+ export EVALTRACK_COMMIT="$COMMIT_SHA" # (1)!
21
+ export EVALTRACK_BRANCH="$BRANCH_NAME"
22
+
23
+ pytest -m evaltrack --evaltrack-run-file run.json
24
+ evaltrack report --run-file run.json --output evaltrack-report.html
25
+ ```
26
+
27
+ 1. The run records the commit and the branch. In CI, git often has no branch checked out, and the
28
+ commit can be a temporary merge commit. So set both yourself.
29
+
30
+ Upload `evaltrack-report.html` as an artifact of the job. Then link it in a comment on the pull
31
+ request. The page opens from disk, with no server and no network. It shows each case of the run with
32
+ its scores and verdicts, as the dashboard does.
33
+
34
+ What a report without a remote does not have:
35
+
36
+ - It does not show earlier runs, and it does not compare the run with `baseline`.
37
+ - It has no [cross-run reliability] estimate. That estimate needs earlier runs.
38
+
39
+ The page holds every input and output that the run recorded, so keep the artifact as private as the
40
+ run.
41
+
42
+ To add a remote later, configure it and follow the [PR pipeline]. The report then compares the run
43
+ with `baseline`, and the [promote pipeline] moves `baseline` on each merge.
44
+
45
+ ## With a remote
46
+
47
+ Every pull request records a run and pushes it to a shared repository, and a merge promotes that run
48
+ to `baseline`. The examples use an `azure://` remote. evaltrack does not require a promote at merge.
49
+ If your code ships at a different time than the merge (for example with GitOps), see [Adapting the
50
+ flow].
51
+
52
+ ### The flow
53
+
54
+ ```mermaid
55
+ flowchart TB
56
+ subgraph dev["Developer machine"]
57
+ write["Write evals<br/>@pytest.mark.evaltrack"]
58
+ review["evaltrack ui<br/>reads the remote"]
59
+ end
60
+
61
+ subgraph ci["CI"]
62
+ prjob["pull_request:<br/>pytest -m evaltrack<br/>evaltrack push --ref pr/N"]
63
+ promotejob["on merge:<br/>evaltrack promote pr/N --cleanup"]
64
+ end
65
+
66
+ subgraph remote["azure:// remote repository"]
67
+ prref["pr/N"]
68
+ baseline["baseline<br/>(deploy history)"]
69
+ end
70
+
71
+ write -->|open PR| prjob
72
+ prjob -->|record run| prref
73
+ prref -->|PR merged| promotejob
74
+ promotejob -->|append reflog entry| baseline
75
+ review -.->|diff pr/N vs baseline| remote
76
+ ```
77
+
78
+ ### Prerequisites
79
+
80
+ You need a shared remote and credentials for it. The examples use `azure://`, and an `s3://` remote
81
+ works the same way with the AWS credentials in place of the Azure ones:
82
+
83
+ - For the URL shape and how evaltrack authenticates, see [Repositories › Azure Blob Storage] or
84
+ [Repositories › Amazon S3].
85
+ - Point `[tool.evaltrack].remote` at the remote, so `evaltrack ui` mounts it next to your local
86
+ runs:
87
+
88
+ ```toml
89
+ [tool.evaltrack]
90
+ local = "./.evaltrack"
91
+ remote = "azure://account/evals"
92
+ ```
93
+
94
+ - Put `AZURE_CLIENT_ID`, `AZURE_TENANT_ID` and `AZURE_CLIENT_SECRET` in your CI's secret store,
95
+ where `DefaultAzureCredential` reads them, along with whatever the evals themselves need (an
96
+ `OPENAI_API_KEY`, say).
97
+
98
+ ### PR pipeline
99
+
100
+ Run the evals, push the run under `pr/{n}`, and write a report of it:
101
+
102
+ ```bash
103
+ export EVALTRACK_COMMIT="$COMMIT_SHA" # (1)!
104
+ export EVALTRACK_BRANCH="$BRANCH_NAME"
105
+
106
+ pytest -m evaltrack --evaltrack-run-file run.json
107
+
108
+ evaltrack push --run-file run.json \
109
+ --ref "pr/$PR_NUMBER" \
110
+ --pr "$PR_NUMBER" \
111
+ --title "$PR_TITLE" \
112
+ --commit "$COMMIT_SHA" # (2)!
113
+
114
+ evaltrack report --ref "pr/$PR_NUMBER" --output evaltrack-report.html
115
+ ```
116
+
117
+ 1. As in [Without a remote], the run records these.
118
+ 2. `--commit` records the same SHA on the ref's reflog entry, next to the PR.
119
+
120
+ That is the whole integration. What the job around it has to get right:
121
+
122
+ - **Install `evaltrack[azure]`**, or `evaltrack[s3]`, alongside your project's own dependencies, or
123
+ the push fails.
124
+ - **Name the remote once.** Set `EVALTRACK_REMOTE` for the job and neither command needs to name a
125
+ repository (see [Configuration › Precedence rules](./configuration.md#precedence-rules)).
126
+ - **Push even when an eval failed.** The run is written when the pytest session finishes, whatever
127
+ the verdicts, so guard the push on the file existing rather than on the test step passing. The run
128
+ you most need in the dashboard is the one that caught a regression.
129
+ - **Do not run the eval step under [pytest-xdist]** (`-n`). evaltrack does not support it and fails
130
+ every marked test.
131
+ - **Override the git context**, as above, or the run records no commit. See
132
+ [Configuration › Environment variables](./configuration.md#environment-variables).
133
+
134
+ `--pr` and `--title` record the PR number and title on the ref, so the dashboard shows which PR a
135
+ ref represents. With `pr_url_template` set, it links the number to the PR.
136
+
137
+ Upload the report and link it on the pull request, as in [Without a remote]. A reviewer can then see
138
+ the run without the dashboard. With a remote, the report also shows the history of the run over the
139
+ mainline and the changes from `baseline` to the run. On the first pull request of a project there is
140
+ no `baseline` yet, so the report shows the run alone. See [CLI › report](./cli.md#evaltrack-report).
141
+
142
+ ### Promote pipeline
143
+
144
+ When the PR merges, point `baseline` at its run:
145
+
146
+ ```bash
147
+ evaltrack promote "pr/$PR_NUMBER" --commit "$MERGE_COMMIT_SHA" --cleanup
148
+ ```
149
+
150
+ - `--cleanup` deletes the merged `pr/{n}` ref and the runs in its history that no other ref reaches,
151
+ so the PR stops showing as open in the dashboard.
152
+ - Run one job at a time per PR, and one promote at a time. Both write refs, and `--cleanup` works
153
+ out what to delete before deleting it. A concurrent writer can leave `pr/{n}` on an older commit's
154
+ run, or lose a run it had just referenced.
155
+
156
+ A promote onto the run `baseline` already points at records nothing, so a retried job is safe. See
157
+ [Moving a ref is idempotent](./repositories.md#moving-a-ref-is-idempotent).
158
+
159
+ The baseline reflog reads as a timeline of promoted runs:
160
+
161
+ ![The dashboard's baseline history, showing the baseline reflog as a commit-annotated timeline of promoted runs](./images/baseline-history.png)
162
+
163
+ ## GitHub Actions
164
+
165
+ These workflows are examples of the workflows shown above in GitHub Actions. They use uv, and the
166
+ project must have evaltrack in its dependencies. With a remote, it must have `evaltrack[azure]` or
167
+ `evaltrack[s3]`. If you use a different tool than uv, change the install step and remove `uv run`.
168
+
169
+ ### Workflow without a remote
170
+
171
+ ```yaml title=".github/workflows/evals.yml"
172
+ name: Evals
173
+
174
+ on:
175
+ pull_request:
176
+
177
+ jobs:
178
+ evals:
179
+ runs-on: ubuntu-latest
180
+ permissions:
181
+ contents: read
182
+ pull-requests: write # (1)!
183
+ steps:
184
+ - uses: actions/checkout@v7
185
+ - uses: astral-sh/setup-uv@v10
186
+ - run: uv sync --locked
187
+
188
+ - name: Run evals
189
+ id: evals
190
+ env:
191
+ OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
192
+ EVALTRACK_COMMIT: ${{ github.event.pull_request.head.sha }}
193
+ EVALTRACK_BRANCH: ${{ github.head_ref }}
194
+ run: uv run pytest -m evaltrack --evaltrack-run-file run.json
195
+
196
+ - name: Write the eval report
197
+ if: ${{ !cancelled() && hashFiles('run.json') != '' }} # (2)!
198
+ run: uv run evaltrack report --run-file run.json --output evaltrack-report.html
199
+
200
+ - name: Upload the eval report
201
+ id: upload
202
+ if: ${{ !cancelled() && hashFiles('evaltrack-report.html') != '' }}
203
+ uses: actions/upload-artifact@v7
204
+ with:
205
+ name: evaltrack-report-pr-${{ github.event.pull_request.number }}
206
+ path: evaltrack-report.html
207
+
208
+ - name: Link the eval report on the PR
209
+ if: ${{ !cancelled() && steps.upload.outcome == 'success' }}
210
+ env:
211
+ GH_TOKEN: ${{ github.token }}
212
+ REPORT_URL: ${{ steps.upload.outputs.artifact-url }}
213
+ EVALS_OUTCOME: ${{ steps.evals.outcome }}
214
+ PR: ${{ github.event.pull_request.number }}
215
+ SHA: ${{ github.event.pull_request.head.sha }}
216
+ run: | # (3)!
217
+ verdict="Evals failed"
218
+ if [ "$EVALS_OUTCOME" = "success" ]; then verdict="Evals passed"; fi
219
+ gh pr comment "$PR" --edit-last --create-if-none \
220
+ --body "**$verdict** on \`${SHA:0:7}\`. [Download the eval report]($REPORT_URL)."
221
+ ```
222
+
223
+ 1. The last step writes a comment on the pull request. The token needs this permission for that.
224
+ 2. pytest writes the run file at the end, also when an eval fails. So this step runs after a failed
225
+ eval too, because that report is the most useful one. The job still fails.
226
+ 3. Edits the comment from the previous push, so the pull request has one comment. If another
227
+ workflow also comments with `GITHUB_TOKEN`, this step can edit that comment instead.
228
+
229
+ The link opens the artifact on GitHub. To download it, the reader must sign in and have read access
230
+ to the repository. The download is a zip file with the report in it.
231
+
232
+ ### Workflows with a remote
233
+
234
+ Put the remote in `[tool.evaltrack].remote` and its credentials in the repository secrets, as in
235
+ [Prerequisites]. The pull request workflow pushes the run before it writes the report:
236
+
237
+ ```yaml title=".github/workflows/evals.yml"
238
+ name: Evals
239
+
240
+ on:
241
+ pull_request:
242
+
243
+ jobs:
244
+ evals:
245
+ runs-on: ubuntu-latest
246
+ permissions:
247
+ contents: read
248
+ pull-requests: write
249
+ concurrency: # (1)!
250
+ group: evals-${{ github.event.pull_request.number }}
251
+ cancel-in-progress: false
252
+ env:
253
+ AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
254
+ AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
255
+ AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
256
+ steps:
257
+ - uses: actions/checkout@v7
258
+ - uses: astral-sh/setup-uv@v10
259
+ - run: uv sync --locked
260
+
261
+ - name: Run evals
262
+ id: evals
263
+ env:
264
+ OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
265
+ EVALTRACK_COMMIT: ${{ github.event.pull_request.head.sha }}
266
+ EVALTRACK_BRANCH: ${{ github.head_ref }}
267
+ run: uv run pytest -m evaltrack --evaltrack-run-file run.json
268
+
269
+ - name: Push the run
270
+ id: push
271
+ if: ${{ !cancelled() && hashFiles('run.json') != '' }}
272
+ env:
273
+ PR: ${{ github.event.pull_request.number }}
274
+ PR_TITLE: ${{ github.event.pull_request.title }} # (2)!
275
+ SHA: ${{ github.event.pull_request.head.sha }}
276
+ run: |
277
+ uv run evaltrack push --run-file run.json \
278
+ --ref "pr/$PR" --pr "$PR" --title "$PR_TITLE" --commit "$SHA"
279
+
280
+ - name: Write the eval report
281
+ if: ${{ !cancelled() && steps.push.outcome == 'success' }}
282
+ env:
283
+ PR: ${{ github.event.pull_request.number }}
284
+ run: uv run evaltrack report --ref "pr/$PR" --output evaltrack-report.html
285
+
286
+ - name: Upload the eval report
287
+ id: upload
288
+ if: ${{ !cancelled() && hashFiles('evaltrack-report.html') != '' }}
289
+ uses: actions/upload-artifact@v7
290
+ with:
291
+ name: evaltrack-report-pr-${{ github.event.pull_request.number }}
292
+ path: evaltrack-report.html
293
+
294
+ - name: Link the eval report on the PR
295
+ if: ${{ !cancelled() && steps.upload.outcome == 'success' }}
296
+ env:
297
+ GH_TOKEN: ${{ github.token }}
298
+ REPORT_URL: ${{ steps.upload.outputs.artifact-url }}
299
+ EVALS_OUTCOME: ${{ steps.evals.outcome }}
300
+ PR: ${{ github.event.pull_request.number }}
301
+ SHA: ${{ github.event.pull_request.head.sha }}
302
+ run: |
303
+ verdict="Evals failed"
304
+ if [ "$EVALS_OUTCOME" = "success" ]; then verdict="Evals passed"; fi
305
+ gh pr comment "$PR" --edit-last --create-if-none \
306
+ --body "**$verdict** on \`${SHA:0:7}\`. [Download the eval report]($REPORT_URL)."
307
+ ```
308
+
309
+ 1. Jobs for the same pull request run one at a time, because each one writes `pr/{n}`.
310
+ 2. If you put the title directly in the script, the shell can run text from it, such as `$(...)`.
311
+ `env` passes the title as plain text.
312
+
313
+ The promote workflow starts when a pull request closes. If the pull request closed without a merge,
314
+ the job does not run:
315
+
316
+ ```yaml title=".github/workflows/promote.yml"
317
+ name: Promote
318
+
319
+ on:
320
+ pull_request:
321
+ types: [closed]
322
+
323
+ jobs:
324
+ promote:
325
+ if: github.event.pull_request.merged == true
326
+ runs-on: ubuntu-latest
327
+ concurrency: # (1)!
328
+ group: evaltrack-promote
329
+ cancel-in-progress: false
330
+ env:
331
+ AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
332
+ AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
333
+ AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
334
+ steps:
335
+ - uses: actions/checkout@v7
336
+ - uses: astral-sh/setup-uv@v10
337
+ - run: uv sync --locked
338
+
339
+ - name: Promote the run to baseline
340
+ env:
341
+ PR: ${{ github.event.pull_request.number }}
342
+ SHA: ${{ github.event.pull_request.merge_commit_sha }}
343
+ run: uv run evaltrack promote "pr/$PR" --commit "$SHA" --cleanup # (2)!
344
+ ```
345
+
346
+ 1. Promotes run one at a time, so two merges close together cannot change `baseline` at the same
347
+ time.
348
+ 2. If no run was ever pushed for the pull request, there is no `pr/{n}` and the step fails.
349
+
350
+ ## Adapting the flow to your delivery process
351
+
352
+ `baseline` is the run you compare against. `promote` is a plain CLI call, so run it at whatever
353
+ event means shipped in your process. I promote on merge, which suits trunk-based development.
354
+
355
+ Promoting later than merge leaves `pr/{n}` refs standing until their run ships, and a ref reaches
356
+ every run in its history. Delete them once their PR is closed.
357
+
358
+ The remote has one `baseline`. The dashboard's Mainline section and the [cross-run reliability
359
+ estimate][cross-run reliability] read it.
360
+
361
+ ## Reviewing a PR
362
+
363
+ The PR's run is in the shared remote, so a reviewer can see its evals without checking the branch
364
+ out. `evaltrack ui` lists each PR run under **Pull requests**. Pick one as the compare run against
365
+ `baseline` to see which cases changed.
366
+
367
+ ![A PR run compared against the baseline in the dashboard, with per-case score and verdict changes side by side](./images/pr-review.png)
368
+
369
+ ## Flaky evals in CI
370
+
371
+ Give nondeterministic evals a `flake_reruns` budget on the marker. A flaky case then does not fail
372
+ the PR. See [Flakiness & reliability](./flakiness.md).
373
+
374
+ Prefer `flake_reruns` over a rerun of a red CI job. A job rerun discards the failed attempts and
375
+ biases the [tracked pass-rate][cross-run reliability] upward.
376
+
377
+ ---
378
+
379
+ **Related:** [CLI](./cli.md) · [Repositories and storage](./repositories.md) ·
380
+ [Flakiness & reliability](./flakiness.md)
381
+
382
+ [baseline]: ./repositories.md#baseline-and-mainline
383
+ [adapting the flow]: #adapting-the-flow-to-your-delivery-process
384
+ [without a remote]: #without-a-remote
385
+ [with a remote]: #with-a-remote
386
+ [github actions]: #github-actions
387
+ [prerequisites]: #prerequisites
388
+ [promote pipeline]: #promote-pipeline
389
+ [pr pipeline]: #pr-pipeline
390
+ [repositories › azure blob storage]: ./repositories.md#azure-blob-storage
391
+ [repositories › amazon s3]: ./repositories.md#amazon-s3
392
+ [pytest-xdist]: https://github.com/pytest-dev/pytest-xdist
393
+ [cross-run reliability]: ./flakiness.md#cross-run-reliability
@@ -13,7 +13,8 @@ already points at the run. See
13
13
 
14
14
  ## evaltrack promote
15
15
 
16
- See [Repositories › Promote](./repositories.md#promote) and
16
+ `promote` writes `baseline` to the remote. If the target is the local repository, the command exits
17
+ `2`. See [Repositories › Promote](./repositories.md#promote) and
17
18
  [Cleaning up runs](./repositories.md#cleaning-up-runs).
18
19
 
19
20
  ## evaltrack runs
@@ -49,9 +50,32 @@ Prints a recorded run as JSON. Use it to inspect a run or archive one outside th
49
50
  same data is available in Python. See [Reading runs from Python].
50
51
 
51
52
  **Exit codes:** `0` when the run was exported. `1` when the named repository does not hold the run,
52
- and the error names that repository. `2` when no repository is named. No other command exits
53
+ and the error names that repository. `2` when no repository is named. Only `report` shares
53
54
  [`1`](#exit-codes), so a script can act on the missing run alone.
54
55
 
56
+ ## evaltrack report
57
+
58
+ Writes a recorded run as one HTML file that opens from disk, with no server and no network.
59
+
60
+ ```bash
61
+ evaltrack report --ref pr/482 --output evaltrack-report.html
62
+ ```
63
+
64
+ To report a run that is not in a repository, name its run file with `--run-file`. For example, CI
65
+ can report the file that `pytest --evaltrack-run-file` wrote. The page then does not list any refs.
66
+
67
+ The page also shows the run's history over the remote's [`baseline`][baseline], and **Compare to
68
+ mainline** against the run that `baseline` points at. Both come from the remote, whichever
69
+ repository holds the run. Without a remote, the page shows the run alone and says why.
70
+
71
+ The page holds the inputs and outputs that the run recorded. Share it with the same care as the run.
72
+ A value over 16 KB is left out, so a report of a large run stays small. Pass `--full` to embed every
73
+ value whole.
74
+
75
+ **Exit codes:** `0` when the report was written. `1` when the repository does not hold the run or
76
+ the ref. Nothing is written then. `2` when no repository is named, or when the run file is missing
77
+ or does not parse.
78
+
55
79
  ## evaltrack ui
56
80
 
57
81
  The remote is not contacted at startup, so the dashboard comes up at once even when the remote is
@@ -74,8 +98,9 @@ carries an **Exit codes** note.
74
98
  | `2` | You or the environment has something to fix, and the message says what |
75
99
  | `70` | A bug in evaltrack, printed with its traceback |
76
100
 
77
- Only [`export`](#evaltrack-export) exits `1` today, for a run the repository does not hold. Please
78
- [report a `70`](https://github.com/jesrav/evaltrack/issues) with the traceback.
101
+ Only [`export`](#evaltrack-export) and [`report`](#evaltrack-report) exit `1` today, for a run or
102
+ ref the repository does not hold. Please [report a `70`](https://github.com/jesrav/evaltrack/issues)
103
+ with the traceback.
79
104
 
80
105
  ---
81
106
 
@@ -38,11 +38,11 @@ pr_url_template = "https://github.com/OWNER/REPO/pull/{pr}"
38
38
  # pr_url_template = "https://dev.azure.com/ORG/PROJECT/_git/REPO/pullrequest/{pr}"
39
39
  ```
40
40
 
41
- | key | default | meaning |
42
- | ----------------- | -------------- | -------------------------------------------------------------------------------------------- |
43
- | `local` | `./.evaltrack` | the plugin's save target and the dashboard's **Local** mount |
44
- | `remote` | unset | the shared repository: default target for `push`/`promote`, the dashboard's **Remote** mount |
45
- | `pr_url_template` | unset | `http(s)` URL template with a `{pr}` placeholder, used as a PR ref's link target |
41
+ | key | default | meaning |
42
+ | ----------------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
43
+ | `local` | `./.evaltrack` | the plugin's save target and the dashboard's **Local** mount |
44
+ | `remote` | unset | the shared repository, which holds `baseline` and the mainline: default target for `push`/`promote`, the dashboard's **Remote** mount |
45
+ | `pr_url_template` | unset | `http(s)` URL template with a `{pr}` placeholder, used as a PR ref's link target |
46
46
 
47
47
  ## Pytest options
48
48
 
@@ -93,9 +93,9 @@ the test, and it is not a flakiness sample.
93
93
 
94
94
  ### Which runs pool
95
95
 
96
- The pooled runs are the **mainline**, the runs [`baseline`][baseline] has pointed at, in a window of
97
- the 50 most recent entries in its [reflog](./repositories.md#ref). Runs from assorted PR tips and
98
- local branches do not pool.
96
+ The pooled runs are the **mainline**, the runs the remote's [`baseline`][baseline] has pointed at.
97
+ The window is the 50 most recent entries in its [reflog](./repositories.md#ref). Runs from assorted
98
+ PR tips and local branches do not pool.
99
99
 
100
100
  The pooled rate is always the mainline's (your deploy history). The run you view (a PR run or a
101
101
  local run) is _not_ folded into it, so the number keeps its meaning of "how reliable is this eval on
@@ -14,7 +14,7 @@ pip install "evaltrack[ui,pydantic-evals]" "pydantic-ai-slim[openai]"
14
14
 
15
15
  !!! note
16
16
 
17
- Linux and macOS are supported, on Python 3.11 to 3.14.
17
+ Linux and macOS are supported, on Python 3.11 to 3.15.
18
18
  If your machine runs Windows, run evaltrack under WSL2.
19
19
 
20
20
  ### 2. Write a tracked eval
@@ -95,7 +95,8 @@ pytest -m "evaltrack"
95
95
  Each pytest session produces a **run**, a snapshot of all recorded eval results, saved to
96
96
  `.evaltrack/` by default (add `.evaltrack/` to your project's `.gitignore`).
97
97
 
98
- CI can run the same command. See [CI/CD].
98
+ CI can run the same command and link a report of the run on each pull request. You do not need a
99
+ remote for this. See [CI/CD].
99
100
 
100
101
  ### 4. See the results
101
102
 
@@ -104,8 +105,8 @@ evaltrack ui
104
105
  ```
105
106
 
106
107
  This serves the dashboard at `http://127.0.0.1:8765` and prints the link. Browse scores and
107
- pass-rates per case, and diff any two runs. Open a case to see each score against its bar and its
108
- history over the mainline.
108
+ pass-rates per case, and diff any two runs. Open a case to see each score against its bar. With a
109
+ remote (step 5), the case also shows its history over the mainline.
109
110
 
110
111
  !!! note
111
112
 
@@ -114,9 +115,10 @@ history over the mainline.
114
115
 
115
116
  ### 5. Track a shared remote (optional)
116
117
 
117
- Declare your repositories in `pyproject.toml`. `local` is where the plugin saves runs. `remote` is a
118
- shared repository that your CI writes to (Azure Blob Storage or Amazon S3). It stores the baseline
119
- (the run recorded for what is currently deployed) and the PR history.
118
+ The mainline and **Compare to mainline** need a remote. Declare your repositories in
119
+ `pyproject.toml`. `local` is where the plugin saves runs. `remote` is a shared repository that your
120
+ CI writes to (Azure Blob Storage or Amazon S3). It stores `baseline` (the ref for the run of what is
121
+ currently deployed) and the PR history.
120
122
 
121
123
  ```toml
122
124
  [tool.evaltrack]