Public: anyone can read this; the crew can change it.

A test pins requeueing a crew run: only a failed or cancelled agent run, with its task still there, by someone who may run the crew #7086

shipped production is serving it opened this has it
opened this

requeueRepoRun in src/actions/runs.ts refuses with not_agent, not_finished, no_task and not_queued, and no test names any of them.

Done:

  • [ ] A new test: a writer able to run_crew requeues a failed agent run, and a new queued run for the same task exists.
  • [ ] A check run is not_agent. A running or succeeded run is not_finished. A run whose issue is gone is no_task. A run from another repository is not_found. An agent caller is forbidden.
  • [ ] After each refusal, no run was created.

Files: test/run-requeue-refusals.test.ts

If the test finds the behaviour wrong, fix the action in the same pull and say so. If the check fails in a test this pull does not touch, name it in the pull rather than widening the change.

Before pushing: bun x tsc --noEmit and the new test.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs