Skip to content

handle test execution#203

Merged
raphael-goetz merged 8 commits into
#186-new-module-structurefrom
#185-handle-test-exec
May 30, 2026
Merged

handle test execution#203
raphael-goetz merged 8 commits into
#186-new-module-structurefrom
#185-handle-test-exec

Conversation

@raphael-goetz
Copy link
Copy Markdown
Member

@raphael-goetz raphael-goetz commented May 30, 2026

Resolves: #185

failing actions are expected on this pr

Copilot AI review requested due to automatic review settings May 30, 2026 13:52
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Implements handling of test executions in the NATS worker (issue #185): adds a test_executions.* queue subscription that runs the requested flow and replies to the requester with an ExecutionResult, including timing, input, and signal-derived result/error. Refactors the value store / executor to persist per-node NodeExecutionResults (so remote node results flow through the same store) and updates flow fixture format to the new sub_flow shape.

Changes:

  • New process_test_execution_message path in the worker, a unified execute_flow returning a FlowRunResult, and RuntimeErrortucana::shared::Error conversion helpers; tests rely on a real NATS service added to CI.
  • Remote runtime returns a NodeExecutionResult instead of a raw Value; executor commits results centrally for local/remote nodes and supports SubFlow compilation via execution_reference (with new T-CORE-000105/106 compile errors).
  • Trace store now stores NodeExecutionResult per node and renders started/finished timestamps; flow JSON fixtures updated to use sub_flow.startingNodeId.

Reviewed changes

Copilot reviewed 18 out of 19 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
crates/taurus/src/app/worker.rs Adds test_executions subscription, response building, decode-error handling, and integration tests.
crates/taurus/Cargo.toml, Cargo.lock Adds serde / serde_json dev-deps for fixture loading.
crates/taurus-provider/src/providers/remote/nats_remote_runtime.rs Returns NodeExecutionResult; handles missing node_result.
crates/taurus-core/src/types/errors/runtime_error.rs Adds as_tucana_error / from_tucana_error.
crates/taurus-core/src/runtime/remote/mod.rs RemoteRuntime::execute_remote returns NodeExecutionResult.
crates/taurus-core/src/runtime/execution/value_store.rs Stores per-node NodeExecutionResult; adds insert_node_result and ts helpers.
crates/taurus-core/src/runtime/execution/trace.rs Replaces status enum with full NodeExecutionResult in store entries.
crates/taurus-core/src/runtime/execution/store.rs Removes NodeOutcome; switches to node_results: HashMap<NodeId, NodeExecutionResult>.
crates/taurus-core/src/runtime/execution/render.rs Renders started/finished from new result, plus empty case.
crates/taurus-core/src/runtime/engine/executor.rs Centralizes commit of node results; handles remote NodeExecutionResult.
crates/taurus-core/src/runtime/engine/compiler.rs Compiles SubFlow parameters with new compile-error variants.
flows/*.json Updates fixtures to new sub_flow shape; tidies payload formatting.
.github/workflows/build-and-test.yml Adds NATS service and runs ignored worker integration tests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread crates/taurus-provider/src/providers/remote/nats_remote_runtime.rs Outdated
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 30, 2026

GitLab Pipeline Action

General information

Link to pipeline: https://gitlab.com/code0-tech/development/taurus/-/pipelines/2564029422

Status: Passed
Duration: 1 minutes

Job summaries

docs:preview

Documentation preview available at https://code0-tech.gitlab.io/-/development/telescopium/-/jobs/14615418550/artifacts/out/index.html

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 18 out of 19 changed files in this pull request and generated 6 comments.

Comment thread crates/taurus/src/app/worker.rs
Comment thread crates/taurus-core/src/runtime/engine/executor.rs
Comment thread crates/taurus-core/src/runtime/engine/compiler.rs
Comment thread crates/taurus/src/app/worker.rs
Comment thread crates/taurus-provider/src/providers/remote/nats_remote_runtime.rs Outdated
Comment thread crates/taurus-provider/src/providers/remote/nats_remote_runtime.rs Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 19 out of 20 changed files in this pull request and generated 4 comments.

Comment thread crates/taurus/src/app/worker.rs Outdated
Comment thread crates/taurus/src/app/worker.rs
Comment thread crates/taurus/src/app/worker.rs Outdated
Comment thread crates/taurus-core/src/runtime/execution/value_store.rs
@raphael-goetz raphael-goetz force-pushed the #185-handle-test-exec branch from 680cbd5 to 99c3af9 Compare May 30, 2026 14:21
@raphael-goetz raphael-goetz merged commit 5b4bf04 into #186-new-module-structure May 30, 2026
2 checks passed
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.

Taurus needs handle test executions and parse back an execution result

2 participants