Skip to content

fix: align trace report test assertions with reset-step behavior#141

Merged
abrichr merged 1 commit intomainfrom
fix/ci-trace-report-test
Mar 19, 2026
Merged

fix: align trace report test assertions with reset-step behavior#141
abrichr merged 1 commit intomainfrom
fix/ci-trace-report-test

Conversation

@abrichr
Copy link
Member

@abrichr abrichr commented Mar 19, 2026

Summary

  • Fix CI test failure in test_report_with_trajectory that has been breaking the test workflow since PR feat: add execution trace report generator #138 introduced generate_trace_report.py
  • The test expected trajectory data from step_index=0 to appear in the report, but the script intentionally skips trajectory metadata for Step 0 (the Reset step) -- it renders ## Step 0 (Reset) with only the screenshot and continues past trajectory data
  • Updated assertions to match the script's actual (correct) behavior: verify step_index=0 data is absent, and step_index=1/step_index=2 data is correctly rendered under Steps 1 and 2

Test plan

  • test_report_with_trajectory passes locally
  • All 12 tests in test_generate_trace_report.py pass
  • CI test workflow passes on this PR

🤖 Generated with Claude Code

The test_report_with_trajectory test expected trajectory data from
step_index=0 to appear in the report, but generate_trace_report.py
skips trajectory metadata for Step 0 (Reset) by design. Updated
assertions to match the actual report output: step_index=0 data is
absent, while step_index=1 and 2 data appears correctly under
Steps 1 and 2.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@abrichr abrichr merged commit 8c6b815 into main Mar 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant