feat: Run it again on a test this PC couldn't run #106

Merged
HumanBean merged 1 commit from HumanBean/Beanstalk:feat/run-again-failed into main 2026-11-19 20:28:40 +00:00
Owner

Once a tester fixes whatever made their PC fail a job (for example the E:\BeanstalkCACHE label error, #102), they now have a way to try that job again.

Until now:

  • their PC waited 15 minutes before it could take the job again;
  • after two failures it waited for the next app update;
  • a job three PCs had failed ended as "couldn't run" for good.

The app: Run it again used to show only on a skipped test's page. It now also shows on a test that couldn't run. The button and its endpoint (POST /api/v1/jobs/{id}/unskip) are the same, so an older app keeps working as before.

The coordinator (scheduler.unskip):

  • It forgets this PC's failures of the job (failed_agents, agent_fails) as well as its skip, so the PC may take the job straight away.
  • It puts a job that ended as error back in the queue, but only while its round still counts (current_round):
    • a run that is open and, if it is a scheduled run, has not been replaced by a newer one;
    • an open PR whose head is the job's commit, and that round was not cancelled or revoked.
  • A job from an old round stays ended. If the job fails again it becomes an error again, because the other two PCs are still counted as failed.
  • The route then updates the PR's checks or the run's reply, since the job's state may have changed.

Docs: protocol.md (unskip) and using.md (Run it again).

Not built or run here: no builds or tests are run on this PC. That covers the new test_run_it_again_after_this_pc_couldnt_run_it and the agent build. There is no screenshot either. The only visible change is that an existing button now also shows on "Couldn't run" pages.

🤖 Generated with Claude Code

Once a tester fixes whatever made their PC fail a job (for example the `E:\BeanstalkCACHE` label error, #102), they now have a way to try that job again. Until now: - their PC waited 15 minutes before it could take the job again; - after two failures it waited for the next app update; - a job three PCs had failed ended as "couldn't run" for good. **The app:** **Run it again** used to show only on a skipped test's page. It now also shows on a test that couldn't run. The button and its endpoint (`POST /api/v1/jobs/{id}/unskip`) are the same, so an older app keeps working as before. **The coordinator** (`scheduler.unskip`): - It forgets this PC's failures of the job (`failed_agents`, `agent_fails`) as well as its skip, so the PC may take the job straight away. - It puts a job that ended as `error` back in the queue, but only while its round still counts (`current_round`): - a run that is open and, if it is a scheduled run, has not been replaced by a newer one; - an open PR whose head is the job's commit, and that round was not cancelled or revoked. - A job from an old round stays ended. If the job fails again it becomes an error again, because the other two PCs are still counted as failed. - The route then updates the PR's checks or the run's reply, since the job's state may have changed. **Docs:** protocol.md (unskip) and using.md (Run it again). **Not built or run here:** no builds or tests are run on this PC. That covers the new `test_run_it_again_after_this_pc_couldnt_run_it` and the agent build. There is no screenshot either. The only visible change is that an existing button now also shows on "Couldn't run" pages. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat: Run it again on a test this PC couldn't run
Some checks failed
CI / Conventional Commit title (pull_request) Successful in 15s
CI / Workflow lint (actionlint) (pull_request) Successful in 16s
CI / Coordinator tests (pull_request) Failing after 1m19s
CI / Agent build and checks (pull_request) Successful in 39s
CI / Coordinator image (pull_request) Successful in 10s
fedb4610ed
A tester whose PC failed a job (Longshot's sandbox couldn't label E:\BeanstalkCACHE)
had no way to try it again once fixed: the PC waited 15 minutes, gave up after two
tries until its app updated, and a job three PCs failed ended for good.

The app's Run it again, so far only on a skipped test's page, now shows on a test
that couldn't run too. The coordinator's unskip forgets that PC's failures of the
job as well as its skip, and queues a job that ended as an error again while its
round still counts (an open run, the newest scheduled run, or an open PR's head
commit that wasn't cancelled or revoked). The PR's checks or the run's reply are
refreshed after.

Assisted-by: Claude Code
Co-Authored-By: Claude Opus 5.5 <[email protected]>
HumanBean changed title from WIP: feat: Run it again on a test this PC couldn't run to feat: Run it again on a test this PC couldn't run 2026-11-19 20:28:34 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Beanstalk!106
No description provided.