Repository navigation
Conversation
3bec442 to
8e3189b
Compare
|
The e2e job fails on WorkflowRerunTests "Rerun CANCELLED sibling SUB_WORKFLOW task in parent": https://github.com/conductor-oss/conductor/actions/runs/44157752279/job/134303056980 This PR removes the path that main has for a rerun from a SUB_WORKFLOW task in a fork. The rerun now removes the completed sibling branch and scheduleForgotten starts it again, so a completed sub-workflow runs a second time. The same test fails on #1832. |
|
👥 Review policy — action needed. This PR changes 5,023 lines, which crosses the large-PR threshold (2,000). Large PRs require 2 approvals; it currently has 0. 2 more to go. This is a review-policy gate, not a CI/test failure — see the |
|
Closing this in favor of #1857. My strategy was to make these changes incrementally and discuss things like the rerun change: a rerun from one fork branch runs again the completed sibling branches that were scheduled after it, and the e2e test WorkflowRerunTests fails on it. |
8e3189b to
f49b6ca
Compare
|
Reopened after discussing #1857. |
Split out of the design/native-workflows branch: the 15 fixes listed in proposals/workflow-semantics/DECIDER_BUGS.md, their unit tests, the TLA+ spec of standard workflows and its checkers. Not included: native workflows, the durable workflow message queue, the UI changes, the docs changes, and the other engine fixes on that branch that DECIDER_BUGS.md does not list. Co-authored-by: Viren Baraiya <viren@v1r3n.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ge fixes Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A direct rerun from a SUB_WORKFLOW task took the common rerun path. That path removes every task scheduled after the target, which includes the tasks of the other fork branches, and then schedules them again. A COMPLETED sibling SUB_WORKFLOW ran a second time, and this e2e test failed: WorkflowRerunTests, "Rerun CANCELLED sibling SUB_WORKFLOW task in parent reschedules FAILED sibling, leaves COMPLETED sibling alone" The direct rerun from a SUB_WORKFLOW task now uses the path it had before: reset the task in place, start a new child, reset the failed siblings. The rerun still starts a new child instead of reusing the finished one. The bug list marks bug 4 as partly fixed: the tasks after the target are kept again. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
97ff6ac to
338d4c8
Compare
Split out of #1832.
Why
#1832 contains 15 fixes for standard workflows and a TLA+ spec that describes how standard workflows must behave. These fixes are independent of the other changes in that PR. This PR moves them out, so that they can be reviewed and merged first.
What changed
COMPLETED_WITH_ERRORS.RUNNINGwith nothing to run. A rerun from aSUB_WORKFLOWtask starts a new child; the tasks after it are kept, as before (bug 4, partly fixed). A rerun from an old attempt uses the latest attempt.COMPLETEDworkflow cannot be retried (409). A retry after a failingTERMINATEends the workflowFAILED. A retry or a rerun gives the task a new total time budget.FAILEDorTIMED_OUTcannot be terminated (409).specs/workflow-semanticshasWorkflow.tla, its models, and the scripts that compare a server with the spec.specs/workflow-semantics/DECIDER_BUGS.mdhas the cause, the fix and the test for each of the 15 bugs.How to test
specs/workflow-semantics, runTLA2TOOLS=/path/to/tla2tools.jar python3 server_check.py --server http://localhost:8099/api --tests 200 --size 3.Notes
WorkflowExecutorOps.rerunWF,scheduleForgottenandJoin.execute.COMPLETEDworkflow and terminate of an ended workflow now return 409.ExecutionDAO.updateTaskIfStatusis new. Postgres, MySQL, SQLite and Redis do the check and the write atomically. Other stores use the default, which is not atomic.🤖 Generated with Claude Code