feat(ci): add RunnerContext and RegressionError for experiment GH action #1635
+407
β1
Claude / Claude Code Review
completed
Apr 22, 2026 in 15m 58s
Code review found 1 important issue
Found 5 candidates, confirmed 4. See review comments for details.
Details
| Severity | Count |
|---|---|
| π΄ Important | 1 |
| π‘ Nit | 0 |
| π£ Pre-existing | 0 |
| Severity | File:Line | Issue |
|---|---|---|
| π΄ Important | langfuse/experiment.py:1072-1093 |
RunnerContext.init missing run_name β action cannot inject CI run name |
Annotations
Check failure on line 1093 in langfuse/experiment.py
claude / Claude Code Review
RunnerContext.__init__ missing run_name β action cannot inject CI run name
RunnerContext.__init__ does not accept a run_name parameter and stores no self.run_name attribute, so the GitHub Action has no mechanism to inject a CI-meaningful run name (e.g. 'pr-42-sha-abc') as a context-level default. Fix by adding run_name: Optional[str] = None to __init__, storing self.run_name, and resolving it in run_experiment as: resolved_run_name = run_name if run_name is not None else self.run_name.
Loading