Skip to content

test(compile): add regression tests for rejected simple writes - #7997

Open
peterzhang987723 wants to merge 1 commit into
volcengine:mainfrom
peterzhang987723:fix/compile-simple-write-error
Open

peterzhang987723 wants to merge 1 commit into
volcengine:mainfrom
peterzhang987723:fix/compile-simple-write-error

Conversation

@peterzhang987723

@peterzhang987723 peterzhang987723 commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Rebased onto latest main after #7813 landed the production fixes in bot/vikingbot/compile/simple.py (unresolved failure tracking, latest write_error retention, and Last write error reporting at iteration limit).

This PR is now narrowed strictly to 3 uncovered regression tests in bot/tests/test_compile_markdown.py:

  • test_simple_compile_incremental_fails_when_write_is_rejected_after_source_inspection: ensures incremental simple.run fails with COMPILE_INCOMPLETE when source diffs were inspected (openviking_diff_paths) but the only write is rejected before persistence (count == 0).
  • test_simple_compile_reports_latest_rejected_write_error_after_retry: ensures repeated rejected writes fail with the latest rejection reason (second.md) rather than retaining stale first.md errors.
  • test_simple_compile_iteration_limit_includes_last_write_error: ensures max_iterations exhaustion with count == 0 appends Last write error: to COMPILE_INCOMPLETE.

Verified locally: pytest tests/test_compile_markdown.py -v (52 passed) and ruff check / ruff format --check pass.

@peterzhang987723
peterzhang987723 force-pushed the fix/compile-simple-write-error branch from a506c81 to f599484 Compare November 25, 2026 01:04
@peterzhang987723 peterzhang987723 changed the title fix(compile): fail incremental simple compile on rejected writes and report latest error test(compile): add regression tests for rejected simple writes Nov 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant