Skip to content

Never start the coder on a spent step; a test the change wrote is fixed on its pull request - #541

Merged
nambok merged 1 commit into
mainfrom
fix/test-fix-time-and-attribution
Nov 10, 2026
Merged

nambok merged 1 commit into
mainfrom
fix/test-fix-time-and-attribution

Conversation

@nambok

@nambok nambok commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

An end-to-end test-fix run stopped with "the coder made no write to the branch". Two causes:

  1. The failing test was added by the pull request it failed on, yet it was attributed as unrelated, so a separate fix run started from the default branch, where the test doesn't exist. Planning there named files missing from the default branch, planned again, and used 11 of the step's 15 minutes.
  2. The coder then started with about 80 seconds, wrote nothing, and the run ended as CoderHelm's miss instead of continuing.

Changes

  • common::e2e::attribution::test_changed: a failing test whose spec, or a page object it imports, is added or edited by the pull request is the pull request's failure (Related), fixed by its own fix rounds, with a reason naming those files.
  • Worker attribution collects the test's spec and imported page objects and applies that rule.
  • Before the coder starts, a step with less than 8 minutes left hands the run to a fresh step (the plan is final and is not made again).
  • A coder that runs out of time before writing a file continues in a fresh step, never ends as "made no write", a question or a request for detail.

Verification

  • New tests: a_test_the_change_adds_or_edits_is_the_changes_failure, the_coder_never_starts_or_ends_on_a_spent_step.
  • cargo test -p common -p worker: 1631 and 1414 passed. cargo clippy --all-targets -D warnings: clean.

…p; a test the change wrote is fixed on its pull request

A test-fix run planned twice (its files were only on the pull request's branch), used 11 of its 15 minutes, started the coder with 80 seconds and ended as 'made no write'. The coder now starts in a fresh step when less than 8 minutes are left, a coder that runs out of time before writing continues, and a failing test the pull request adds or edits is attributed to it, so it is fixed there instead of from the default branch.
@nambok
nambok merged commit 4de2782 into main Nov 10, 2026
10 checks passed
@nambok
nambok deleted the fix/test-fix-time-and-attribution branch November 10, 2026 02:57
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