feat(agent): stop testing after the current test #69

Merged
HumanBean merged 1 commit from futondestroyer/Beanstalk-contributions:codex/stop-after-test into main 2026-11-16 17:02:42 +00:00
Member

Volunteers currently have to abort a running test to stop lending their PC. Add Stop after this test so the current test can finish and send its results before automatic testing turns off; rename the existing immediate control Stop now, including its confirmation and tray label.

The scheduled stop is saved immediately as testing = false, without cancelling the current pipeline. The claim lock prevents a subsequent automatic accept racing with that change. A pending message and Keep testing afterward let the volunteer undo it; completion clears the transient message, while testing stays off across restarts. The agent's independent update hold stays intact, and undo does not start a sandbox self-test during the running job.

Validation on Windows:

  • Locked Release build passed (NuGet vulnerability lookup was unavailable; no package changes).
  • 231 focused assertions passed: stop-after, config, updates, job listing, status and client checks, invoked with synthetic fixtures. The 16 new checks cover preserving the running token, persisted stop, undo, completion, restart behavior, the next claim and immediate cancellation.
  • Built UI exercised with a synthetic running job, an isolated profile and no farm/game connection: both buttons, pending state, saved off flag, undo and Stop now confirmation verified.
  • The full core driver passed its first 381 assertions, including all 16 new ones, then stopped at the pre-existing Linux archive symlink fixture because this Windows account lacks symlink privileges. The full suite is not claimed as passing.

The live volunteer worker was neither updated nor restarted. No game files, saves, real tokens or keys were used in these fixtures. The background-console change is separate and remains paused.

Screenshots from this branch's built views, with made-up job data:

This PR: Stop now and Stop after this test

This PR: stop scheduled, with an undo control

Volunteers currently have to abort a running test to stop lending their PC. Add **Stop after this test** so the current test can finish and send its results before automatic testing turns off; rename the existing immediate control **Stop now**, including its confirmation and tray label. The scheduled stop is saved immediately as `testing = false`, without cancelling the current pipeline. The claim lock prevents a subsequent automatic accept racing with that change. A pending message and **Keep testing afterward** let the volunteer undo it; completion clears the transient message, while testing stays off across restarts. The agent's independent update hold stays intact, and undo does not start a sandbox self-test during the running job. Validation on Windows: - Locked Release build passed (NuGet vulnerability lookup was unavailable; no package changes). - 231 focused assertions passed: stop-after, config, updates, job listing, status and client checks, invoked with synthetic fixtures. The 16 new checks cover preserving the running token, persisted stop, undo, completion, restart behavior, the next claim and immediate cancellation. - Built UI exercised with a synthetic running job, an isolated profile and no farm/game connection: both buttons, pending state, saved off flag, undo and Stop now confirmation verified. - The full core driver passed its first 381 assertions, including all 16 new ones, then stopped at the pre-existing Linux archive symlink fixture because this Windows account lacks symlink privileges. The full suite is not claimed as passing. The live volunteer worker was neither updated nor restarted. No game files, saves, real tokens or keys were used in these fixtures. The background-console change is separate and remains paused. Screenshots from this branch's built views, with made-up job data: ![This PR: Stop now and Stop after this test](https://git.magicbean.dev/attachments/55f046b6-2d0d-4649-9edb-b39dd473cfc9) ![This PR: stop scheduled, with an undo control](https://git.magicbean.dev/attachments/1726b097-06d7-4249-b8ae-3fdd57547cf9)
feat(agent): stop testing after the current job
Some checks failed
CI / Conventional Commit title (pull_request) Successful in 4s
CI / Workflow lint (actionlint) (pull_request) Successful in 4s
CI / Coordinator tests (pull_request) Has been cancelled
CI / Agent build and checks (pull_request) Has been cancelled
CI / Coordinator image (pull_request) Has been cancelled
800b2b6d9c
Assisted-by: OpenAI Codex

Co-Authored-By: Codex <[email protected]>
Author
Member

Attached screenshots from the built views using a synthetic job. Verified scheduling persists testing off, undo restores it, and Stop now still opens its abort confirmation. Production worker was untouched.

Attached screenshots from the built views using a synthetic job. Verified scheduling persists testing off, undo restores it, and Stop now still opens its abort confirmation. Production worker was untouched.
futondestroyer changed title from WIP: feat(agent): stop testing after the current test to feat(agent): stop testing after the current test 2026-11-16 16:39:55 +00:00
Member

This looks really good!, the only way we will get feedback and if people are happy with it is to merge and let people try it. <3

This looks really good!, the only way we will get feedback and if people are happy with it is to merge and let people try it. <3
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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!69
No description provided.