Repository navigation
test(compile): add regression tests for rejected simple writes - #7997
Open
peterzhang987723 wants to merge 1 commit into
Open
peterzhang987723 wants to merge 1 commit into
peterzhang987723 wants to merge 1 commit into
Conversation
1 of 2 tasks
peterzhang987723
force-pushed
the
fix/compile-simple-write-error
branch
from
November 25, 2026 01:04
a506c81 to
f599484
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rebased onto latest
mainafter #7813 landed the production fixes inbot/vikingbot/compile/simple.py(unresolvedfailure tracking, latestwrite_errorretention, andLast write errorreporting 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 incrementalsimple.runfails withCOMPILE_INCOMPLETEwhen 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 stalefirst.mderrors.test_simple_compile_iteration_limit_includes_last_write_error: ensuresmax_iterationsexhaustion withcount == 0appendsLast write error:toCOMPILE_INCOMPLETE.Verified locally:
pytest tests/test_compile_markdown.py -v(52 passed) andruff check/ruff format --checkpass.